vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=96249

Adsense after first post
by artonex
14 Sep 2005 11:14

Hey guys i think many of you will find this very usefull :)

With the template edit you can display adsense or banner after every 1st post. i have chosen to use my amazon affilite code.

Add this to the bottom of your postbit template.

Demo


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


jluerken 14 Sep 2005 12:26

Hi,

I want to have the adsense stuff for people NOT in specific groups.

For example: Admins, mods, staff etc. should not get the adsense stuff.

Can you give an example how to modify your template to make this possible?

btw. thanks for sharing :D

jugo 14 Sep 2005 13:01

Didn't Kirby post this somewhere??

Thanks anyway.

Andreas 14 Sep 2005 13:04

Yup.
http://www.vbulletin.org/forum/showp...10&postcount=2 :)

Mental Note: Tagging the post was a good idea :D

junkiesnetwork 14 Sep 2005 17:00

Quote:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">
<adsense code here>
</if>
</td>
</tr>
</table>
This idea sounds great but i tried using it on my board but it did not work.
i copied this code and pasted at the end of postbit template as you said and i put all the adsense code in this space u provided , if i am not mistaken. (<adsense code here> )
Could you please tell me where i went wrong??
Thanks

sajjid 14 Sep 2005 18:02

try this one

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

change the text what ever you want where its says spinzone sponsered links

amykhar 14 Sep 2005 18:51

What's more fun and challenging - because of ajax issues, is adsense in the last post. ;) That really gets the ad right where the reader's eyes are.

http://www.eaforums.com/forums/364919-post1.html

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add above:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Andreas 14 Sep 2005 19:10

Hmm, keeping database read marking in mind:
Wouldn't the first unread post be the best place?
Cause the last Post doesn't necessarily get read - the first unread post will.

amykhar 14 Sep 2005 19:22

True. But, is there a conditional for it?

Andreas 14 Sep 2005 19:24

There must be as Posts carry Icons for Read/Unread.
So if this Icon changes to Unread for the first time it is the right Post.

dieselpowered 14 Sep 2005 21:12

Quote:

Originally Posted by KirbyDE
Yup.
http://www.vbulletin.org/forum/showp...10&postcount=2 :)

Mental Note: Tagging the post was a good idea :D

Kirby forgive my ignorance, however, where does this post show how to do a conditional based on the usergroup?

I am going to be adding adsence, however, do not want contributing members or sponsors to see them.

Any help is appreciated!!

Andreas 14 Sep 2005 21:18

I've posted this often already, but i'll post it once again :)

<if condition="!is_member_of($bbuserinfo, x, y, z) AND !$GLOBALS['FIRSTPOSTID']">

dieselpowered 14 Sep 2005 21:28

Quote:

Originally Posted by KirbyDE
I've posted this often already, but i'll post it once again :)

<if condition="!is_member_of($bbuserinfo, x, y, z) AND !$GLOBALS['FIRSTPOSTID']">

Sorry, you are going to fly out from Germany and kill me, however, I assume I put the usergroup number of the usergroup I do not want to see this in place of the x, y, z??

Thanks :)

Andreas 14 Sep 2005 21:29

Yep (regarding the replacement of x, y and z).

dieselpowered 14 Sep 2005 21:35

Quote:

Originally Posted by KirbyDE
Yep (regarding the replacement of x, y and z).

LOL I thought you were talking about the flying out part ;)

Thanks Kirby!!

Hey I seem to remember a thread one of the vBulletin Devs put out in regards to adding adsense....it had quite a few examples. Do you remember that?


All times are GMT. The time now is 19:54.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.