vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Birthday Cake in postbits for all b-days for the week (https://vborg.vbsupport.ru/showthread.php?t=52897)

jjj0923 11-29-2003 10:12 AM

Quote:

Originally Posted by Elly
I changed the code to this

Code:


// Birthday cake in postbit
                for ($i = 0; $i <= 6; $i++) {
if ( substr($post[birthday],5) == vbdate('m-d',time()) ) {
  $bdaycake = " <img src='http://www.ultimaforce.net/asuka/kao/chirolp_cake.gif' border='0' align='absmiddle' alt='Its My Birhtday!!!'> ";
}
}
// END Birthday cake in postbit

and it seems to display the cake to all members on the day of their birthday ;)


why are you hardcoding the path to your images?

it's not necessary, considered poor programming and just one more thing you have to change if your ever change directory structures...

firas 12-10-2003 02:08 AM

i liked it..i'll give it a try

Coordinator Inc 12-22-2003 10:50 AM

I'm sorry, I can't understand what this script does.
Where does it places the images?
And what is 'postbits' ???
Thanks a lot.

SRozhon 01-23-2004 04:58 PM

Will this work with vb3 RC? I like it!

ashley53680 04-21-2004 01:51 AM

Is there anyway to get this to work on vb3 gold?

flup 04-21-2004 02:34 PM

Maybe a little tip;
If user is having his birthday show b-day cake in;

- Postbit
- Userlist
- Who's Online
- Usergroup page
- Friendslist in userCP

Just some tips :)

ashley53680 04-21-2004 02:43 PM

I guess I should clarify... in the vb2 instructions it says under admin/functions.php to make some changes. Well I don't have an admin/functions.php so what file would I edit?

eoc_Jason 05-05-2004 04:03 AM

I'm sure for vB3 you can just use conditionals to display an icon....

ashley53680 05-05-2004 04:05 AM

Hmmm, I have no idea how to do that!!!! haha

Baptizer 06-18-2004 03:23 PM

Any idea how to get this to work for vb3? My users have fallen in love with this feature!

eoc_Jason 06-18-2004 08:19 PM

*sigh*... if I have some spare time I'll work up a hack for vB3...

Do you want it just to show on their birthday, or all days for the week?

ashley53680 06-18-2004 09:23 PM

I would prefer just their bday! :) Thanks for taking the time!!! (hugs)

dan35 12-14-2005 08:19 PM

Please port it to 3.5! TIA!

Smiry Kin's 12-20-2005 02:22 AM

Hi jason please code this for vB 3.5.2!

Dollah 12-28-2005 06:03 PM

hey clicks install thanx

kellyandmike 04-09-2006 03:04 AM

Was this ever done?

apdcanari 08-23-2006 11:57 AM

Quote:

Originally Posted by Smiry Kin's
Hi jason please code this for vB 3.5.2!

yes, please :rolleyes:

pcoskat 11-04-2006 02:04 PM

Any chance of getting this for 3.6.x?


All times are GMT. The time now is 04:08 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.01067 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (2)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
  • (18)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