vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide a certain subscription from appearing on payments.php (https://vborg.vbsupport.ru/showthread.php?t=260511)

Wonksta 03-17-2011 03:30 AM

Hide a certain subscription from appearing on payments.php
 
Hi there

I would like to know if it's possible to hide a subscription from appearing to anyone when viewing payments.php. The reason for this is I want to keep existing subscribers paying the same amount as it's recurring but I want all new future subscribers to be paying a different price. If I change the price of the existing subscription it will break the recurring payments hence my question and I don't want that subscription available any more apart from being hidden for the sake of not breaking existing recurring payments.

Thank you

BirdOPrey5 03-19-2011 02:02 PM

It takes some doing but yes, I just tested this and it works...

First go to your phpmyadmin and look at your subscriptions table...

Find the "subscriptionid" of the subscription you want to hide, it's a number.

Now edit your templates, edit your subscription_availablebit template.

On the very top add the line:

Code:

<if condition="$subscription[subscriptionid] != 4">
(where 4 is the subscriptionid number you want to block)'
at the very end of the template add the line
Code:

</if>
Repeat for all styles you have.

Now when you look at your subscriptions page that subscription should be hidden, but still "active" so it will work.

Wonksta 03-19-2011 02:17 PM

Forgot to update this thread that I found Subscription Permissions under Paid Subscriptions in AdminCP which allowed me to hide a subscription from everyone.

Thanks for reply BirdOPrey5 :)

BirdOPrey5 03-19-2011 02:59 PM

Even better. :up:

lawina 06-27-2011 01:08 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2175097)
It takes some doing but yes, I just tested this and it works...

First go to your phpmyadmin and look at your subscriptions table...

Find the "subscriptionid" of the subscription you want to hide, it's a number.

Now edit your templates, edit your subscription_availablebit template.

On the very top add the line:

Code:

<if condition="$subscription[subscriptionid] != 4">
(where 4 is the subscriptionid number you want to block)'
at the very end of the template add the line
Code:

</if>
Repeat for all styles you have.

Now when you look at your subscriptions page that subscription should be hidden, but still "active" so it will work.

You sir are my idol! Thanks a lot for this.


All times are GMT. The time now is 05:27 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.01011 seconds
  • Memory Usage 1,721KB
  • 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
  • (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