vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Donors don?t get advertising (https://vborg.vbsupport.ru/showthread.php?t=245004)

lubbie 06-21-2010 03:43 PM

Donors don?t get advertising
 
Hello. I am running some advertisment to my forum and want to add Paypal donations to it. All donors should be moved to a group wich wont see the advertising anymore.
Problem is, that there is no configuration in vbulletin 4. Thats why i wanted to ask if any of you could help me?

BirdOPrey5 06-21-2010 07:30 PM

The Subscriptions system is built into vB... When a user pays for a subscription they can be moved to a new usergroup- and you can do various things to not show ads to that usergroup- as well as give them other benefits like bigger avatars and PM boxes and such, all of this is controlled by usergroup options.

Usually subscriptions are monthly or yearly and you can choose if they are automatically recurring or not... if you just want '1 time' donations then set your subscription length to the max (like 30 years or such) and any 1 time donation will put people in the 'donors' usergroup.

Most people who have subscriptions have different 'levels' of membership.

lubbie 06-22-2010 10:01 AM

Hello BirdOPrey5.
Is it possible to use the build in system with a Paypal addon from here?
I wanted to give VSA´s addon a try

BirdOPrey5 06-22-2010 03:28 PM

I'm not familiar with that add-on so I don't know... If it was compatible I'd bet he or she would mention that in the mod description.

lubbie 06-22-2010 05:32 PM

well, I tried the Subscription and moving to usergroups, what is working quit well.
The problem I have is, that I can not find anything for turning ads of, for this special usergroup.

Just read the description, where it says

Quote:

Move or add confirmed donors to your VIP/Donor usergroup

BirdOPrey5 06-22-2010 07:27 PM

No the ads don't shut off by default, you have a few options though... The easiest I think would be wrap your ads in "If" statements and not show them to your premium usergroups...

For example in the navbar template find:
Code:

$ad_location[ad_navbar_below]
Replace with:
Code:

<if condition="is_member_of($vbulletin->userinfo, 20, 21)">
<else />
$ad_location[ad_navbar_below]
</if>

That code will display nothing (no ad) to members of usergroups # 20 and 21, but show the add to everyone else. In my example group numbers 20 and 21 are paid membership groups, for your forum the numbers will be different. Go to your usergroup manager to get the number of each group.

Put those IF statements around all/any ads you want to block... You can add or remove as many group numbers as you want, just keep a comma between them... so the following are all valid:
<if condition="is_member_of($vbulletin->userinfo, 20, 21)">
<if condition="is_member_of($vbulletin->userinfo, 21)">
<if condition="is_member_of($vbulletin->userinfo, 5, 6, 7, 20, 21)">


All times are GMT. The time now is 07:28 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.01374 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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