The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
ads on FORUMHOME
I am trying to add a couple of ad slots onto my forum home page after a couple of groupings and I'm not sure on the correct syntax to use for a plug-in
global $ids; $excluded = array(88,115); if (!is_member_of($vbulletin->userinfo, $excluded) AND THIS IS WHAT I AM NOT SURE OF) { ad code } I am using $post['postid'] == $ids[x] for posting of ads after certain posts... Also, am I overlooking something obvious in implementing this? thanks in advance Scott |
#2
|
|||
|
|||
Where are you trying to add this? The FORUMHOME template or a hook?
|
#3
|
|||
|
|||
Hi Dave
misread your question --------------- Added [DATE]1517591638[/DATE] at [TIME]1517591638[/TIME] --------------- and I was trying to use a hook |
#4
|
|||
|
|||
I actually figured this out
for someone else looking to add this in in the ForumHome --> forumhome_forumbit_level1_nopost I added this to the top Code:
<vb:if condition="$forum[forumid]==XXX"> <div><center> AD CODE HERE </center></div> </vb:if> Code:
<vb:if condition="!is_member_of($bbuserinfo,88)"> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|