vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Subscription Notifications -- Drive paid subscriptions & renewals (https://vborg.vbsupport.ru/showthread.php?t=241224)

Bat21 03-02-2014 02:10 PM

Does this work with vB 4.2.2?

Ted S 03-02-2014 08:46 PM

Quote:

Originally Posted by Bat21 (Post 2484570)
Does this work with vB 4.2.2?

It should work with any 4.x version.

iraqiboy90 05-07-2014 03:34 PM

Show Expired Paid Subscription Notification

I want this to be shown for a certain period, not forever.

I tried modifying this code, but it just didnt do any change:
PHP Code:

if ($vbulletin->options['subexp_exp'] && $sub_expires < (TIMENOW)){ $sub_when=1$sub_phrase '1'; } // already expired 

to
PHP Code:

if ($vbulletin->options['subexp_exp'] && $sub_expires < (TIMENOW +  (86400 * -5))){ $sub_when=1$sub_phrase '1'; } // already expired 


Ted S 05-08-2014 01:14 PM

Your formula just delays the start.

iraqiboy90 05-08-2014 01:22 PM

Quote:

Originally Posted by Ted S (Post 2496806)
Your formula just delays the start.

Then how would I be doing it?

Ted S 05-08-2014 01:39 PM

I believe there's a subforum for coding help in the vB4 section of this site.

DemOnstar 05-08-2014 01:55 PM

I use this, it works well.

Do I understand correctly that a user cannot get a notification if they subscribe to a forum?
Just a thread?

Thanks.

iraqiboy90 05-08-2014 02:05 PM

Quote:

Originally Posted by DemOnstar (Post 2496815)
I use this, it works well.

Do I understand correctly that a user cannot get a notification if they subscribe to a forum?
Just a thread?

Thanks.

Forum subscription gives you notification on new threads, I assume.
Thread subscription gives you notification on new posts.

Ted S 05-08-2014 02:09 PM

Quote:

Originally Posted by DemOnstar (Post 2496815)
I use this, it works well.

Do I understand correctly that a user cannot get a notification if they subscribe to a forum?
Just a thread?

Thanks.

The addon keys off of paid subscription status. Nothing else will change how it displays or does not display.


All times are GMT. The time now is 03:30 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.01293 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete