vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Paid subscriptions with special price for selected usergroups (https://vborg.vbsupport.ru/showthread.php?t=82168)

luroca 05-27-2005 09:00 PM

Paid subscriptions with special price for selected usergroups
 
Please, excuse my poor English.
This hack allows to assign to paid subscriptions a special price for selected primary usergroups.
This hack has been requested several times, included me, and I was tired to wait that somebody writes it. Thanks very much to amykhar for her help with the pay system files.
This hack is totally compatible with another hack of mine: Paid subscriptions only available for some usergroups, at https://vborg.vbsupport.ru/showthread.php?t=81854

ATENTION: It?s only tested with paypal but I think all this files are similar and they must work.

The hack works OK for me but I don?t accept any liability; use at your own risk.

2 queries to run
2 new phrases
3 files to edit (or 6 if you use all paysystems)
/admincp/subscriptions.php
/forum/subscriptions.php
/subscriptions/paypal.php (wordpay.php - nochex.php - authorize.php)

As always, first, backup of files and database :)

nexialys 05-28-2005 12:26 PM

this is a great idea... but i think it's not logical... would be better to have a text field for each usergroup and set the amount for each specific, so we can very focus on each usergroup...

and logically, this becomes are real mess when you have users with multiple usergroups... is the primary group used for identification, or all usergroups... because if i'm member of the group X, Y and Z, and one of your subscription have rebates for group X and have a higher fee for Y, you will have strange behaviors....

luroca 05-28-2005 12:51 PM

Quote:

Originally Posted by nexialys
this is a great idea... but i think it's not logical... would be better to have a text field for each usergroup and set the amount for each specific, so we can very focus on each usergroup...

and logically, this becomes are real mess when you have users with multiple usergroups... is the primary group used for identification, or all usergroups... because if i'm member of the group X, Y and Z, and one of your subscription have rebates for group X and have a higher fee for Y, you will have strange behaviors....

Probably you are right but this is a very simple hack that only offers the possibility of a minor price in several subscriptions to some usergroups. I edit the first post to add that only works for primary usergroups.

Thanks for your interest.

Marco van Herwaarden 05-28-2005 01:11 PM

Amy is a 'she' ;)

luroca 05-28-2005 01:18 PM

Thanks, MarcoH64, edited.
Amykhar, my excuses.


All times are GMT. The time now is 10:43 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.01544 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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