vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Subscription Expiry Notification on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=80171)

The Realist 04-19-2005 09:17 PM

Yep works perfect :)

Quote:

Originally Posted by kall
Oh bugger. It's because of the way we are displaying our dates.

Err...

HTML Code:

<if condition="$remaining > 0 AND $remaining < 20 AND $bbuserinfo[userid] != '0'">
How's that?


The Realist 04-19-2005 09:35 PM

Works great M8 and does what it says on the bottle :)

Edited mine a bit to:
Code:

<if condition="$remaining > 0 AND $remaining < 90 AND $bbuserinfo[userid] != '0'">
<div align="center"><font color="#FF0000">$bbuserinfo[username]!</font> Your Subscription
        Here Expires On The <font color="#FF0000">$expirydate</font>. You Have $remaining
        Days Remaining.<br />Please Click <a href="$vboptions[bburl]/subscriptions.php" title="Renew Subscription">here</a>
        And Renew Your Subscription And Continue Your Support Of YOUR FORUMS NAME Forums.</div></if>

Clicks install :)

kall 04-19-2005 09:58 PM

Sweet!

Nice message....I'll stick that in the install. :)

The Realist 04-19-2005 10:07 PM

Well thank you. :)

kall 04-20-2005 12:11 AM

Quote:

Originally Posted by The Realist
Well thank you. :)

And with a bit of tidying, it's XHTML compliant. :)

MikeGK 04-20-2005 09:27 AM

can this be done in user's profile as well? thank you

kall 04-20-2005 07:08 PM

Probably.

It could probably be done on every page, by using the query in php_include_start..

Optimised version will be out later today, thanks to the help of MarcoH64. :)

MikeWarner 05-06-2005 03:31 PM

Good job with the update.

I want to show this just below the bit that says "You last visited: Today at xx:xx". I can handle the template changes no problem, but the hack is designed to only show on the forumhome (index.php). How would I make it so that it showed on all pages? Do I need to change global.php - if so, how?

Many thanks.

kall 05-06-2005 08:57 PM

2.1 Update out today.

(Sorry, I don't know about putting it in global.php ... it might work...)

LloydSev 06-01-2005 10:27 AM

Works like an absolute charm for me. Thanks very much.


All times are GMT. The time now is 02:08 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.01022 seconds
  • Memory Usage 1,730KB
  • 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)bbcode_html_printable
  • (2)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
  • (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