View Full Version : Forum Home Enhancements - Mabersoft vBulletin - Guest Ad
mabersoft
02-06-2010, 10:00 PM
Here is a simple vbulletin mod made by Mabersoft vBulletin.
*INSTALL*
Add this code to any of the ad templates
<!-- Mabersoft vBulletin Guest Ad -->
<vb:if condition="$show['guest']">
<div align="center">
<!-- Ad Code Goes Here -->
<!-- /Ad Code Goes Here -->
<br />
Only Guests See This Ad!
</div>
</vb:if>
<!-- /Mabersoft vBulletin Guest Ad -->
Add you Ad code between
<!-- Ad Code Goes Here -->
<!-- /Ad Code Goes Here -->
*LICENCE*
What You Can Not Do:
Re use the code in anyway shape or form
Remove the <!-- Mabersoft vBulletin Guest Ad --> & <!-- /Mabersoft vBulletin Guest Ad -->
Redistribute it any way shape or form
Call It Your Own Work
What You Can Do:
Change Style of it
mabersoft
02-07-2010, 01:41 PM
1.0 - Released
mabersoft
02-07-2010, 07:03 PM
any preview??
no sorry. as i don't have a adsense account.
All it does is make the ads show up only to guest so registered members don't see it. Its a good way of getting people to reg if they want rid of the ads they just register.
Bouncer222
02-07-2010, 07:43 PM
What if I want to have the ads hidden for specific usergroups only?
mabersoft
02-08-2010, 03:05 PM
change this: <vb:if condition="$show['guest']">
to this:
vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
edit the number(s) with your usergroup number and then it will only display to them/that usergroup(s)
Brandon Sheley
02-08-2010, 03:36 PM
what is a "Mabersoft " ??
this really isn't a mod, it's just use of the template conditions
https://vborg.vbsupport.ru/showthread.php?t=215032
for 3.x
and
https://vborg.vbsupport.ru/showthread.php?t=231525
for 4.x ;)
What if I want to have the ads hidden for specific usergroups only?
Just use the existing conditional selection options that come with the Advertising module.
One of these is actually "User belongs to usergroup", so this Template Mod is fairly superfluous.
Set that setting to Unregistered, and your ad will only be shown to Guests, and you don't have to edit the ad template.
Use this mod and edit the ad template with this, I'm fairly certain that ad location can't be used for any other ad.
Use the standard system and don't install this mod, and you can have multiple ads in one location that will be seen only by whatever usergroup you want to see them.
Neptun
02-08-2010, 06:36 PM
what is this ?! what can i do with this ?!
oddmud
02-08-2010, 06:43 PM
You can do this with vbulletin software. there is no need for this hack/mod.
mabersoft
02-08-2010, 07:08 PM
what is a "Mabersoft " ??
this really isn't a mod, it's just use of the template conditions
https://vborg.vbsupport.ru/showthread.php?t=215032
for 3.x
and
https://vborg.vbsupport.ru/showthread.php?t=231525
for 4.x ;)
Mabersoft is the name i run under on the internet just like you have Loco.M.
and yes this is for 3.x & 4.x so both users can use it.
what is this ?! what can i do with this ?!
The code that i have provided will make it show the ads (google adsense for instance) show only to guest on the forum and not any other usergroup
You can do this with vbulletin software. there is no need for this hack/mod.
Well sorry for me trying to help fellow vBulletiners.
Well sorry for me trying to help fellow vBulletiners.
It's not that we are saying "don't help", it's that this modification actually REMOVES functionality rather than adding it.
mabersoft
02-09-2010, 07:45 AM
It's not that we are saying "don't help", it's that this modification actually REMOVES functionality rather than adding it.
Oh sorry. i did not know that. Thanks.
Dragonsys
07-09-2010, 03:34 PM
Just use the existing conditional selection options that come with the Advertising module.
One of these is actually "User belongs to usergroup", so this Template Mod is fairly superfluous.
Set that setting to Unregistered, and your ad will only be shown to Guests, and you don't have to edit the ad template.
Use this mod and edit the ad template with this, I'm fairly certain that ad location can't be used for any other ad.
Use the standard system and don't install this mod, and you can have multiple ads in one location that will be seen only by whatever usergroup you want to see them.
Too bad the Advertising Module which comes with vb is very limited in the way it handles usergroups. You can only have the if condition apply to 1 usergroup. Which means, if you want the ad to display to everyone except for a certain 3 usergroups, you have to create several ads, and even then, it's difficult to accomplish fully.
So this Template mod does add functionality for people wanting to do this.
Too bad the Advertising Module which comes with vb is very limited in the way it handles usergroups. You can only have the if condition apply to 1 usergroup. Which means, if you want the ad to display to everyone except for a certain 3 usergroups, you have to create several ads, and even then, it's difficult to accomplish fully.
So this Template mod does add functionality for people wanting to do this.
Pray tell, how exactly this mod (show an ad to guests) allows one to show an ad to multiple usergroups.
Dragonsys
07-12-2010, 03:12 AM
Pray tell, how exactly this mod (show an ad to guests) allows one to show an ad to multiple usergroups.
See post #6 in this thread
Right.
Sorry I missed that, it's not part of the modification at all, and really just proves the point several of us are making - it's more of an example of how Conditions work, and not a good replacement for the in-built Advertising.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.