The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||||
I loathe and detest ad banners.
But when you run a board where 50% 'unregistered users' use it, and you want to increase the amount of users you have registered, it might be worth experimenting with an ad banner for unregistered users only. Enclosed is the code to do that: it's modifying two templates. This is v2 of the code, with the following enhancements: - Hide ad banners for users who have donated - Bug fix: I didn't close the 'normalfont' tag! - Force users to both register AND verify e-mail addresses Plus, enhanced information for users, following feedback here Good sources of ad banners are www.valueclick.com and www.advertwizard.com Download Now
Show Your Support
|
Comments |
#22
|
|||
|
|||
Quote:
Change the line that says if ($bbuserinfo['userid']<"1") { to say if ($bbuserinfo['usergroupid']!="13") { ...where '13' is the usergroup you've added called something like "Contributing Members". This will then show ads for everyone EXCEPT contributing members. Quote:
Click on "User Groups - Modify" in your control panel. Hold your mouse over the edit link for the 'Contributing Members' group ...look at the end of that URL, where it'll say something like usergroupid=13. That means 13 is the number. BTW, this all works fine in v2.2.6. |
#23
|
||||
|
||||
What about having unregistered members having the largest banner, regular members having a smaller text link & contributing members have no ads.
Thanks, Andy |
#24
|
|||
|
|||
This may be simple but I'm still learning PHP. Anyway, is there a way to add multiable groups? For example, I would prerfer my mentors and moderators not to see the ads since they help out.
BTW, this is a great hack, thanks. |
#25
|
|||
|
|||
It's very easy to modify, this hack.
For a "ad banner for unreg / text ad for registered / no ad for donated" then... PHP Code:
I'm running a much more complicated version of this hack, which rotates ad banners. One day I might document that, if anyone's interested. Quote:
$bbuserinfo['userid'] is the user number, and will always be "0" (or not exist) if the user isn't registered. $bbuserinfo['usergroupid'] is the group that the user is in. if ($bbuserinfo['usergroupid']=="5") {echo "Hello world";} will do the thing in curly brackets - print "Hello world" in this example - if the usergroupid = 5. if ($bbuserinfo['usergroupid']!="5") {echo "Hello world";} will do the thing in curly brackets if the usergroupid is NOT 5. if ($bbuserinfo['usergroupid']>="5") {echo "Hello world";} will do the thing in curly brackets if the usergroupid is 5 OR LARGER. and if ($bbuserinfo['usergroupid']=="5") {echo "Hello world";}else {echo "Goodbye world";} will only print "Hello world" if the usergroupid is 5 (as above), but will print "Goodbye world" if the usergroupid is anything else. Does that help work out how you'd show one thing to one user group and another thing to another? Hope so. |
#26
|
||||
|
||||
Just a quick Q...
Why is this in Template Moficiations??? Satan |
#27
|
|||
|
|||
Because it's a modification of the php_include template.
|
#28
|
||||
|
||||
Especially for adding the limited tutorial at the end! That really helps those of us who are learning and starting from ground zero.
|
#29
|
||||
|
||||
I am quite confused on how to sign up for ads and picking that stuff. Any help would be appreciated if you can help me with the two ad places in first post contact me on AIM SSJ4Gohan354
|
#30
|
|||
|
|||
I need a way placing rotating banners on my forums. Is there any code or a site where I can how to put banners on my site? I want to have multi banners so each time the person refreshes the page the banner will change and is there any way of keeping track of all the stats so I could tell how many hits, and times it has been showed. Somebody told me about phpadds, Annybody use this?
Here the links, once you create and add banners how do you get them in your templates?? http://sourceforge.net/projects/phpadsnew/ |
#31
|
||||
|
||||
You have to add the place the addclick code to the template where you want it to show - in the admin section of phpadsnew if will give you the banner invocation script - you then take that and place it in the template of you choice - mine is in the header template of my forums - that way it will show up automatically on all pages of the forum
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|