What should I do to add this cool feature?

Core code customizations and Smarty markup and Template design help in regards to ADP.

Moderator: pgolovko

What should I do to add this cool feature?

Postby xprt007 » 04/30/2007 4:17 am

Hi

I saw the feature described below somewhere, connected to another directory.

Is it possble to add it to adp & if so EXACTLY where should the code be added? [I have miinmal programm]ing experience & so would appreciate any details]

"Whatever" search on: Google - Yahoo - MSN Search - AOL Search - My Way Search - Ask Jeeves - Netscape Search - Dogpile - iWon Search - Earthlink Search - as seen on Open Directory Project (scroll down on page)

The search engines in this mod were selected and ordered according to the Nielsen//NetRatings Releases Top 10 Search Engine Share Rankings for July 2005 (http://www.prnewswire.com/news/index_ma ... ,+02:02+PM). This is because I think it would be better to have a more modern selection and ordering, rather than simply copy what ODP does.

Instructions:

Open template/footer.tpl

Find:

Code: Select all
</div> {/if}


Replace with:

Code: Select all
<br><p> "<b>{$in_page_title}</b>" search on: <a href="http://www.google.com/search?q={$in_page_title}">Google</a> - <a href="http://search.yahoo.com/search?p={$in_page_title}">Yahoo</a> - <a href="http://search.msn.com/results.aspx?q={$in_page_title}">MSN Search</a> - <a href="http://search.aol.com/aolcom/search?query={$in_page_title}">AOL Search</a> - <a href="http://mysearch.myway.com/jsp/AJmain.jsp?searchfor={$in_page_title}">My Way Search</a> - <a href="http://web.ask.com/web?q={$in_page_title}">Ask Jeeves</a> - <a href="http://search.netscape.com/ns/search?query={$in_page_title}">Netscape Search</a> - <a href="http://www.dogpile.com/info.dogpl/search/web/{$in_page_title}">Dogpile</a> - <a href="http://iwon.ask.com/web?q={$in_page_title}">iWon Search </a> - <a href="http://search.earthlink.net/search?q={$in_page_title}">Earthlink Search</a></p> </div> {/if}


You may erase any of the listed search engine links of your choice manually in your HTML editor. For instance, be aware that Netscape Search, EarthLink Search all uses Google search engine. Additionally, My Way Search, iWon Search uses Ask Jeeves' search engine.

Note: This feature will only show up when there are existing links in a category. In case the category is empty, this feature will not show up.

Tip (some programmings skills needed): If you are a Google AdSense member, you might want to tweak the Google Search URL to serve it as an AdSense for Search. In that case, copy the URL from your regular Google AdSense for Search search result page, and paste it in the proper place in the code above. Don't forget to remain q={$in_page_title} in the mentioned URL though.


I tried to gamble and replaced the {/if} a few lines from the bottom of body.html with that code & replaced "$in_page_title" with "$swords" , but there was no output at all - ie, this was completely ignored.

That could be the ultimate proof that I need help!
:blackeye:
Thanks in advance.
xprt007
 
Posts: 92
Joined: 02/12/2007 4:39 am


Postby pgolovko » 04/30/2007 5:41 am

Place the following where needed within ./admin/templates/search.html

Code: Select all
"<b>{$swords}</b>" search on: <a href="http://www.google.com/search?q={$swords}">Google</a> - <a href="http://search.yahoo.com/search?p={$swords}">Yahoo</a> - <a href="http://search.msn.com/results.aspx?q={$swords}">MSN Search</a> - <a href="http://search.aol.com/aolcom/search?query={$swords}">AOL Search</a> - <a href="http://mysearch.myway.com/jsp/AJmain.jsp?searchfor={$swords}">My Way Search</a> - <a href="http://web.ask.com/web?q={$swords}">Ask Jeeves</a> - <a href="http://search.netscape.com/ns/search?query={$swords}">Netscape Search</a> - <a href="http://www.dogpile.com/info.dogpl/search/web/{$swords}">Dogpile</a> - <a href="http://iwon.ask.com/web?q={$swords}">iWon Search </a> - <a href="http://search.earthlink.net/search?q={$swords}">Earthlink Search</a>

__________________
Best regards,
Pavel Golovko
User avatar
pgolovko
 
Posts: 494
Joined: 03/25/2006 1:23 am
Location: Somewhere on planet Earth ....

Postby xprt007 » 05/02/2007 6:54 am

Many thanks - works perfectly! :salute:
xprt007
 
Posts: 92
Joined: 02/12/2007 4:39 am

footer.tpl

Postby trapprs » 04/02/2009 9:27 pm

Where can I find footer.tpl? I have footer.html but that does not have any "IF" statements in it because it is HTML ......

Thanks for any help, Chris
trapprs
 
Posts: 67
Joined: 11/30/2006 5:15 pm


Return to Customization & Templates

Who is online

Users browsing this forum: No registered users and 0 guests

cron