The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Usergroup Specific Adverts Details »» | |||||||||||||||||||||||||
[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] 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
|
Comments |
#32
|
|||
|
|||
This is great
|
#33
|
||||
|
||||
Will this be updated for 3.5 gold or is it good as is? I'm interested in using this .
|
#34
|
||||
|
||||
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 |
#35
|
||||
|
||||
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.
|
#36
|
|||
|
|||
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 ) further more...nice plugin |
#37
|
||||
|
||||
Quote:
Is there a way to include secondary groups you select as well as primary? |
#38
|
||||
|
||||
Edit the plugin, and change:
PHP Code:
PHP Code:
Chris |
#39
|
||||
|
||||
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 .
|
#40
|
|||
|
|||
if u want ads display on the 1st post use this code
Code:
<if condition="!$GLOBALS['FIRSTPOSTID']"> $spacer_open <div style="padding:0px 0px $stylevar[cellpadding]px 0px"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead" align="left">Sponsored Links</td> </tr> <tr> <td class="alt1" align="center"> $advert </if> </td> </tr> </table> </div> $spacer_close </if> https://vborg.vbsupport.ru/showthrea...t=Adsense+post |
#41
|
||||
|
||||
Quote:
I've altered the plugin code; PHP Code:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|