vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Cyb - Auto Birthday Greeter (https://vborg.vbsupport.ru/showthread.php?t=177931)

Valter 05-02-2008 10:00 PM

Cyb - Auto Birthday Greeter
 
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 choosen 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.

Note:
-This executes 1 very simple query on forumhome.

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

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

Versions:
v1.0 - Aug 26. 2007.
-Initial release
v1.1 - Aug 27. 2007.
-New: Option to exclude members with post count lower than X
-Fixed bug where several threads are posted for the same birthday
-Shortcut to "Age" phrase added to the list on settings page
v1.2 - Aug 28. 2007.
-Date format follows your forum acp settings
-New: Option to exclude members joined in last X days
-Another fix for duplicate birthday threads on some forums
v1.3 - Aug 31. 2007.
-Option to synchronize hack with forum time to avoid situations where birthday thread is created too early or too late
v1.4 - May 03. 2008.
-Compatible with vBulletin 3.7
-Minor bugs fixed

Mark as INSTALLED to get support and updates.

mktrilogy 05-03-2008 11:54 AM

installed, will feedback later

-=Leb=- 05-03-2008 04:35 PM

thank you for your excellent haxs :)

goddess_dix 05-03-2008 04:44 PM

Thank you for this hack-it works beautifully for us.

I do have a feature request for a future version-the ability to set so each birthday member can get their own thread. That would work better for us, where we traditionally made a new thread for each person...

Regardless, thanks for this (and all) your mods. I use several of yours. :)

Stryker412 05-03-2008 07:38 PM

Is there a way you can set it so if you have a few people who are auto generated as the author do not author their own birthday thread. ;)

powerful_rogue 05-03-2008 07:59 PM

Quote:

Originally Posted by goddess_dix (Post 1507060)
Thank you for this hack-it works beautifully for us.

I do have a feature request for a future version-the ability to set so each birthday member can get their own thread. That would work better for us, where we traditionally made a new thread for each person...

Regardless, thanks for this (and all) your mods. I use several of yours. :)

This would be a fantastic way of doing it. Would make it appear that little bit more personal.

ZeroHour 05-04-2008 02:53 AM

Quote:

Originally Posted by goddess_dix (Post 1507060)
Thank you for this hack-it works beautifully for us.

I do have a feature request for a future version-the ability to set so each birthday member can get their own thread. That would work better for us, where we traditionally made a new thread for each person...

Regardless, thanks for this (and all) your mods. I use several of yours. :)

+1 for that

Mum 05-09-2008 04:47 AM

How can i find out what my forumtime is? I have it set to my time zone of course, and want to see what time it would show the thread - it may not work for us as we're +12 - so might post at like lunch time, by which time someone would have already manually done it.

Mum 05-14-2008 05:51 PM

Anyone?

goddess_dix 05-14-2008 06:45 PM

mum, i would just try it and see what i got. you can always edit an poorly timed post or two, or you could set it to test by posting in a private forum first and checking the time.

KanmaiseR 05-14-2008 08:37 PM

thanks, installed.. :)

MovedGoalPosts 05-18-2008 10:17 PM

Great mod thanks :up:

One small issue with the timing of the post creation and Daylight Saving Time, in that I'm finding the new thread post is an hour late.

When I check the forum time, it is correctly displayed, i.e it's currently showing correctly as 00:15 which is British Summer Time. Indeed the time display on the bottom of the server is showing as GMT +1, i.e. Daylight Saving Time.

It seems however, that despite the forum time being correct, the thread is being posted on GMT rather than BST :confused:

goddess_dix 05-20-2008 05:24 PM

Quote:

Originally Posted by MovedGoalPosts (Post 1524147)
It seems however, that despite the forum time being correct, the thread is being posted on GMT rather than BST :confused:

go into your vb options for this mod and adjust the time, then, as there is a setting for this.

MovedGoalPosts 05-20-2008 08:22 PM

I have adjusted the time, currently set to default, i.e. the time of the forum which would be correct.

It's weird. One thread was created at forum time of 01:05. The next thread got created at 00:38 :confused:

sdavis2702 05-20-2008 08:41 PM

Thanks !

goddess_dix 05-22-2008 05:29 PM

Quote:

Originally Posted by MovedGoalPosts (Post 1526078)
I have adjusted the time, currently set to default, i.e. the time of the forum which would be correct.

It's weird. One thread was created at forum time of 01:05. The next thread got created at 00:38 :confused:

the only other thing i could think to check is when your cron jobs are set to run, and how many other ones are scheduled to go at the same time as this one...is it possible that it's being delayed by email batches or something that other scheduled jobs are doing? for me, a difference of a few minutes here or there either way is perfectly acceptable, but if it concerns you, that's where i would look.

goddess_dix 05-22-2008 05:36 PM

Quote:

Originally Posted by powerful_rogue (Post 1507238)
This would be a fantastic way of doing it. Would make it appear that little bit more personal.

well, the thing i noticed is that i have my active user cutoff date set to a year and it can make it feel a little weird. (with my forum, people sometimes come back after long periods of absence, just the nature of it.)

so sometimes, we'll have a birthday thread for more than one user, one is very active and one is not. and it just feels off to post a personal message in the thread to one but not the other birthday person. but if the inactive user hasn't been there for 6 months, 9 months, or seldom posts, they simply won't get the same responses as someone who is active. that's certainly reasonable, but if they are mentioned IN the thread, it does tend to stand out if they do come around.

that is part of the reason i installed this mod to begin with. with people creating the birthday threads, it was usually only for the more active users, but some folks got missed even if they were around. i thought it might help allieviate hurt feelings, and i did notice some folks really seem to like the threads a lot and appreciate theirs.

Valter 05-22-2008 06:10 PM

No cron jobs here.

Thread will be created first time when someone loads forumhome after midnight. So it can be 00:00, or 01:00, or any other time during the day when forums are active.

goddess_dix 05-22-2008 07:09 PM

ohhhh. so it's most likely a function of visitors then. gotcha. missed that and hadn't looked at the code. to me, doesn't matter much the exact time so i never looked for it.

massizero 05-23-2008 11:36 AM

Hi,
installed your mod and enabled, but no thread is created even if there have been birthdays in the past 2 days... What could it be the reason?

rapidphim 05-25-2008 04:44 AM

what can I do to recreate the bd thread for any member that had bd shown before I installed this hack?

goddess_dix 05-25-2008 11:07 PM

Quote:

Originally Posted by massizero (Post 1528863)
Hi,
installed your mod and enabled, but no thread is created even if there have been birthdays in the past 2 days... What could it be the reason?

possibly they are past the active user cutoff date? check your mod settings in the admincp.

Quote:

Originally Posted by rapidphim (Post 1530658)
what can I do to recreate the bd thread for any member that had bd shown before I installed this hack?

manually do it? ;)

massizero 05-26-2008 01:43 PM

Quote:

Originally Posted by goddess_dix (Post 1531368)
possibly they are past the active user cutoff date? check your mod settings in the admincp.

no.. I've disabled the active members option.. so evary birthday should be listed..
I'm noticing that the cyb_birthdaythread template doesn't exist. SHouldn't it automatically created from the plugin? Why do you think it is not created?
Any suggestion how can I solve this problem? may be creating the template manually?

thanks

carrlos 05-27-2008 04:35 AM

My server time is 3 hours behind forum time. So I set the time to +3. The thread was created after midnight forum time (the 27th, which was great) but in the thread it said that the birthday was one day earlier, the 26th (the date of the server). The user's birthday is actually the 27th. Does this mean I'm forced to use server time/date in order to avoid all birthday threads posting a date that is one day earlier??

Charlie98902 05-28-2008 12:12 PM

I have a small issue and it may be because of one of the other mods used? I use HTML Markup on all my usergroups except, banned, awaiting & guests. My reg users use this :
Code:

<span style="font-weight: bold;"><span style="color: Black;">
Code:

</span>
. It shows up as the example but the whole thing is a link and the words username here is being shown on the post. Once I add the " " around the word black all is well but can get tiring to edit in time.

goddess_dix 05-28-2008 05:06 PM

Quote:

Originally Posted by Charlie98902 (Post 1534000)
I have a small issue and it may be because of one of the other mods used? I use HTML Markup on all my usergroups except, banned, awaiting & guests. My reg users use this :
Code:

<span style="font-weight: bold;"><span style="color: Black;">
Code:

</span>
. It shows up as the example but the whole thing is a link and the words username here is being shown on the post. Once I add the " " around the word black all is well but can get tiring to edit in time.

charlie-first of all, you'll need two closing span tags for your markup instead of one. i assume you do have it set up that way for your markup?

but rather than do this in two spans, i'd do one span, set it as a style, and add it to your css. so something like this -

Code:

<span class="reguser"></span>
and in the additional css for your style in the admincp -

Quote:

.reguser {color:#000000; font-weight:bold;}
perhaps that will help?

Charlie98902 05-28-2008 07:46 PM

I'll look into this in a bit. Thanks.

Brandon Sheley 05-28-2008 08:00 PM

thanks, I might add this to my forum :)

massizero 05-28-2008 08:48 PM

goddess_dix can you please see my post 23?
thanks

goddess_dix 05-29-2008 12:41 AM

Quote:

Originally Posted by massizero (Post 1534449)
goddess_dix can you please see my post 23?
thanks

sorry...don't have anything else to offer if you're certian you're config is correct in there. i don't know what templates this installs; i didn't see the one you mentioned in my setup, but didn't look extensively, either. kinda swamped at the momemnt...mine's working just fine. if it were me, i might try uninstalling and reinstalling, but i have no idea if it will help you or not...

massizero 05-30-2008 09:37 PM

question... in the usergroup management, the "Viewable on Show Groups" MUST be set on "yes" in order for this hack to work? Or it doesn't matter either it is yes or no?

Valter 05-31-2008 06:15 AM

It doesn't matter how you set that option.

massizero 06-01-2008 12:59 AM

Quote:

Originally Posted by Cybernetec (Post 1536831)
It doesn't matter how you set that option.

k thanks

Sakai Ray 06-01-2008 06:02 AM

Thanks ^^

Battle_Ring 06-08-2008 02:28 PM

dont work for me, o nthe bottom it shows someone is having a birthday today but it didnt make a thread anywhere

Silvio 06-09-2008 07:13 AM

Ciao Cyb,

this hack works perfectly on 371 ty.

just the date have an issue.

unfortunatelly with this mod I have an issue with languages setting.

Note : % solution on date format was suggested by you for another hack (stats)
i have inserted in time/date format the trailing % (eg. %d-%....) and for that specific hack is the only way to let it work properly but some others your hacks wont interpreter the correct format.

any hint?

regards

ciao

cerulean 06-09-2008 04:21 PM

Quote:

Originally Posted by Battle_Ring (Post 1544120)
dont work for me, o nthe bottom it shows someone is having a birthday today but it didnt make a thread anywhere


I am having the same issue, any thoughts/suggestions.

Valter 06-09-2008 08:03 PM

Be noted that:
- only members that allow their date of birth to be displayed will be listed
- inactive members are excluded by default

Check hack settings...

Sofia 06-09-2008 08:27 PM

Quote:

Originally Posted by Silvio (Post 1544780)
Ciao Cyb,

this hack works perfectly on 371 ty.

just the date have an issue.

unfortunatelly with this mod I have an issue with languages setting.

Note : % solution on date format was suggested by you for another hack (stats)
i have inserted in time/date format the trailing % (eg. %d-%....) and for that specific hack is the only way to let it work properly but some others your hacks wont interpreter the correct format.

any hint?

regards

ciao

Just chang in the XML :

HTML Code:

$cabg_message = construct_phrase($cabg_message_sp,$cybabgreeter_totalusers,date($vbulletin->options['dateformat']),$cabg_birthdays);
Replace by :

HTML Code:

$cabg_message = construct_phrase($cabg_message_sp,$cybabgreeter_totalusers,vbdate($vbulletin->options['dateformat']),$cabg_birthdays);

toddos 06-09-2008 08:35 PM

one question: how can i make it so, that it creates a new post in an exsting thread and not a new thread ?


All times are GMT. The time now is 03:43 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.01351 seconds
  • Memory Usage 1,831KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (14)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