The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to show ads in first post at the end of message?
Hello,
I am trying to show ads in my first post at the end of the message just above the signature but It's not working . I am trying this : Code using : Quote:
|
#2
|
||||
|
||||
are you trying to show in certain forums and to certain user-groups? or you want to show for all? members and guests?
EDIT: ahh, sorry, should have looked at your code closer... after messing around with this code, i found that this code works fine for me: Code:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))"> <if condition="THIS_SCRIPT != 'register' AND !in_array($GLOBALS['forumid'], array(x,x,x))"> <if condition="!is_member_of($vbulletin->userinfo, x,x,x)"><center> YOUR GOOGLE AD CODE HERE </center> </if> </if> </if> $template_hook[postbit_signature_start] $ad_location[ad_showthread_firstpost_sig] MY CODE I tested forum ID 9 and userinfo ID 6 and i could not see the add. So i guess, if you do not want to show the ads to user groups and in certain forums, place the IDs in where you do NOT want the show ads. P.S. If you dont want the ad Centered, remove the <center></center> tags. Let me know how you go mate. cheers. |
#3
|
|||
|
|||
Quote:
Thank you for the above code. I am going to try but one thing I would like to know. Should I have to add the code in both $template_hook[postbit_signature_start] $ad_location[ad_showthread_firstpost_sig] Or just edit Postbit legacy and add the code under $template_hook[postbit_signature_start] |
#4
|
||||
|
||||
once only...under $ad_location[ad_showthread_firstpost_sig]. if you do not have that then under $template_hook[postbit_signature_start].
Long as your code is directly above: <if condition="$post['signature']"> Postbit legacy Example: $template_hook[postbit_signature_start] $ad_location[ad_showthread_firstpost_sig] YOUR CODE <if condition="$post['signature']"> |
#5
|
|||
|
|||
Hi
I tried in $ad_location[ad_showthread_firstpost_sig]. It didn't show . I also tried with $template_hook[postbit_signature_start] It either didn't showed. For some reason It's not appearing HERE is the code for postbit legacy that I am trying Quote:
|
#6
|
||||
|
||||
mate pm me, i can take a look for you. maybe the style is different set up than default. not sure why you need this part: <if condition="$post['signature'] AND !in_array($thread['forumid'],array(13,14,15,))">.
|
#7
|
|||
|
|||
Yes you are right, Style is different then default.
|
#8
|
||||
|
||||
hi feel free to pm mate. if not, i would try changing
<if condition="$post['signature'] AND !in_array($thread['forumid'],array(13,14,15,))"> to this. <if condition="$post['signature']"> i'd still love to have a look, but thats up to you. cheers. p.s maybe post in your whole post bit or pm it. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|