The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to: Add a advertisement after first post?
How can I do this:
http://www.techimo.com/forum/t108340.html See the google ad after the first post? Thanks! Even better if it could be set to onyl show for certain usergroups. . . |
#2
|
||||
|
||||
ITs more than possible with just simple template mods
|
#3
|
|||
|
|||
that wouldnt be good, that would be GREAT! I am guessing something with <if>'s
|
#4
|
||||
|
||||
well you have to edit your postbittemplate
and at the very end you have to add something like: HTML Code:
<if condition="$thread[firstpostid] == $post[postid]">code of your advertisments here</if> |
#5
|
|||
|
|||
since I have my google ads in the header, what would the <if> code be not to display it on the showthread page? (You are not allowed to show two google ads on one page).
|
#6
|
||||
|
||||
HTML Code:
<if condition="THIS_SCRIPT != 'showthread'">google add here</if> |
#7
|
|||
|
|||
how could you do it only for unregistered or certain usersgroups? i.e show it to Registered,unreg,users awaing etc ad not showing it for admins,mods and a custom usergroup
|
#8
|
||||
|
||||
then you have to combine the conditions:
HTML Code:
<if condition="THIS_SCRIPT != 'showthread' AND $bbuserinfo['usergroupid'] != 6">google add here</if> |
#9
|
|||
|
|||
Quote:
I am a little confused. I trued to add PHP Code:
The following error occurred when attempting to evaluate this template: Parse error: parse error in /home/talkdis/public_html/forums/includes/adminfunctions_template.php(3037) : eval()'d code on line 209 Also how can I show it to more than one usergroup: ['usergroupid'] != 2,3,4,5" ?? or ['usergroupid'] != 2 AND 3" |
#10
|
||||
|
||||
there is a " in the middle of your condition, which shouldn'T be there
as for several usergroups you have to use something like this: Code:
in_array($bbuserinfo['usergroupid'], array(2, 3, 4)) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|