The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
|||
|
|||
Thanks for an excellent mod.
I would like to disable the ad in the last post. What do I need to do?? |
#23
|
|||
|
|||
I found this hack and thought it was pretty cool but for my needs, I dont use AdSense so I wanted to be able to put pre-defined, targeted ad tags from AdvertPRO (or AdCycle or PHP AdsNew etc) onto each forum. In other words, if the forum topic is electronics, I only want electronics based ads on those pages, and if the topic of the forum is Cooking, i only want cooking ads to show up. Google Adsense does that automatically by scanning for words on the page but my ad system doesnt
What I did was create a 300x250 ad placement for each form and then i made a large series of if/else commands and it in my postbit (in my case the postbit_legcy). It says "if its this forum, show the corresponding ad". Here is the code for ya'll to check out and use if you want. It's a modified version of unitedpunjab's "Adsense Inside the Post". I always give credit where credi is due! Here be the code. Of course fill in your own ad code that corrsponds with what ads you want to show up in each forum. It's very important that you have the correct number if </if> tags at the end, one for each "if/else". Mine has 17 of em (I only show 4 here). Anyone think this will cause major problems or load issues? <!-- message --> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==1)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #1 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> <else /> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==2)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #2 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> <else /> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==3)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #3 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> <else /> <if condition="(($post[postcount] % $vboptions[maxposts] == 1) and $forum[forumid] ==4)"> <span style="margin: 2px; float: right; width: 301px; height: 251px;"> <!-- BEGIN ADVERTPRO CODE BLOCK --> CODE FOR FORUM #4 ADS GO HERE <!-- END ADVERTPRO CODE BLOCK --> </span> </if> </if> </if> </if> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> |
#24
|
|||
|
|||
Thanks you 2 (guy above me and mod author!
|
#25
|
|||
|
|||
Here is a nifty tip to increase your CTR while using this modification.
This ad placement is good to blend in with the post content, but it also, when someone or you make a post, try not to place any links inside the post. For example, instead of using http://www.yoursite.com or www.yoursite.com , just use yoursite.com. This way, the only links available for someone to click on are links to Google Adsense, YPN, or whatever publishing program you use. Keep in mind that you are not forcing others to click your links, you are simply eliminating other "clickable" links while making your publisher links the only "clickable" links inside the post. This is a great modification, thanks. |
#26
|
|||
|
|||
I would like to show the ads to guests and registered users (sponsors will not see ads). What would I alter in the code to show ads to registered users as well?
[INSTALLED] |
#27
|
|||
|
|||
Replace
Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])"> Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))"> |
#28
|
|||
|
|||
Thanks for the quick reply. Your suggestion would have the ads viewable by all visitors regardless of their usergroup. I would like to specify an additional usergroup (guests & registered).
Can you suggest the code? |
#29
|
|||
|
|||
Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,XX)"> |
#30
|
|||
|
|||
Quote:
For more than one usergroup I would separate by commas? i.e. Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,2,7,12)"> |
#31
|
|||
|
|||
will not see the ads..
replace Code:
!is_member_of($bbuserinfo,2,7,12) Code:
is_member_of($bbuserinfo,2,7,12) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|