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)

toddos 06-14-2008 06:35 PM

pls help

Keyser S?ze 06-20-2008 06:54 AM

just throwing my 2 cents in, this is nice and all but i think a better way is when or if the user comes on the forum on their birthday they get a oiouo, much like the PM popip, that says Happy Birthday <username>!

and they only get it once each year

Mum 06-23-2008 04:51 AM

Keyser just do that with notices.

Cyb - the message that is posted on my site is this (i havent' changed it, it's the default) i'm not sure how to fix the colour thing

Code:

1 member is celebrating their birthday on 22nd June 2008:
               
                                        -[color= black]Steve[/color] (born in 1970, Age: 38)
               
               
                Happy Birthday!


cserna 07-01-2008 05:26 AM

Thanks! Downloaded...

Was wondering if there is something like this that exist but for new members? For example start a new thread that mentions all the new members that joined the day before and welcoming them to the forum.

I will look at this code and see if I can put together myself but would like to save some time if it already exist somewhere.

Thanks again!

Makc666 07-14-2008 09:49 AM

1.
This phrase was change in 1.4.
Code:

                <phrase name="cybabgreeter_message_user"><![CDATA[{1} member is celebrating their birthday on {2}:
                {3}
               
               
                Happy Birthday!]]></phrase>

But I think that it must sounds like:
{1} member is celebrating his birthday on {2}:
and not
{1} member is celebrating their birthday on {2}:

2.

ALso it will be nice if you comment this change:

From:
Code:

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

$cabg_message = construct_phrase($cabg_message_sp,$cybabgreeter_totalusers,vbdate($vbulletin->options['dateformat']),$cabg_birthdays);
As there are some other places in product's code where date() is used.

Thanks

cmiller1014 07-18-2008 05:47 PM

Quote:

Originally Posted by Mum (Post 1556551)
Keyser just do that with notices.

Cyb - the message that is posted on my site is this (i havent' changed it, it's the default) i'm not sure how to fix the colour thing

Code:

1 member is celebrating their birthday on 22nd June 2008:
               
                                        -[color= black]Steve[/color] (born in 1970, Age: 38)
               
               
                Happy Birthday!


Same issue... any idea how to fix it?

Valter 07-18-2008 08:26 PM

Remove white-spaces from CSS parameters in usergroup options.

BucWiLd 07-21-2008 11:55 AM

nice, thank you

AuroraStorm 07-24-2008 10:16 AM

How can I set this up for individual threads for people who celebrate their birthdays on the same day?

Oh and by the way, those who don't see threads, go into your Admincp - VBOptions - Cyb Auto Birthday greeter. right here "Greeter(s) (comma separated UserID list)", type in the userids listed in your Usergroup Manager list... (i.e., regular members, Admins, Moderators, etc to look like 6,7,10). It took me a moment to figure that one out...

PHILLYFAN 07-24-2008 10:39 AM

thanks!

Valter 07-24-2008 10:48 AM

Sure you must set who will post threads.

ProAzn 08-01-2008 02:02 PM

Installed but doesn't work. No birthday thread created even though birthday occurred for an active member. Settings for hack same as screen shot listed. Any ideas? I see others have same problem...

ProAzn 08-08-2008 07:43 PM

I am using 3.7.2. Appears people using latest version have problems with this mod. Anyone know why??

ProAzn 08-09-2008 03:21 AM

Ok here's what the birthday greeter panel looks like. Now anyone tell me why it doesnt work?? Using 3.7.2 vb. version. The active users time cut-off is set at 0, the default. So all members are active. A member had a bday yesterday and it didn't work! argh. Also hrs set at -2 to catch west coast birthdays. Current time zone for server is CT.

kkeezer 08-09-2008 03:55 AM

I am also having a issue with it no longer working for my site as well, it uses to work 100% of the time and now nothing... :confused: I am on 3.7.0. and CYB HB addon ver 1.4

Please help to get this add-on working again. ;)

I added two images as well so you can see what I see when looking at the addon.

TIA,
Kyle

kkeezer 08-10-2008 01:47 AM

Bump for reply... :)

da_judge 08-10-2008 06:30 PM

Quote:

Originally Posted by Mum (Post 1556551)
Keyser just do that with notices.

Cyb - the message that is posted on my site is this (i havent' changed it, it's the default) i'm not sure how to fix the colour thing

Code:

1 member is celebrating their birthday on 22nd June 2008:
               
                                        -[color= black]Steve[/color] (born in 1970, Age: 38)
               
               
                Happy Birthday!



Sorted it

Original
Code:

<span style="color:#c0c4c9 ;"><span style="font-weight: bold;"><span style="font-style: italic;">
Edited
Code:

<span style="color:#c0c4c9;"><span style="font-weight:bold;"><span style="font-style:italic;">
Removed all spaces

Job Done cheers

smirkley 08-10-2008 07:56 PM

I have noticed the birthday topics not being created also, but I also noticed that the birthday block on the home page also no longer shows up since my last upgrade to 3.7.2 PL1.

I havent yet figured out if this is because of the VB update, or if the mod isnt working with the update, and disabled the VB function on the home page somehow.

edit - I disable the mod, and the birthday notice on the homepage still doesnt show, so I 'suspect' the new vb patch update isnt flagging a member as having a birthday. (I also have all members birthdays showing, with no cutoff for activity time, so the ALL should show)

smirkley 08-10-2008 10:57 PM

Thinking it was a VB issue with the new patch version, I submitted a ticket, but they are unable to reproduce this on a stock board.

I will 'try' to figure out where it fails, but no guarantees here.

smirkley 08-10-2008 11:58 PM

OK, this appears to be a VB3.7.2PL1 issue, after working with VB on a support ticket.

Unproven yet as far as this mod goes, but I suspect it will fix the issue described as far as the mod not making a birthday post.

Apparently the setting to display active member birthday only, in ACP, works exactly backwards to the text in the checkbox.

To make it work, UNCHECK the "Show birthdays for active users only" to show birthdays for active users only.

I have submitted a bug report at VB dot com, so I suspect this will be fixed soon.

Valter 08-11-2008 10:18 AM

Thanks for the info, I'll wait for their answer...

smirkley 08-11-2008 02:56 PM

<a href="http://www.vbulletin.com/forum/project.php?issueid=26110" target="_blank">http://www.vbulletin.com/forum/proje...?issueid=26110</a>

The bug report is marked as 'fixed', so it is safe to assume that the bug was part of the VB core code.

Being new to VB, I didnt know the info was cached, which explains to me why the bug was so hard to see.

The VB code fix will be included in the next update.

But if you checkbox the OPPOSITE of what you expect as described in my prior post here, as in my current VB install version, the Birthday Greeter has been tested as operating properly in my install of this modification.

ProAzn 08-11-2008 07:16 PM

Quote:

Originally Posted by smirkley (Post 1596283)
http://www.vbulletin.com/forum/proje...?issueid=26110

The bug report is marked as 'fixed', so it is safe to assume that the bug was part of the VB core code.

Being new to VB, I didnt know the info was cached, which explains to me why the bug was so hard to see.

The VB code fix will be included in the next update.

But if you checkbox the OPPOSITE of what you expect as described in my prior post here, as in my current VB install version, the Birthday Greeter has been tested as operating properly in my install of this modification.


Where is this field? I checked, there is no line in the mod panel. I posted a screen shot earlier so you can see it. Please direct me which line you're referring to??

Thx.

ProAzn 08-11-2008 07:18 PM

smirkley, here's my screen shot. Which field you are referring to?? Thx.

smirkley 08-11-2008 09:01 PM

It isnt on that page, it is in your settings for ...

Vbulletin Options > Forum Home Page Options

Scroll to the bottom, and UNCHECK "Show birthdays for active users only"

The bug in the VB 3.7.2 is that the checkbox works OPPOSITE what is described to do. It will be fixed in the next VB update.

And not having gone thru the modification code for the Birthday Greeter, I cant explain why it doesnt work otherwise, only that after discovering the bug with VB, and doing the above, the Birthday Greeter works once again on my board.

SSJB_7 08-12-2008 01:21 AM

thanks

ProAzn 08-12-2008 11:16 AM

Quote:

Originally Posted by smirkley (Post 1596497)
It isnt on that page, it is in your settings for ...

Vbulletin Options > Forum Home Page Options

Scroll to the bottom, and UNCHECK "Show birthdays for active users only"

The bug in the VB 3.7.2 is that the checkbox works OPPOSITE what is described to do. It will be fixed in the next VB update.



And not having gone thru the modification code for the Birthday Greeter, I cant explain why it doesnt work otherwise, only that after discovering the bug with VB, and doing the above, the Birthday Greeter works once again on my board.


Ok, I did the above and it still doesn't work. Any ideas??

I made an account have a birthday for today done yesterday in vb and nothing showed today... sigh. Where is the coder anyway.... the mod can't be that buggy or else it needs major reworking. :(

smirkley 08-12-2008 03:01 PM

I would not blame the code for this mod just yet.

Just keep in mind, the active birthday member list is cached data, and until you change a birthday for example in your account, the cache is not updated.

My birthday greeter stopped working at the same time everyone elses did too, and all I know is that I upgraded my VB to the latest patch level. After doing some tweaking around and experimenting, I discovered a flaw in the birthday code in vb core script, and has been verified and fixed and will be released in the next vb update.

End result, now my birthday greeter works again.

Albiet through experimentation and workaround pending the next vb update.

If the birthday greeter fails AFTER the next vb update?... I would expect then, that the issue may be in the hack code.

infernow 08-13-2008 04:28 AM

Cheers bud
Installed

kkeezer 08-14-2008 02:08 AM

Thank you for the update, I have done the switch as you advised, I will wait and see if that fixes the issue.

Thanks,
Kyle

ShawneyJ 08-14-2008 05:22 AM

ah good im not the only one with this thing not working.

smirkley 08-14-2008 10:50 AM

Well I just tested this again and it worked for me using the above method to make it work as I posted.

I cant wait for the next VB update, so this issue can be resolved.

I feel confident that it will work after the fix is published, like it should.

ProAzn 08-14-2008 11:50 AM

Quote:

Originally Posted by smirkley (Post 1598367)
Well I just tested this again and it worked for me using the above method to make it work as I posted.

I cant wait for the next VB update, so this issue can be resolved.

I feel confident that it will work after the fix is published, like it should.

I did your change and set a birthday to occur 2 days after the change and still nothing. I don't think cached data (in this case) had any effect in it NOT working...

:(

ProAzn 08-17-2008 03:49 AM

The birthday mod finally worked but problem is the time of thread. I set it to -2 as I am central time and want to catch all west coast birthdays. It supposed to place a thread at 2 am but instead posts it at 12.48pm the afternoon of the birthday.

Anyone explain why?? Argh!

nightbloom 08-18-2008 05:42 AM

I have a unique issue. Because we are picky about silly details, we use classes to color user group names. I didnt like that when you mouse over a name, it uses the default hover link color to underline instead of the username color. Adding classes in the style fixed that.

So, the problem is that when the auto birthday thread is made for a user group that isnt using the default color, it posts color="moderator" instead of the actual color.

How could we fix this and keep the CSS classes for our usergroups?

DragonMasterNYC 08-18-2008 11:11 PM

I ran into the same problem today when I installed it it says

PHP Code:

[color =green]username[/color

Has anyone figured out a way to fix this.

Valter 08-19-2008 08:53 AM

Remove spaces from usergroup tags.

DragonMasterNYC 08-19-2008 08:29 PM

Quote:

Originally Posted by Cybernetec (Post 1602164)
Remove spaces from usergroup tags.

That's how it shows up in the post.

This is my code in usergroups <span style="color: green;font-weight: bold;"> (just so happened to be someones birthday when I tested it.)

So why would It show like that.

Valter 08-19-2008 08:49 PM

<span style="color: green;font-weight: bold;">
should be:
<span style="color:green;font-weight:bold;">

Just remove extra spaces.

DragonMasterNYC 08-19-2008 09:46 PM

Quote:

Originally Posted by Cybernetec (Post 1602598)
<span style="color: green;font-weight: bold;">
should be:
<span style="color:green;font-weight:bold;">

Just remove extra spaces.

well Ill see when midnight hits on the forums I took every space out I could find in all usergroups.


All times are GMT. The time now is 02:46 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.01383 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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