MyBB Community Forums

Full Version: [My Advertisement] How to add custom Zones
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to add a popup ad that will be shown to guests only. By putting the code in Headerinclude they are shown to every visitor.
So, my solution was to use the My Advertisement plugin which has an exempt Groups option.
How do I create custom zone that shows the popup only to guests? My header, postbit and footer is already under use.

Edit: Fixed it.
Downloaded the PHP in Templates Plugin and added 

Quote:<if $mybb->user['uid'] != X then>
content not visible to user X
</if>

to headerinclude.