vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Mabersoft vBulletin - Guest Ad (https://vborg.vbsupport.ru/showthread.php?t=235233)

mabersoft 02-06-2010 10:00 PM

Mabersoft vBulletin - Guest Ad
 
1 Attachment(s)
Here is a simple vbulletin mod made by Mabersoft vBulletin.

*INSTALL*
  1. Add this code to any of the ad templates

    Code:

    <!-- 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 -->

  2. Add you Ad code between
    Code:

        <!-- 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

ndut 02-07-2010 04:25 PM

any preview??

mabersoft 02-07-2010 07:03 PM

Quote:

Originally Posted by ndut (Post 1976763)
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:
Code:

<vb:if condition="$show['guest']">
to this:
Code:

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 ;)

kall 02-08-2010 03:47 PM

Quote:

Originally Posted by Bouncer222 (Post 1976883)
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

Quote:

Originally Posted by Loco.M (Post 1977527)
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.

Quote:

Originally Posted by Neptun (Post 1977666)
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

Quote:

Originally Posted by oddmud (Post 1977672)
You can do this with vbulletin software. there is no need for this hack/mod.

Well sorry for me trying to help fellow vBulletiners.

kall 02-08-2010 09:17 PM

Quote:

Originally Posted by mabersoft (Post 1977697)
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

Quote:

Originally Posted by kall (Post 1977801)
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

Quote:

Originally Posted by kall (Post 1977541)
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.

kall 07-09-2010 07:28 PM

Quote:

Originally Posted by Dragonsys (Post 2066878)
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

Quote:

Originally Posted by kall (Post 2066964)
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

kall 07-12-2010 05:07 PM

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.


All times are GMT. The time now is 08:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01087 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete