vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - Auto Birthday Greeter (https://vborg.vbsupport.ru/showthread.php?t=236131)

Valter 02-16-2010 10:00 PM

VSa - Auto Birthday Greeter
 
1 Attachment(s)
Info:
This hack automatically creates a birthday thread in the forum you select. Only members that allow their date of birth to be displayed will be listed, and age will be shown only for those who has chosen that. Members are shown in colors defined in usergroup settings. You can choose to exclude inactive members. Several users can be set as greeters (used randomly when posting). Thread will be created first time when someone loads forumhome after midnight.


Notes:
-This executes 1 very simple query on forumhome/in target forum.
-mktime() error? Check out this post.


Installation:
-Import XML file (as product) through AdminCP: Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: vBulletin Options > VSa - Auto Birthday Greeter


Versions:
v1.0 - Aug 26. 2007.
-Initial release
v1.4 - May 03. 2008.
-Latest vb 3.x version
v2.0 - Feb 17 2010.
-Updated for vB 4
-Added option to disable smilies
v2.0.1 - Feb 28 2010.
-New: Proper Time is now automatically detected
-Fixed: Several compatibility issues
v2.0.2 - Feb 28 2010.
-Fixed: Bug with multiple threads created
v2.0.3 - Mar 02 2010.
-Fixed mktime errors
v2.0.4 - Sep 06 2010.
-Fixed: Another bug with multiple threads created
-Fixed: Minor bugs
v2.0.5 - Sep 16 2010.
-Fixed: Multiple threads
v2.0.6 - Sep 23 2010.
-Fixed: Wrong thread creation time

GeorgeB85 02-17-2010 02:14 PM

Valter:

Been waiting for this. Thanks!

Robru 02-17-2010 02:16 PM

Can we upgrade from the old 1.4 Cyb - Auto Birthday Greeter version ?

Jonluci 02-17-2010 02:36 PM

Works great :)
Thanks a lot

War.Frog 02-17-2010 02:45 PM

You're on a roll Valter! Thanks for the update!

princeedward 02-17-2010 04:06 PM

WOOOOOOOOT! Million Thanks Once Again Valter...Fantastic!

As Always...

Marked Installed---Nominated---Rated 5 Star

:p:up:

Valter 02-17-2010 04:21 PM

Quote:

Originally Posted by Robru (Post 1984648)
Can we upgrade from the old 1.4 Cyb - Auto Birthday Greeter version ?

Uninstall old version before upgrading to v2.0.

k1klass 02-17-2010 05:41 PM

best coder ever - cheers m8, marked as installed ;)

War.Frog 02-17-2010 05:46 PM

Quote:

Originally Posted by k1klass (Post 1984835)
best coder ever - cheers m8, marked as installed ;)

Agreed. Hmm...they're looking for coding help for vBExperience 4.X since Phalanx is hanging 'em up. How about it Valter? ;-) :D

TimberFloorAu 02-17-2010 06:05 PM

Anyway we could include the data from this script in the thread ???

http://www.joeswebtools.com/wordpres...n-on-this-day/

So It says :

You also share your birthday with,:-

Bing Crosby
Edgar Allan Poe
Jacque Cousteau

etc ?

Hornstar 02-17-2010 07:07 PM

So it creates just 1 thread with all the birthdays listed in it? That sounds pretty good.

Valter 02-17-2010 08:04 PM

One thread per day, like it's shown on screenshot:

https://vborg.vbsupport.ru/attachmen...9&d=1266444180

Charlie98902 02-17-2010 09:38 PM

valter does this mod utilize html markup too?

War.Frog 02-17-2010 10:23 PM

Quote:

Originally Posted by TimberFloorAu (Post 1984857)
Anyway we could include the data from this script in the thread ???

http://www.joeswebtools.com/wordpres...n-on-this-day/

So It says :

You also share your birthday with,:-

Bing Crosby
Edgar Allan Poe
Jacque Cousteau

etc ?

That's an awesome idea.

princeedward 02-18-2010 07:04 AM

hmmm...dunno but it doesn't work for me....i guess i set it right...or something wrong with my settings or installation...can anyone confirm this please if it's okay to your side?

;)

Valter 02-18-2010 08:29 AM

Important things to check:
- Target forum: this must be set in product options (menu select)
- Greeter: This field must be filled in product options (value = userid)
- Exclusion settings: users must pass these to be included in birthday thread (product options)
- User options: Users who has chosen not to show birthday info will be excluded

TCB 02-18-2010 11:10 AM

Many members seem to like it, so thanks :D

War.Frog 02-18-2010 11:16 AM

Quote:

Originally Posted by princeedward (Post 1985355)
hmmm...dunno but it doesn't work for me....i guess i set it right...or something wrong with my settings or installation...can anyone confirm this please if it's okay to your side?

;)

Mine works - I just had to set my clock to +1 to match server time. What DIDN'T work, however, was entering multiple Greeters. For whatever reason, it only selected one and posted it from the one member. Strangely, his UserID was not the first or last.

Is there a maximum number of Greeter(s) allowed?

x626xblack 02-18-2010 11:34 AM

Does it show "user names" or User 5 , User 8.....

meissenation 02-18-2010 11:56 AM

Thanks! Been waiting for this one. :)

Edit: Could you please describe how the hack gets the server time from the misc.php?do=vsa_servertz page? I've been trying to troubleshoot an issue with my Scheduled Tasks being hours off but no one on VBulletin.com can figure it out and it appears that the same issue on my server is affecting this mod too. It says the Server Time is currently 14:03 but yet when I log into the server from RDP (it's a windows box), it's 9:03am... All of my timezone settings that I can find are set to GMT -5 (Eastern).

Edit: Nevermind, found the UTC datetime in the php.ini file. Thank you though - this issue has been bugging me forever and your mod reminded me to investigate it further rather than just manually adjusting the scheduled tasks by 5 hours. :)

Valter 02-18-2010 12:02 PM

Quote:

Originally Posted by War.Frog (Post 1985521)
Is there a maximum number of Greeter(s) allowed?

Not limited by product.

Just list them separated by commas.

They are used randomly.

War.Frog 02-18-2010 12:25 PM

Quote:

Originally Posted by Valter (Post 1985543)
Not limited by product.

Just list them separated by commas.

They are used randomly.

Ah! Gotcha. Thank you for the clarification!

princeedward 02-18-2010 06:05 PM

well my mistake...i thought it's not workin...i miss the other option

Exclude inactive members (Active Members Time Cut-Off) -- Must Be Set To NO to greet all members active or not active...



you can view mine here with auto mp3 birthday music on it...

LIVE DEMO HERE!

this is really nice and very useful...thanks once again Valter

:p:up:

Adem GEN? 02-19-2010 09:40 PM

Hi,

I'm using local date

Note: I've set the correct date in this product AND Correct the thread creates date

The date of thread message: %19-%016-%2010 (real date 20-02-2010)

Regards

princeedward 02-19-2010 09:44 PM

yeah got it only one time workin...till then not anymore...dunno whats the real problem... tried to test it in some diff. way of setting of time...still no luck.... :(

Charlie98902 02-19-2010 09:55 PM

Does this use the html mark-up too on usernames?

Valter 02-20-2010 08:47 AM

Quote:

Originally Posted by Charlie98902 (Post 1986879)
Does this use the html mark-up too on usernames?

Yes, it does.

cory_booth 02-20-2010 12:46 PM

Thanks and I confirm this is working like it used to in 4.02...
I was curious however....
What steps would be needed to run this via cron?
My forum tends to be a bit quiet during the winter (boating site) and the forum may be unvisited a day or two....

BENSTER 02-21-2010 02:57 PM

Where did the auto mp3 music come from?

Quote:

Originally Posted by princeedward (Post 1985781)
well my mistake...i thought it's not workin...i miss the other option

Exclude inactive members (Active Members Time Cut-Off) -- Must Be Set To NO to greet all members active or not active...



you can view mine here with auto mp3 birthday music on it...

LIVE DEMO HERE!

this is really nice and very useful...thanks once again Valter

:p:up:


Charlie98902 02-26-2010 05:20 PM

Is there a way to change the message to make it more genuine rather than bland like it is?

COL NIL SATIS 02-27-2010 02:47 PM

Another cracking mod Valter!!! installed ..and rated

princeedward 02-27-2010 09:00 PM

Valter...can you please tell me if this something to do with my host server or anything...it really won't go automatic...but when i do UNINSTALLED > RE-INSTALL it work or submit the actual users birthday on the same forum on that day...or say perfect...then it will stop again...like i said only once...can you please help me here...

thanks and best regards

:(

Valter 02-27-2010 09:12 PM

Sorry, I was busy. I'll check it...

princeedward 02-27-2010 09:20 PM

Quote:

Originally Posted by Valter (Post 1993219)
Sorry, I was busy. I'll check it...

no need to say sorry man...i know it that you're quite busy this days...thanks anyway...

;)

Valter 02-28-2010 12:42 AM

v2.0.1 - Feb 28 2010.
-New: Proper Time is now automatically detected
-Fixed: Several compatibility issues

To upgrade:
-Import product XML, allow overwrite

princeedward 02-28-2010 04:49 AM

wooot...first....thanks a lot valter hope it fix my problem ;)

SteveV 02-28-2010 08:30 AM

Valter i just installed it and now i have a error msg and the VSA-Chatbox is all messed up.

Warning: mktime() expects parameter 1 to be long, string given in [path]/includes/class_bootstrap.php(399) : eval()'d code on line 23

After i disabled the Auto Birthday Greeter the chatbox was normal again.

I also noticed after the upgrade that it instantly created a new thread for somebody that had his birthday on 01-01 but it created a thread today.

KEKforce 02-28-2010 02:05 PM

Quote:

Originally Posted by SteveV (Post 1993516)
Valter i just installed it and now i have a error msg and the VSA-Chatbox is all messed up.

Warning: mktime() expects parameter 1 to be long, string given in [path]/includes/class_bootstrap.php(399) : eval()'d code on line 23

After i disabled the Auto Birthday Greeter the chatbox was normal again.

I also noticed after the upgrade that it instantly created a new thread for somebody that had his birthday on 01-01 but it created a thread today.

Same problem here!

Valter 02-28-2010 02:29 PM

Check your PHP, and following thread (and especially post 10):
http://www.vbulletin.com/forum/showt...-4-to-be-long-...

SteveV 02-28-2010 04:50 PM

I can not upgrade the PHP because the host needs to do that.
I checked the member settings and de birthday was set correct.

Is it possible to upload the previous version because that one worked perfect.


All times are GMT. The time now is 04:49 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.01456 seconds
  • Memory Usage 1,819KB
  • 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
  • (10)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
  • (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