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 month in users post (https://vborg.vbsupport.ru/showthread.php?t=36267)

Itworx4me 03-18-2002 09:01 PM

I like this hack. Is there anyway to get the Day along with the month to show up there too?

cditty 03-18-2002 09:24 PM

Sure. Just change this....
PHP Code:

date('M' 

with this
PHP Code:

date('M-d' 

If you would rather show the full month name instead of the abbr version, then just change the M to a F. Be sure to have the M & F in caps.

Chris

Itworx4me 03-18-2002 10:00 PM

Thank you CDitty
It worked like a charm

Admin 03-19-2002 05:13 AM

cditty, what's the problem with that zodiac code? You need to use the numeric form of the month (1), not Jan. :)

cditty 03-19-2002 11:46 PM

I was thinking/hoping that code would be a quick down & dirty cut & paste job. But thinking about it, anything I might be able to come up with won't have the actual zodiac signs on it. ie...Capricorn is in Dec and Jan.

Chris

Admin 03-20-2002 04:48 AM

Why? That function you showed us takes care of that, all you need to do is give it the month and day, it'll return you the sign.

cditty 03-21-2002 10:50 AM

With many thanks to FireFly, here is a version for zodiac signs.

Chris

Eniyi 04-18-2002 02:20 PM

For the zodiac signs version, when I put "$post['sign']" in the postbit, I'm getting this error.

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in functions.php(304) : eval()'d code on line 14

Admin 04-18-2002 02:31 PM

$post[sign], without quoting the index name.

Eniyi 04-18-2002 03:37 PM

Thanks. It works now, but in the instructions, it says
"Place $post['sign'] in someplace in the postbit template where you want it to appear."


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