vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Auto Email/PM for Birthday Greetings Hack. Are you interested? (https://vborg.vbsupport.ru/showthread.php?t=38531)

Logician 05-28-2002 09:57 AM

Quote:

Originally posted by Boofo
since GMT can only go +12 at the most. Does that make sense? :)

You can set the variable timeset what ever number you want. So eg. this works: $timeset=17 or $timeset=-44.

The problem is it is not possible for the hack to get into details for all users that have a birthday in a specific day. When hack is triggered, it just checks if it has already greeted the birthday for "today" and if not gets birthday of ALL users once and send them greetings, again once. I cant make it remember "when birthday should be greeted for which user".

Consider the "today's birthday" field in your main page. It has this behaviour either. For example it lists 2 birtdays for A and B in your main page (according to page viewer's time zone) and the page viewer may send A a PM to greet his birthday. But maybe it's not his birthday according to A's time zone yet, there may be 2 hours left for instance..

But nothing we can do about it, it's really too complex to add such a feature..

Boofo 05-28-2002 10:09 AM

ok, I understnad a little better now. What you have there is fine. I need to ask, though, if there is no year after the birthday for the user, can it just show the happy birthday part and not show anything for the age part? Like parse it if there is not a year available? Just a thought...:)

Logician 05-28-2002 11:04 AM

What is showed depends to you because you set it inside the templates. If you remove the relevant $birthday_child[yas] variable from your template, it wont display the age. However I will add a feature that if the year is blank, this variable will be just "-" instead of 2002 :)

Boofo 05-28-2002 11:44 AM

I see what you are saying but I want the age displayed if there is a year and not if there isn't. Is there a way to do this? Or is that what you meant?

Logician 06-01-2002 12:34 PM

BUG FIX

I found a bug and fixed it, if you install the hack, please you fix that too:

Edit index.php:

Find:

PHP Code:

$n_month=(integer)date("n",strtotime($last_action['leftdate']));$n_day=(integer)date("j",strtotime($last_action['leftdate']))+1;$n_year=(integer)date("Y",strtotime($last_action['leftdate'])); 

and REPLACE it AS:

PHP Code:

$n_month1=(integer)date("n",strtotime($last_action['leftdate']));
$n_day1=(integer)date("j",strtotime($last_action['leftdate']))+1;
$n_year1=(integer)date("Y",strtotime($last_action['leftdate']));
$n_monthdate("n"mktime (0,0,0$n_month1$n_day1$n_year1));
$n_daydate("j"mktime (0,0,0$n_month1$n_day1$n_year1));
$n_yeardate("Y"mktime (0,0,0$n_month1$n_day1$n_year1)); 

If you dont fix it, hack will stop greeting the birthdays as of today (first day of June). After the fix hack will go on greetings from the date it stopped (Last day of May) and will not miss birthdays in the meantime..

Although not likely, please let me know if you have any problems afterwards..

Regards,
Logician

Highlander 06-02-2002 12:58 PM

yes me too as beta tester..

mail@spieleplanet.com

c-pr0mpt 06-04-2002 04:35 AM

I would love to help beta test this.

corey@ravio.com - Email

Jeremy W. 06-04-2002 09:10 PM

What is the expected release date on this?

Logician 06-04-2002 10:01 PM

Quote:

Originally posted by Jeremy W.
What is the expected release date on this?
Very soon.. After the last bug fix, I sent the script to Highlander and c-pr0mpt and when I get their feedback, I will release it (provided that everything is ok)..

Me2Be 06-04-2002 10:06 PM

Would it be too difficult to add an option where you can specify how recently a user has visited? I don't think members who haven't visited in, let's say, six months will be coming back to the boards (at least on our site!) :)

Look forward to this release!


All times are GMT. The time now is 05:31 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.01136 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)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