![]() |
Usergroup Specific Adverts
[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:
Step 5: Click [high]INSTALL[/high]:D 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 |
I installed this, but wouldn't it work better for most people if the adverts were viewable on all pages to non-select usergroups?
|
Quote:
|
Quote:
|
I didnt get that far.. Good point. Is there a way to make it viewable on all forum pages?
|
how do u install?
|
Quote:
Quote:
|
It is possible, yes :)
I'll update it with a global setting sometime over the weekend ;) Satan |
I had to do a clean install of Beta 2, so once you add the global, I will definitely be testing this again :)
|
[high]Update[/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 in the first post :) Satan |
If there weren't laws against me procreating I would name my firstborn child after you.
beautiful! |
ROFL
Thanks Martin :p Satan |
Anyone get this to work on beta 3? I've tried 2 plugins now and neither seem to work.
|
Works for me on Beta 3 :ermm:
Satan |
[high]Update[/high]
Beta 3: Update to confirm that this plugin works with vBulletin 3.5.0 Beta 3;) Satan |
[high]Update[/high]
Beta 4: Update to confirm that this plugin works with vBulletin 3.5.0 Beta 4;) Satan |
How and where do you create the new template? And where do you add the variale to place the advert?
|
You create the new template in the Style Manager in your AdminCP, and add your "ad" content to it :)
You place the $advert variable in a position within your navbar, header or footer templates to make it show up on every page :) Satan |
Sorry I am a noob but I dont have a clue where to add the $advert variable within those templates. Can it go anywhere within the templete code?
|
I'm curious too, what happens if you have one set of ads that runs at the top and one at the bottom, what is the easiest way to install this multiple times?
|
Just add the $advert variable multiple times ;)
Or duplicate the plugin code, changing the template name and variable ;) @Gio - You can add it anywhere within those 3 templates ;) Satan |
Installed it works great also. Can I do the same thing by adding the phpadsnew code to the plugin code area?
|
Quote:
My intial response is that it is unlikely :speechless: Satan |
Nice job on the hack satan, now my VIP members won't have to see ads!
|
Thank you :)
I'm sure they'll be glad of that;) Satan |
OK, I understand I just need to ad the advert cde to the template I want the advert in. Is there a way to make it show a different advert each time the advert code is dsplayed?
|
Quote:
Other than that, the only way is to have a rotational banner code:p Satan |
very nice, had a problem with the usergroups, but after rereading managed to get it to work perfectly.
Been something I have been looking for for quite a while, so thanks again. |
You're welcome shiva :)
Satan |
[high]Update[/high]
RC1: Update to confirm that this plugin works with vBulletin 3.5.0 RC 1:) Satan |
This is great :)
|
Will this be updated for 3.5 gold or is it good as is? I'm interested in using this ;).
|
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 :)
Chris |
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 :p) further more...nice plugin |
Quote:
Is there a way to include secondary groups you select as well as primary? |
Edit the plugin, and change:
PHP Code:
PHP Code:
Chris |
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 :D.
|
if u want ads display on the 1st post use this code
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> https://vborg.vbsupport.ru/showthrea...t=Adsense+post |
Quote:
I've altered the plugin code; PHP Code:
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|