Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 02-08-2010, 07:08 PM
mabersoft mabersoft is offline
 
Join Date: Jun 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
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 View Post
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 View Post
You can do this with vbulletin software. there is no need for this hack/mod.
Well sorry for me trying to help fellow vBulletiners.
Reply With Quote
  #13  
Old 02-08-2010, 09:17 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 mabersoft View Post
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.
Reply With Quote
  #14  
Old 02-09-2010, 07:45 AM
mabersoft mabersoft is offline
 
Join Date: Jun 2009
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
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.
Reply With Quote
  #15  
Old 07-09-2010, 03:34 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
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.
Reply With Quote
  #16  
Old 07-09-2010, 07:28 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 Dragonsys View Post
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.
Reply With Quote
  #17  
Old 07-12-2010, 03:12 AM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
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
Reply With Quote
  #18  
Old 07-12-2010, 05:07 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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 10:45 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.04340 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (8)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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