PDA

View Full Version : ads on FORUMHOME


scottkoz20
02-02-2018, 02:57 PM
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

Dave
02-02-2018, 02:58 PM
Where are you trying to add this? The FORUMHOME template or a hook?

scottkoz20
02-02-2018, 03:12 PM
Hi Dave

misread your question

--------------- Added 1517591638 at 1517591638 ---------------

and I was trying to use a hook

scottkoz20
02-25-2018, 11:07 AM
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

<vb:if condition="$forum[forumid]==XXX">
<div><center>
AD CODE HERE
</center></div>
</vb:if>

I also have this wrapped around it if you want to block this from certain usergroups (like donators, etc.)

<vb:if condition="!is_member_of($bbuserinfo,88)"> </vb:if>