vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Latest Paid Subscribers v1.1 (https://vborg.vbsupport.ru/showthread.php?t=128735)

afmarko99 01-20-2007 01:42 AM

Quote:

Originally Posted by paul41598 (Post 1147768)
the updated zip file has the hook location at forumhome. The hack works.

b.t.w, for those who cant edit the phrase directly through the hyperlink, you can fix it by editing the phrase: (setting_latest_paid_subscribers_desc)

and change:

&e[1]

to:

&e[global]


Where do I find these codes? FORUMHOME template? I looked there but didnt find these.

Also how would I go about changing the color of the usernames?

jdebler 01-20-2007 02:02 AM

Quote:

Originally Posted by paul41598 (Post 1099629)
Its in the template "expirydatebits"

Thanks for the clarification!

Question...
When modifying that template, if I have two different subscriptions and I want to display one of two different expiration warning messages that depends on the subscription they are currently on, how would I do that?

I tried the following based on the usergroup that my subscriptions put the user in:

Code:

<if condition="is_member_of($post, 1)">
        <div align="center" class="tborder" style="padding: 2px;">
                (Expiration warning message to Subscription level 1)</span></div>
        </div>
</if>

<if condition="is_member_of($post, 2)">
        <div align="center" class="tborder" style="padding: 2px;">
                (Expiration warning message to Subscription level 2)</span></div>
        </div>
</if>

But that didn't work, neither message shows up. What did I miss? Also, is there a specific if condition that I should use that is based on current subscription instead of current usergroup?

paul41598 01-20-2007 12:15 PM

Quote:

Originally Posted by EaglezEye (Post 1163179)
Where do I find these codes? FORUMHOME template? I looked there but didnt find these.

Also how would I go about changing the color of the usernames?

They're in the phrases. Can't change the color of the usernames, thats why this hack focus's on usergroup markup colors. Theres another subscription hack on here, that will allow you to change the colors, but its not nearly as advanced as mine.

Quote:

Originally Posted by jdebler (Post 1163184)
Thanks for the clarification!

Question...
When modifying that template, if I have two different subscriptions and I want to display one of two different expiration warning messages that depends on the subscription they are currently on, how would I do that?

I tried the following based on the usergroup that my subscriptions put the user in:

Code:

<if condition="is_member_of($post, 1)">
        <div align="center" class="tborder" style="padding: 2px;">
                (Expiration warning message to Subscription level 1)</span></div>
        </div>
</if>

<if condition="is_member_of($post, 2)">
        <div align="center" class="tborder" style="padding: 2px;">
                (Expiration warning message to Subscription level 2)</span></div>
        </div>
</if>

But that didn't work, neither message shows up. What did I miss? Also, is there a specific if condition that I should use that is based on current subscription instead of current usergroup?

Try $bbuserinfo instead of $post in those conditions ;)

jdebler 01-22-2007 02:07 PM

Quote:

Originally Posted by paul41598 (Post 1163403)
Try $bbuserinfo instead of $post in those conditions ;)

BAH! I knew it was something like that. It worked, thanks!

Nice car. :cool:

KipLarson 01-24-2007 08:56 PM

Just what I was looking for... I'm going to possibly come back and let you know how it works in 3.61

jdebler 01-25-2007 12:09 PM

Works fine on 3.6.4

sunnycher 01-27-2007 03:00 PM

I installed this on my new site but it seems to stretch the 'whats going on box' (current activity). Any fix to this?

Thank yoU!!

mandy71480 01-27-2007 04:49 PM

This is great and will really help out woth my boards now that I'm offering paid memberships

T_Richardson 02-06-2007 09:26 PM

Works great on 3.6.4

One question, does anyone know how i can add the amount they paid along side?

Thanks.

T_Richardson 02-10-2007 03:48 AM

Anyone?
For example;

Thankyou to our latest contributing members: Memername Feb, 10 2007, $10.00, Membername2 Feb, 09 2007, $5.00

or have it in a table ;

Memername $10.00 | Feb, 10 2007
Membername2 $5.00 | Feb, 09 2007

I would do it myself, but getting data from mysql is beyond me.


All times are GMT. The time now is 02:21 PM.

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.01275 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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