Time2Dine.co.nz is Online Restaurant Booking
 
Elusion Electronic Cigarette
 New Zealand Restaurants Forum
Restaurant Forum | Contact Time2Dine | Book Online & Save | About Time2Dine

Go Back   New Zealand Restaurants & Food Forum > Search Engine Optimisation > SEO vBulletin
Register

Reply
 
LinkBack Thread Tools
  #1  
Old 1st Dec 06, 10:06 AM
Junior Reviewer
 
Join Date: Dec 2006
Posts: 11
TheTranceArena is on a distinguished road
Default Query About T2DMan's Google Adsense Tip...

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.
Reply With Quote
  #2  
Old 1st Dec 06, 10:19 AM
T2DMan's Avatar
Administrator
 
Join Date: Apr 2004
Location: Auckland, New Zealand
Posts: 7,839
T2DMan is on a distinguished road
Default re adsense

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.
Reply With Quote
  #3  
Old 1st Dec 06, 10:30 AM
Junior Reviewer
 
Join Date: Dec 2006
Posts: 11
TheTranceArena is on a distinguished road
Default

Thanks T2DMan!

Where abouts would I place the code in the showthread template in order for that to work properly?

Thanks for your help
Reply With Quote
  #4  
Old 1st Dec 06, 10:39 AM
T2DMan's Avatar
Administrator
 
Join Date: Apr 2004
Location: Auckland, New Zealand
Posts: 7,839
T2DMan is on a distinguished road
Default Experiment a little

Probably just after the
<div id="posts">$postbits<div id="lastpost"></div></div>

or after the spacer immediately following it.
Reply With Quote
  #5  
Old 1st Dec 06, 10:50 AM
Junior Reviewer
 
Join Date: Dec 2006
Posts: 11
TheTranceArena is on a distinguished road
Default

It doesn't seem to work after any of those
Reply With Quote
  #6  
Old 1st Dec 06, 11:18 AM
T2DMan's Avatar
Administrator
 
Join Date: Apr 2004
Location: Auckland, New Zealand
Posts: 7,839
T2DMan is on a distinguished road
Default Have you taken the conditional off?

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.
Reply With Quote
  #7  
Old 1st Dec 06, 11:55 AM
Junior Reviewer
 
Join Date: Dec 2006
Posts: 11
TheTranceArena is on a distinguished road
Default

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.
Reply With Quote
  #8  
Old 1st Dec 06, 12:32 PM
T2DMan's Avatar
Administrator
 
Join Date: Apr 2004
Location: Auckland, New Zealand
Posts: 7,839
T2DMan is on a distinguished road
Default Sounds great

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.
Reply With Quote
Reply


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Enters the Affiliate Game marketraise int Google 0 13th Apr 07 12:43 AM
Have you earned anything from Google Adsense? devisee Google 1 29th Dec 06 02:59 AM
Google Adsense Targeting T2DMan Google 0 19th Dec 05 02:46 PM



Powered by: vBulletin Copyright ©2000 -2012, Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0
© 2010 Time2Dine