Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Mabersoft vBulletin - Guest Ad Details »»
Mabersoft vBulletin - Guest Ad
Version: 1.00, by mabersoft mabersoft is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.x Rating:
Released: 02-06-2010 Last Update: Never Installs: 4
Template Edits
Code Changes Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-07-2010, 01:41 PM
mabersoft mabersoft is offline
 
Join Date: Jun 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.0 - Released
Reply With Quote
  #3  
Old 02-07-2010, 04:25 PM
ndut ndut is offline
 
Join Date: Sep 2007
Location: Indonesia
Posts: 335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any preview??
Reply With Quote
  #4  
Old 02-07-2010, 07:03 PM
mabersoft mabersoft is offline
 
Join Date: Jun 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ndut View Post
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.
Reply With Quote
  #5  
Old 02-07-2010, 07:43 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if I want to have the ads hidden for specific usergroups only?
Reply With Quote
  #6  
Old 02-08-2010, 03:05 PM
mabersoft mabersoft is offline
 
Join Date: Jun 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #7  
Old 02-08-2010, 03:36 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 02-08-2010, 03:47 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bouncer222 View Post
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.
Reply With Quote
  #9  
Old 02-08-2010, 06:36 PM
Neptun Neptun is offline
 
Join Date: Aug 2003
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is this ?! what can i do with this ?!
Reply With Quote
  #10  
Old 02-08-2010, 06:43 PM
oddmud's Avatar
oddmud oddmud is offline
 
Join Date: Oct 2009
Location: Canada
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do this with vbulletin software. there is no need for this hack/mod.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:04 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.06877 seconds
  • Memory Usage 2,302KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete