vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   is there a hack for the birthday on the main page? (https://vborg.vbsupport.ru/showthread.php?t=11911)

03-22-2001 05:26 AM

Quote:

Originally posted by Kier
Using this hack will add one extra query to the main forums page (as you can see).
This can be avoided by doing a daily cron job, and updating a birthday template. Was it your hack that puts max on line by updating a template? That's a wonderful technique, especially when it can save queries! I've used to post total weight loss for my members (userfields) 3k and growing :)

Of course the cron solution won't catch new users whos birthday is the day theu register, but it can be called from the member.php as well.

03-22-2001 06:14 AM

Sorry about that bug... it's easy to miss out a concatonator when you've been awake for 30 hours ;)

03-22-2001 10:10 AM

Quote:

Originally posted by Kier
Sorry about that bug... it's easy to miss out a concatonator when you've been awake for 30 hours ;)
Are you E.T ? :D

03-22-2001 03:53 PM

Can you rewrite the code plz with fixed bugs. including the non-vB one. there's a few missed out semi-colons (;) :P i have HARDLY any knowledge of php and i asked evrywhere in IRC to find what was wrong. Someone is Quakenet (#barrysworld) helped and saw it :) the VB version looks good and happy tho :)

03-22-2001 04:35 PM

Quote:

Originally posted by freddie
Change
Code:

eval ("\$todaybirthdays = \"".gettemplate("calendar_birthday")."\";");
to
Code:

eval ("\$todaybirthdays .= \"".gettemplate("calendar_showbirthdays")."\";");

That doesn't fix it completely. If you check my board today. I have 2 birthdays. Both are listed, BUT one of them shouldn't have the age along with it. It seems it just takes the age of the other birthday and attaches it to the one that should not have any age indication.

Listed on Calendar as :

KORYNTHYAN (23)
jokhis


Listed on front page as :

Happy Birthday to: KORYNTHYAN (23) jokhis (23)

03-22-2001 04:47 PM

i kno i have doen it me not sure if the non-vB works tho. is it right to say No Database Selected?

03-22-2001 04:54 PM

I've updated both bits of code on the first page of this thread with the relevant fixes for the age and repeat problems.

A database-not-selected message would mean that either the script can't find config.php, or that config.php has an invalid variable name for the database.

03-22-2001 05:00 PM

Quote:

Originally posted by Kier
I've updated both bits of code on the first page of this thread with the relevant fixes for the age and repeat problems.

A database-not-selected message would mean that either the script can't find config.php, or that config.php has an invalid variable name for the database.

thx!

03-22-2001 05:12 PM

yes I had noticed someone forgot to unset the $age but I new someone would quickly see that and fix it.

03-22-2001 05:48 PM

i really want this fixed for me plz. can u icq me on 79028021 by any chance? (not too clever just started using php. all i kno is include and date things )


All times are GMT. The time now is 04:02 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.01206 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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