|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Jul 2005 Posts: 243 | This mod will show Google Adsense under the "Featured Links" as "Sponsored Links". You can see what I mean on the site in my sig. This mod was inspired from a thread of "seothatworks", Thank you! In main.tpl just before "{* Links heading and sorting*}" add: Code: Content visible to registered users only. Code: Content visible to registered users only. |
| |
| | #2 |
| Join Date: Jul 2005 Posts: 13 | Man, that's perfect, thank You. |
| |
| | #3 |
| Join Date: Aug 2005 Location: Delaware Valley, PA Posts: 221 | This is a good mod. Make sure to add it to the wiki! |
| |
| | #4 |
| Join Date: Sep 2005 Location: Daytona Beach, Florida Posts: 76 | Thanks....that is very nice |
| |
| | #5 |
| Join Date: Oct 2005 Location: WEBTALKFORUMS.COM Posts: 3 | SWEET!!! Thanks brother! Chris |
| |
| | #6 |
| Join Date: Sep 2005 Posts: 62 | How do I get adsense to appear on the search pages as well? |
| |
| | #7 |
| Join Date: Jun 2005 Posts: 350 | Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. __________________ Greatest fear in a coder\'s world: A minute bug with correct syntax. Math Captcha - Database Backup Tool - PHP Background Image |
| |
| | #8 |
| Mentor Join Date: Aug 2005 Location: New Jersey Posts: 331 | would this mod work if i wanted to keep my featured links? __________________ Free Webmaster Directory, Add your link! |
| |
| | #9 |
| Join Date: Jul 2005 Posts: 243 | Sure. Check the example in the site in my sig. / Jim |
| |
| | #10 |
| Mentor Join Date: Aug 2005 Location: New Jersey Posts: 331 | Code: Content visible to registered users only. Thanks Jim, works great! __________________ Free Webmaster Directory, Add your link! |
| |
| | #11 |
| Supporter Join Date: Jan 2006 Posts: 60 | Wow, you know it's an easy mod if I can do it Thanks for posting this. |
| |
| | #12 |
| Supporter Join Date: Oct 2005 Posts: 540 | hi, great mod. i did the same as descripted in topic here. (adsense.tpl and main.tpl) i did it also for search results. my problem is, that sometimes the adsense were shown and sometimes not. but i cant find a error. anyone a solution for that ? main.tpl: {if $category.ID gt 0 or $qu or $p} {include file="googlead.tpl"} {/if} __________________ many thanks. thompson. |
| |
| | #13 |
| Supporter Join Date: Dec 2005 Posts: 484 | Code: Content visible to registered users only. I think it should be: {if $category.ID gt 0 or $qu} This is what is described in this post, this works for me. Also try removing the - Neticus |
| |
| | #14 |
| Supporter Join Date: Oct 2005 Posts: 540 | does it work also on empty searchresult pages (if you search for ex. bodybuilding) ? ever tried it ? what says the variable $p ? __________________ many thanks. thompson. |
| |
| | #15 |
| Supporter Join Date: Dec 2005 Posts: 484 | Code: Content visible to registered users only. I think I know your problem. You have google adsense code to show in category and search results. You also have google adsense code in the top right of your directory. This is causing the conflict. Sometimes google struggles to fill all boxes and will leave a box empty if it can not. I had the same problem of blank google boxes when I tried to add another adsense block. See this discussion: {older link removed} Try removing the google box at the top right of your directory and I think your problem will be solved. - Neticus Last edited by David; 03-13-2008 at 04:57 AM. |
| |
| | #16 |
| Supporter Join Date: Jan 2006 Location: www.criticdirectory.com Posts: 87 | Hi, i did all the requirements but still cannot get it to work--Any Help? Lore |
| |
| | #17 |
| Supporter Join Date: Jan 2006 Posts: 2 | Code: Content visible to registered users only. Can you repost the example in your sig? I can't seem to find out to display Google Adsense along with Featured Links. Thanks!!! Mike |
| |
| | #18 |
| Supporter Join Date: Oct 2005 Posts: 540 | __________________ many thanks. thompson. |
| |
| | #19 |
| Supporter Join Date: Jan 2006 Location: www.criticdirectory.com Posts: 87 | Hi, anybody is this where the code is suppose to go.. between these codes? main.tpl {foreach from=$feat_links item=link name=links} {include file="link.tpl" link=$link} {/foreach} {/if} {if $category.ID gt 0 or $qu} {include file="googlead.tpl"} {/if} {* Links heading and sorting*} {if ($qu or $category.ID gt 0 or $p) and count($links) gt 0} Also, i created the googlead.tpl what type do i create it as? doc,html,shell,php |
| |
| | #20 |
| Join Date: Feb 2006 Posts: 120 | Jim in your code you have a bottom margin set at -10px if you use this it obscures the words "Ads by Goooooogle" which as you know is very very naughty. :roll: (it should read 0px) unless it only happened on my site of course :? __________________ 10,000 Directories Get your directory listed. UK Business Directory | Local Business Directory UK Business Directory |
| |