vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Paid subscription conditional within template (https://vborg.vbsupport.ru/showthread.php?t=159014)

kafi 09-29-2007 06:33 AM

Paid subscription conditional within template
 
Hello I want to display certain content on extra page (set up with Logician's webtemplate addon).
I want to restrict this content only to users with active paid subscription.

I can not find conditional like this:

is_member_of($subscriptionid, 1)

Is there any way to achive this?

Thanks!!!

Dismounted 09-30-2007 05:23 AM

Code:

<if condition="!is_member_of($vbulletin->userinfo, X)">
USER IS NOT SUBSCRIBED
<else />
USER IS SUBSCRIBED
</if>

Replace "X" with the usergroup id of the subscribed group.

kafi 10-01-2007 06:46 PM

Thank you for your reply dismounted!

The thing is that I do not want to use usergroup change along with subscription. I am only looking for conditional regarding subscription id not usergroup. I do not want to use usergroup along with paid subscription because it is overkill - I need to differentiate this users only on one page (not forum page) so there is no need for complex usergroup concept. I only need filter content of one page according paid subscription....

Is there a way to do this?
Thanks!!!!!!!!!!!!!!!!!!!!!!!!

Dismounted 10-02-2007 03:57 AM

How is it overkill? The system is designed to handle larger amounts of Primary/Additional usergroups.

kafi 10-04-2007 06:37 AM

I mean overkill because I only need access only one page for subscribed members for downloading one document.
I do not want to use any of these conditional within forum. Therefore all settings for usergroup would be overkill and if I set up about 30-40 subscription I will have to set-up 30-40 usergroups which is overkill for administration....
So basically I need to subscribe users only to this one page and avoid hassles with usergroup settings for entire forum. But I will need subscription conditional that can be implemented for that download page...

Many thanks!


All times are GMT. The time now is 08:57 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.02664 seconds
  • Memory Usage 1,714KB
  • 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_code_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