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.


All times are GMT. The time now is 10: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
  • Page Generation 0.01056 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete