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-11-2002 06:49 PM

Auto Email/PM for Birthday Greetings Hack. Are you interested?
 
Hiyas,

I am on the verge of completing a hack which will automatically send greeting private messages or emails (or BOTH) to your members who have birthdays.

The code has a complex algorithm so before releasing it I want it tested extensively. I know that I could publish the hack in BETA Releases board, but IMO that board does not work as it should be. I had published 2 of my hacks in that board before to get some feedback about how they were doing in other's boards, but despite my insistent requests, I got none. :speechless:

So instead of making the hack publicly available to all, I wanted be tested by a small group who will really interested in the hack and return some feedback to me to get it improved.

If you want to test it and will return comments to me, please provide me with your email so that I can send you the hack.

A few important notes:

1- You will not get a "non-complete" or "too buggy" hack. I'm now testing the ALPHA version in my local test board and as for beta I will first install it to my "original board", make sure it's working and then I'll send it to you as a BETA tester. You will get a code that have been tested and proved succesful in my original board. However you can test it in your test board if you wish, your call..(If not, backup db anyway!)

2- This hack will NOT require CRON jobs, so anybody can use it.

3- Installation will NOT be a pain in the neck. 4 Steps and you're done..

4- Version of your board should not be a problem either. (provided that it's 2.x.x)

Thank you!

Logician

Dean C 05-12-2002 07:21 PM

YES .. simple answer... i wud love this hack...

inetd 05-12-2002 07:41 PM

Yes, good idea!
Logician, i will install this hack after release ;)

Dark_Wizard 05-16-2002 12:53 AM

Sounds really cool...If your still accepting beta testers let me know...

Logician 05-16-2002 05:54 AM

Quote:

Originally posted by Dark_Wizard
Sounds really cool...If your still accepting beta testers let me know...
Dark_Wizard yes..I've finished the hack and installed it in my original board and it's working without any problems.. And it would be nice if someone else tries in his board too. So I'm still accepting beta testers. Please send me your email address so that I can send you the hack.. Thank you.. :)

Logician 05-16-2002 08:57 PM

1 Attachment(s)
Some screenshots attached (maybe it can motivate you to try the hack) :)

The private message user gets: (send automatically by the hack of course!)

Logician 05-16-2002 08:59 PM

1 Attachment(s)
The daily greeting report Admin gets (optional) about when and how the hack celebrated member's birthdays..

dslteam 05-23-2002 12:13 PM

I love this hack !! I want have it !! :cool:

When do you want to release the first public version?

Thanks !

Logician 05-23-2002 12:47 PM

Quote:

Originally posted by dslteam
I love this hack !! I want have it !! :cool:
When do you want to release the first public version?

Never unless someone helps me testing it out..

5 people asked me to be beta testers and I sent them the code and I got no response in return at all.. :ermm:

I use the hack in my board now and I have no problems at all. But I just want to be sure it's perfectly ok before releasing it since it's algorithm is not very simple (installation is easy though) So I really need some feedback about how it is doing, any problems etc. from other people.. It's even ok to get a message with 3 words: "intalled, no problems"..This is actually what "beta testing" is lol..

I hate to disappoint people who is waiting for the hack but if nobody helps out, I am not going to release it, sorry..

Regards,
Logician

dslteam 05-23-2002 01:42 PM

I would like to test your script ! I would send you my feedback after the installation!

Logician 05-23-2002 02:14 PM

ok pls pm/email me your email address, so that I can send it to you.. thank you

Dark_Wizard 05-23-2002 03:53 PM

I've installed this and waitnig on a bday now...thx for the chance to help test this....

Logician 05-23-2002 04:22 PM

Dark_Wizard may I suggest creating a few fake users and setting their birthdays to tomorrow. :) This will both save you from unnecessary waiting and also you will have a chance to see if member gets pms/emails or not.

BTW. thank you for informing me..

Dark_Wizard 05-23-2002 06:30 PM

I thought of that as well but have 5 bdays coming up over the next few days...sorry for not getting back to you right away...I was on vacation last week when you sent it...

FCorner 05-24-2002 10:44 PM

Yes please, would be more than happy to provide feedback. I actually received a birthday greeting from either this board or the other VB support board and thought this was already released. Was that your hack in action? :)

My email address is webmom@familycorner.com and I promise to install it and provide feedback right away!

Thanks!

Logician 05-25-2002 04:05 PM

Quote:

Originally posted by FCorner
Yes please, would be more than happy to provide feedback. I actually received a birthday greeting from either this board or the other VB support board and thought this was already released. Was that your hack in action? :)

No FCorner, I havent released this hack yet, if you didnt get it from me via email very recently, no it's not my hack. I am not aware of any other similar hack either.

I have sent the hack to your email address and waiting to hear from you..Thanks for the help..

Regards,
Logician

Dark_Wizard 05-27-2002 09:36 AM

This is an awesome hack...my members love it and knew right away it was auto-generated. Everything is working great!

Dark_Wizard 05-27-2002 10:17 AM

Oops...here is a link to the thread generated by this hack

Logician 05-27-2002 02:19 PM

Dark_Wizard: Have you linked the page to demonstrate or to report a bug? If it's a bug report, page seems quite fine to me lol. If it's to demonstrate, my apologies..

And a small bug I catched: If user enters only date of his birthday and leaves the year blank, the variable that holds user's age will be 2002 hehe.. (Hack will greet his birthday anyway even if he is too "old"). :) I'll fix that in the release, in the meantime you can delete this variable from your templates if you want..

BTW Thx for the feedback..

Ps. Unreal Tournament is my favorite game and I'm (was) a good player too.. Cant find time to play for months though.. :tired: You board reminded me my passion to Unreal :D

Boofo 05-27-2002 03:22 PM

I just installed the hack you sent me. I changed my birthdate to today to test it and nothing had happened so far. Am I missing a step somewhere?

freeshares1 05-27-2002 03:30 PM

I would happily beta test this for, If you are still looking for testers, Email me @ webmaster@gamblingforums.net

phil

Logician 05-27-2002 04:17 PM

Quote:

Originally posted by Boofo
I just installed the hack you sent me. I changed my birthdate to today to test it and nothing had happened so far. Am I missing a step somewhere?
@Boofo: yep patience.. :)

First set your birthday to tomarrow, the day hack is installed will not be greeted. Secondly be patient. Hack does not greet the birthdays at exactly 12.00 AM, they can be greeted anytime in the day, so you may have to wait for sometime. This behaviour is intentional so that your server load wont increase..;)

@freeshares1: hack sent to your email, thx..

Regards,
Logician

Dean C 05-27-2002 06:26 PM

i will happily test this out providing there are no mysql queries to run...

EMAIL: rapstar10@hotmail.com

Logician 05-27-2002 06:36 PM

sorry Mist, it adds a table to MYSQL, so not SQL query free..

Dark_Wizard 05-27-2002 11:57 PM

The link was to provide a demo for anyone wanting to see it....the hack works fine. the install was great....UT player too huh? That's my passion and waiting patiently for UT2003!

Boofo 05-28-2002 01:55 AM

That's why I would have made a lousy doctor...no patience. :) Will set the birthdate and let you know how it goes. By the way, is there a way to maybe have it do an e-mail AND the forum, if I wanted to do both of them?

Boofo 05-28-2002 02:36 AM

It worked flawlessly. It sent the PM at around 12.52 am (server time). Now, what would make this hack perfect, is if you could do the greeting according to the users set time, if they have set it in the options. It showed me having a birthday 2 hours before I had it set for. It showed it on the 27th at 10 pm and I had it set for the 28th. My server is GMT and my time is is central time (GMT -6).
Just a thought. I did set a phony year to make sure it worked right. :)

Boofo 05-28-2002 06:54 AM

Another suggestion...is there a way to control whether my signature shows up in the birthday message to the user, whether it be the forum mode, pm mode or email mode? I have it enabled in my options but don't necessarily want it in the birthday message.

Logician 05-28-2002 08:22 AM

@boofo: Unfortunately I cant make it work according to user's time settings. It requires too much work and more importantly hack will be awkard and unstable. However I can suggest you setting "timeset" variable inside the hack options.

For example if your server is in GMT-5 but most of your users time setting is GMT+2 set your variable as "+7". Then hack will greet birtdays according to this setting and will work better at least for most of the users.

As for creating the thread, yep I plan to change its design. In fact I didnt plan to add a feature to "create a thread", hack was supposed to send pm or email or both only. But Crazy Mofo asked me to add such a feature (and I didnt hear from him anymore.) and I added the feature. Now it is requested that it will both create a thread and send pm(or email). I'll see what I can do. I think I can modify it to work this way.

Phony years dont stop the hack from working however, user's age would be odd, for sure :)

Boofo 05-28-2002 09:44 AM

I understand the time issue, but is there any way that it could be delayed until 12 noon on the birthday? Then it would be sure to get everyone on their birthday, no matter what timezone they were in, since GMT can only go +12 at the most. Does that make sense? :)

As far as the email, pm and thread option, it would be nice to have any combination of them that you want. It would appeal to everyone that way with it's flexibility.

Quote:

Originally posted by Logician
@boofo: Unfortunately I cant make it work according to user's time settings. It requires too much work and more importantly hack will be awkard and unstable. However I can suggest you setting "timeset" variable inside the hack options.

For example if your server is in GMT-5 but most of your users time setting is GMT+2 set your variable as "+7". Then hack will greet birtdays according to this setting and will work better at least for most of the users.

As for creating the thread, yep I plan to change its design. In fact I didnt plan to add a feature to "create a thread", hack was supposed to send pm or email or both only. But Crazy Mofo asked me to add such a feature (and I didnt hear from him anymore.) and I added the feature. Now it is requested that it will both create a thread and send pm(or email). I'll see what I can do. I think I can modify it to work this way.


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 12:15 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.01472 seconds
  • Memory Usage 1,840KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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