vb.org Archive

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

Ted S 05-20-2008 01:58 AM

Quote:

Originally Posted by Mum (Post 1525363)
I want to use this but my user cp doesn't have $header in it, can you tell me where to enter $submessage please?

As explained in the install file, the user cp template should be modified to include this variable at or near the top. Where exactly is a function of where you want it go show up.

jasculs 05-20-2008 02:00 AM

I think I love you....lol...Great hack...something I've been looking for.

Ted S 05-20-2008 02:01 AM

Quote:

Originally Posted by billt928 (Post 1525316)
how can this be added to the new post page?

You would need to modify the xml file adding a new plugin for the hook newthread_start. You can more or less copy the plugin for forumhome_start to accomplish this.

Ted S 05-20-2008 02:01 AM

Quote:

Originally Posted by jasculs (Post 1525366)
I think I love you....lol...Great hack...something I've been looking for.

You're welcome... I think... :p

Ted S 05-20-2008 02:10 AM

An updated version has been released. This version provides access to one variable in the phrases. An update is not required unless you wish to access this variable.

Mum 05-20-2008 02:17 AM

Quote:

Originally Posted by Ted S (Post 1525364)
As explained in the install file, the user cp template should be modified to include this variable at or near the top. Where exactly is a function of where you want it go show up.

Yes, what it says in the install file is place it under $header - what i said was i don't have $header in my user cp file, so where should i enter it.

Sorry i wasn't clear that i WAS following the instructions of the install file.

Ted S 05-20-2008 02:29 AM

Quote:

Originally Posted by Mum (Post 1525376)
Yes, what it says in the install file is place it under $header - what i said was i don't have $header in my user cp file, so where should i enter it.

Sorry i wasn't clear that i WAS following the instructions of the install file.

No, it says to place it in under $header in the forumhome template and at the TOP of the file in user cp. But again, you put it where you want it to show up... at top, the bottom, anywhere you like.

As a side note, I've rewritten this step in the install file to make it easier to understand when just glancing through the step.

Ted S 05-20-2008 02:31 AM

Quote:

Originally Posted by amc (Post 1525361)
Does the notification include the "Name of the Subscription" also?

At this time this is not possible although it is something I am working on.

Mum 05-20-2008 05:37 AM

Thank you, installed and working now :)

amc 05-20-2008 05:51 AM

Quote:

Originally Posted by Ted S (Post 1525382)
At this time this is not possible although it is something I am working on.

Thank You, Ted!

Looking forward to it.


All times are GMT. The time now is 09:46 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.01347 seconds
  • Memory Usage 1,737KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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