![]() |
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Replace the content of the file top_bar.tpl with this to get a nice menu with google ads Code: {strip}
<p id="path">
<span class="submit">
{* Right(!!) part of the top bar *}
{* Submit Link *}
{$smarty.const.DOC_ROOT}/submit.php"]{l}Submit Link{/l}
|
{$smarty.const.DOC_ROOT}/index.php?p=d"]{l}Latest Links{/l}
|
{$smarty.const.DOC_ROOT}/index.php?p=h"]{l}Top Hits{/l}
|
{* RSS feed icon *}
{if $smarty.const.ENABLE_RSS and ($qu ne '' or $category.ID gt 0 or $p)} <a href=
"{$smarty.const.DOC_ROOT}/rss.php?{if $qu ne ''}q={$qu}{elseif $p}p={$p}{else}c={$category.ID}{/if}">
{$smarty.const.DOC_ROOT}/images/xml.gif
</a>
|
{/if}
{* Search form *}
<form action="{$smarty.const.DOC_ROOT}/index.php" method="get">
<input type="text" name="q" size="20" class="text" /> <input type="submit" value="{l}Search{/l}" class="btn"/>
</form>
</span>
{* Left(!!) part of the top bar *}
<script>
{literal}
google_ad_client = "xxxxxxxxxxxxxx";
google_alternate_ad_url = "http://yoursite.com/alternate.html";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_ad_channel ="xxxxxxxxx";
google_color_border = "5E74B3";
google_color_bg = "DDE2EC";
google_color_link = "0000FF";
google_color_url = "0000FF";
google_color_text = "0000FF";
{/literal}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
{* Left(!!) part of the top bar *}
{assign var="current_path" value=""}
{foreach from=$path item=cat name=path}
{assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
{if not $smarty.foreach.path.first} » {/if}
{if not $smarty.foreach.path.last}
{if $smarty.const.ENABLE_REWRITE}{$current_path}{else}index.php?c={$cat.ID}{/if}"]{$cat.TITLE}
{else}
{$cat.TITLE}
{/if}
{/foreach}
</p>
{/strip} Last edited by David; 09-25-2008 at 03:56 PM. | |
| |
| | #2 |
| I put the code into CODE tags. -Casey __________________ Casey Wilson / Ap0s7le Freelance Programmer http://www.ap0s7le.com Need help with PHPLD? PM me | |
| |
| | #3 |
| Join Date: Nov 2005 Posts: 156 | I am going to use this on http://www.alldotnet.com/ but I think your code has put ? beside the links. I removed the adsense section but still have it. Any ideas? Last edited by David; 09-25-2008 at 03:56 PM. |
| |
| | #4 |
| Hi John D: It is not my code, what happened is that when you copy and pasted, some characters were incorrectly copied over. Please double check for html entities with the proper ; (semi colon) for example   has to end with a semicolon. try this and let me know if it is ok now | |
| |
| | #5 |
| Join Date: Dec 2005 Posts: 31 | Great mod. To see it in action please check out my site ![]() http://www.getinsearchengines.com //end shameless plug __________________ Directory of Directories << Submit your directory so that other people can find you and add their site! |
| |
| | #6 |
| Join Date: Apr 2006 Posts: 139 | bringing up an old thread but I have a question.. Can I put advertiser or chitika ads? Do I just change the codes around to fit it? |
| |
| | #7 |
| Supporter | yes. just replace google code with chitika code. might need some minor adjustments, but it should work fine. __________________ DirectoryDump Web Directory | Link Directory | Full of Search Web Directory | Free phpLD Templates |
| |
| | #8 |
| Join Date: Feb 2006 Posts: 530 | does this work with 3.0.4 ? the code looks shorter then .4 __________________ My Forum: vBulletin Setup and you might be interested in our vBulletin Services My Directories: Quality Link Directory - Deep Links - Link Directory - vBulletin Directory |
| |
| | #9 |
| Join Date: Apr 2006 Posts: 139 | I tried it with bidvertiser code and it made it all mess up =\ |
| |
| | #10 |
| Join Date: Apr 2006 Posts: 32 | ditto... does this work on 3.04 |
| |
| | #11 |
| Supporter Join Date: May 2006 Posts: 49 | Does for me- www.dietdirectory.org |
| |
| | #12 |
| Join Date: Apr 2006 Posts: 139 | Yes but I am using a bidvertiser ad, its different from google codes so ya.. =\ |
| |
| | #13 |
| Supporter Join Date: Oct 2006 Posts: 14 | Any updated version for 3.6? Correction: that would be 3.06 Last edited by David; 09-25-2008 at 03:57 PM. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|