|
|
#1
| |||
| |||
|
Hi everyone, I found this site after looking how to effectively SEO a VBulletin forum. Great site and some supurb advice by T2DMan. Just one query that i'm hoping someone can help me with? In this thread here: http://forum.time2dine.co.nz/5673-3-post.html, T2DMan says that you can add Google Adsense to appear after the last post or after a certain number of posts. How do I change the script below to display Google Adsense at the end of the last post rather than after a certain number? AT the moment, i've got Google Adsense showing up after the 8th post, but if there are less than 8 replies, then the Adsense doesn't show This is T2Dman script: [PHP] <if condition="$post[postcount] % $vboptions[maxposts] == 1"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links </tr> <tr> <td class="alt1" align="center"> <script type="text/javascript">google_ad_client = "pub-xxxxxxxxxx"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_channel ="xxxxxxxxx"; google_color_border = "003366"; google_color_bg = "F5F5FF"; google_color_link = "003366"; google_color_url = "003366"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> </div> $spacer_close </if>[/PHP] I'm pretty sure its that first line that needs editing to make Adsense show after the last post as the script above says "1", whereas mine says "8". What do I change the line to, to make it appear at the end of the post? Thanks in advance guys! Carl. |
|
#2
| ||||
| ||||
|
You would first have to know how many posts there were going to be in that thread, then have a conditional to add at the appropriate number. How about you instead just add to the showthread template so that it sits just above the footer. While it might be possible to do as you have described, an easier option is the above. |
|
#3
| |||
| |||
|
Thanks T2DMan! Where abouts would I place the code in the showthread template in order for that to work properly? Thanks for your help |
|
#4
| ||||
| ||||
|
Probably just after the <div id="posts">$postbits<div id="lastpost"></div></div> or after the spacer immediately following it. |
|
#5
| |||
| |||
|
It doesn't seem to work after any of those |
|
#6
| ||||
| ||||
|
Since the script is now in the showthread, you dont need the conditional on it. So strip off the top and bottom line and you should be fine. |
|
#7
| |||
| |||
|
T2DMan, you are a genius! Thank you so much - that worked a treat! Also, just to let you know, once payday arrives after Christmas, i'll be asking you to SEO my VBulletin forum for you. I've just had a look at your contract fee and the work you do, and it'll be a good investment. I don't suppose you have any experience of SEO'ing Joomla sites either do you? My forum is VBulletin, but my main site is Joomla. Thanks again! Carl. |
|
#8
| ||||
| ||||
|
I have not yet SEO'ed a Joomla site, but I have seen some great Joomla SEO sites around on Google that I would be able to use to get the url's, wording and other SEO considerations happening for your site. All the best. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Enters the Affiliate Game | marketraise int | 0 | 13th Apr 07 12:43 AM | |
| Have you earned anything from Google Adsense? | devisee | 1 | 29th Dec 06 02:59 AM | |
| Google Adsense Targeting | T2DMan | 0 | 19th Dec 05 02:46 PM | |