vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - vbCoupons - offer money-off coupons for paid subscriptions (https://vborg.vbsupport.ru/showthread.php?t=173778)

stamos2003 03-23-2008 10:44 AM

Quote:

Originally Posted by ringleader (Post 1471634)
DId you follow the instruction to add the word $couponbit after </form> in your Paid Subscription Templates -> subscription, perhaps :confused:

And check the plugin called Fetch Coupon Template is active?
That's the only 2 other reasons it wouldn't be working for you.

yes, plugins are active and the templates are there, still not showing up.
As I see I am not the only one.
Which Version do you have?

ringleader 03-23-2008 02:41 PM

Sorry for the last time. I made a typo in the call to the couponbit template when I packaged the last one.

A new one is uploaded that calls everything correctly now.

Just overwrite everything (files and product) with the files in this new zip.

stamos2003 03-23-2008 04:07 PM

it's still not working?! :D
I replaced everything and redid everything....

ringleader 03-23-2008 04:28 PM

Quote:

Originally Posted by stamos2003 (Post 1472564)
it's still not working?! :D
I replaced everything and redid everything....

Do you have a template called vbcoupons Templates >> vbCoupons_couponbit
when you install the product?

And a Plugin under hook called paidsub_complete with the content:
Code:

$user_coupon_name = get_coupon();

eval('$couponbit .= "' . fetch_template('vbCoupons_couponbit') . '";');

And $couponbit at the bottom of your Paid Subscription Templates >> subscription template

And have a subscription set in your Paid Subscriptions - Subscription Manager.

Because if you have those four things there's absolutely no reason the template would not show on your payments.php page.

Since you didn't mention getting a white screen on your payments.php after doing the file edit, the rest of the code besides the couponbit is fine.

ringleader 03-23-2008 04:30 PM

Wait a second, sven/stamos2003, I just checked your profile and it says you have version 3.5.3

If that's right, this might not work on your board since the hooks it uses wouldn't have been invented until at least 3.5.4 :mad:

stamos2003 03-23-2008 04:46 PM

no worries, I just did not update my profile, I have 3.6.8
I have the template vbCoupons_couponbit
and I have following plug ins:
Add, Delete, Deduct Coupon For User Hookpoint: paidsub_start
Cache Coupon Template Hookpoint: cache_templates
Create Template Group Hookpoint: template_groups
Fetch Coupon Template Hookpoint: paidsub_complete

ringleader 03-23-2008 04:54 PM

Okay then, there's just two more things to check:

1. Does the hook under paidsub_complete say what's quoted above?
2. Do you have any subscriptions for people to pay for? The coupon template won't be called, otherwise.

EDIT: Oh, and most importantly, did you edit the template Paid Subscriptions Templates >> subscription and place the word $couponbit AFTER </form>

DssCrazy 03-23-2008 05:08 PM

i have uploaded everything and i still can't see it also.

ringleader 03-23-2008 05:11 PM

I know it's a lot to ask, but could one of you give me access to your admincp to see the difference between your set up and mine for this mod?

DssCrazy 03-23-2008 05:12 PM

i have checked everything and i can't see what went wrong.


All times are GMT. The time now is 01: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.01150 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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