Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
Thread Tools Display Modes
Old 12-12-2005   #1
deathson
 
Join Date: Dec 2005
Posts: 4
Send a message via MSN to deathson
Default Google ads on the top like a menu

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} &raquo; {/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.
deathson is offline  
Old 12-12-2005   #2
Ap0s7le
 
Join Date: Jun 2005
Location: The world
Posts: 816
Send a message via ICQ to Ap0s7le Send a message via AIM to Ap0s7le Send a message via MSN to Ap0s7le Send a message via Yahoo to Ap0s7le Send a message via Skype™ to Ap0s7le
Default

I put the code into CODE tags.

-Casey
__________________
Casey Wilson / Ap0s7le
Freelance Programmer
http://www.ap0s7le.com
Need help with PHPLD? PM me
Ap0s7le is offline  
Old 12-23-2005   #3
John D
 
Join Date: Nov 2005
Posts: 156
Default

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.
John D is offline  
Old 12-25-2005   #4
deathson
 
Join Date: Dec 2005
Posts: 4
Send a message via MSN to deathson
Default remove those question marks

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 &nbsp has to end with a semicolon.

try this and let me know if it is ok now
deathson is offline  
Old 12-30-2005   #5
ibold
 
Join Date: Dec 2005
Posts: 31
Default

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!
ibold is offline  
Old 05-01-2006   #6
ewwharhar
 
ewwharhar's Avatar
 
Join Date: Apr 2006
Posts: 139
Default

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?
ewwharhar is offline  
Old 05-01-2006   #7
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,893
Send a message via Yahoo to anon
Default

yes. just replace google code with chitika code. might need some minor adjustments, but it should work fine.
anon is offline  
Old 05-01-2006   #8
Brandon Sheley
 
Brandon Sheley's Avatar
 
Join Date: Feb 2006
Posts: 530
Default

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
Brandon Sheley is offline  
Old 05-02-2006   #9
ewwharhar
 
ewwharhar's Avatar
 
Join Date: Apr 2006
Posts: 139
Default

I tried it with bidvertiser code and it made it all mess up =\
ewwharhar is offline  
Old 05-04-2006   #10
gbaughan
 
Join Date: Apr 2006
Posts: 32
Default

ditto... does this work on 3.04
gbaughan is offline  
Old 05-04-2006   #11
jeeplaw
Supporter
 
Join Date: May 2006
Posts: 49
Default

Does for me-
www.dietdirectory.org
jeeplaw is offline  
Old 05-06-2006   #12
ewwharhar
 
ewwharhar's Avatar
 
Join Date: Apr 2006
Posts: 139
Default

Yes but I am using a bidvertiser ad, its different from google codes so ya.. =\
ewwharhar is offline  
Old 10-26-2006   #13
buffnuts
Supporter
 
Join Date: Oct 2006
Posts: 14
Default

Any updated version for 3.6?

Correction: that would be 3.06

Last edited by David; 09-25-2008 at 03:57 PM.
buffnuts is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.