Version: 1.0.1, by Chris M
Developer Last Online: Feb 2013
Version: 3.5.0
Rating:
Released: 06-13-2005
Last Update: 10-21-2005
Installs: 37
Uses Plugins Template Edits
No support by the author.
[high]Installation Instructions[/high]
Step 1: Upload the .xml file to the Product Manager Step 2: Edit the [high]global_advert[/high] template to add your advert code, i.e. Google Adsense code Step 3: Add the variable [high]$advert[/high] to any of the following templates: [high]header, navbar, footer[/high] - I placed mine at the top of the navbar template to make it show like it does in the screenshots Step 4: Alter the plugin code to reflect your premium members/staff usergroups so that they do not see the ads (if you don't want them to)
To do so, edit:
PHP Code:
if (!in_array($vbulletin->userinfo['usergroupid'], array(5, 6, 7))) {
replacing, obviously, [high]5, 6, 7[/high] with whatever usergroups you need Step 5: Click [high]INSTALL[/high]
To see what it looks like (yes I used a hideous h1 tag and red font to make the point out) take a look at the screenshots...
[high]Updates[/high] Version 1.0.1: Simple update to make this work globally - This will show up in every page - To upgrade, remove the forumhome_advert template, delete the existing plugin and follow the installation instructions above
Chris
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Currently this should work as is - There may be tweaks that can be made for 3.5 Gold but I honestly can't forsee any at the moment - It is best to assume that it is compatible and then if any issues arise they can be fixed
Uhh, is it possible to have this work with secondary usergroups? Because I've set up my forum so that a paying user gets a secondary usergroup (without changing their primary usergroup)... Is there a way to have so that you can add secondary usergroup ids as well? Thanks.
Hi nice hack! it's got some potention in my opinion.
I have for example some plain text I only want to show at some places of my vbsite. so I place the $advert outthere and I copy the code within the plugin from "global_start" and than add the idusergroup numbers exept for id1 (guests). This way you probably tell that every idgroup does not see it.
Is there a way to invert that? so you just place the useridgroup-numbers who WILL see it? (it's just that it tires my mind to think the other way around i guess )
Uhh, is it possible to have this work with secondary usergroups? Because I've set up my forum so that a paying user gets a secondary usergroup (without changing their primary usergroup)... Is there a way to have so that you can add secondary usergroup ids as well? Thanks.
Yes I agree. I want to use it but it doesn't seem to work that way yet. I have my forums set up so by doing certain things you are sent to another primary group. I would much rather just make a subscription that says you are a secondary user of this group which prevents you from seeing ads rather then figure out a whole new promotion scheme.
Is there a way to include secondary groups you select as well as primary?
Yup that worked flawlessly . Maybe that could be the default in the product or even just another attachment something like "Use only primary groups" and another "Check both primary and secondary". I attached the edited version of your product if you want to throw it up alongside the first for those that want it to apply for both primary and secondary groups. I didn't rename it or anything of the sort I just went through with PSPad and changed the line .
if (!in_array($vbulletin->userinfo['usergroupid'], array(5, 6, 7))) {
to
PHP Code:
if (!(is_member_of($vbulletin->userinfo, array(5, 6, 7)))) {
That should work
Chris
Perhaps it's changed in vB 3.5.2, because it's not working for me :S
I've altered the plugin code;
PHP Code:
if (!(is_member_of($vbulletin->userinfo, array(5, 6, 7, 16, 21, 26)))) {
Which are my not-to-see-ads-groups ... But they're still seeing ads. Like f.ex, 21 and 26 are my paid subscription groups. I've added a clone of myself, Julie2 in the subscription group, and marked the secondary group "Gold Membership", but I'm still viewing ads (when logged in as that user)...