Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Details »»

Version: , by jojo85 (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-20-2001 Last Update: Never Installs: 0
 
No support by the author.

Ok i want on the main page of the forums juste below :

Welcome to our new......

Happy Birthday to "thename"

where when i click on "thename" i go to a page where i can send him a private message...

Can someone have that?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-21-2001, 11:48 AM
Guest
 
Posts: n/a
Default

... and if you want a version for a non-vB page, use this:
Code:
<?php
require ("./forums/admin/config.php");
$db = mysql_connect('$servername','dbusername','$dbpassword');
mysql_select_db('$dbname',$db);

$today = date("m-d",time());
$birthdays = mysql_query("SELECT * FROM user WHERE birthday LIKE('%-$today')",$db) or die (mysql_error());
while ($birthday = mysql_fetch_array($birthdays)) {
	$bd_user = $birthday[username];
	$bd_userid = $birthday[username];
	$datebits = explode("-", $birthday[birthday]);
	$bdage = date("Y") - $datebits[0];
	if ($bdage > 0) $age = "($bdage)";
	else $age = "";
	echo "<b><font size=1><a href=\"./forums/member.php?action=getinfo&userid=$bd_userid\">$bd_user's birthday</a> $age</font></b><br>";
	}
?>
... remembering to change the path to the forums directory (shown in red).
Reply With Quote
  #13  
Old 03-21-2001, 11:55 AM
Guest
 
Posts: n/a
Default

Thx you very much Kier!
Reply With Quote
  #14  
Old 03-21-2001, 11:57 AM
Guest
 
Posts: n/a
Default

Kier.. Im gonna learn to play the fiddle so I can write you a song Thanks again!
Reply With Quote
  #15  
Old 03-21-2001, 12:01 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Bane
Kier.. Im gonna learn to play the fiddle so I can write you a song Thanks again!
hehe
Reply With Quote
  #16  
Old 03-21-2001, 02:08 PM
Guest
 
Posts: n/a
Default

Hmmm...too damn fast...I haven't even looked at the code yet..hehehehe
Reply With Quote
  #17  
Old 03-21-2001, 02:31 PM
Guest
 
Posts: n/a
Default

Damn. I had a meeting and I so wanted to be first...

Isn't Kier two-headed?
Reply With Quote
  #18  
Old 03-21-2001, 02:49 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by PeF
Damn. I had a meeting and I so wanted to be first...

Isn't Kier two-headed?
lol
too late
Reply With Quote
  #19  
Old 03-21-2001, 05:14 PM
Guest
 
Posts: n/a
Default

I found a bug

It only lists one birthday -- I have 8 birthdays for today, and it is only listing the last one of the list from the calendar, not all 8

I have verified this on my smaller board too where there are only 5 birthdays -- it is only one person (the last on the list on the calendar.php)
Reply With Quote
  #20  
Old 03-21-2001, 05:54 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Me2Be
I found a bug

It only lists one birthday -- I have 8 birthdays for today, and it is only listing the last one of the list from the calendar, not all 8

I have verified this on my smaller board too where there are only 5 birthdays -- it is only one person (the last on the list on the calendar.php)
Hum.........will ask kier ok?
Reply With Quote
  #21  
Old 03-21-2001, 06:39 PM
Guest
 
Posts: n/a
Default

That shouldn't be too bad. You just need a variable in there that will concatenate the formatted birthdays as it finds them. What if you change the $todaysbirthdays variable to $currentbirthday or something and then after the "eval" line, just make:

$todaysbirthdays .= "$currentbirthday, "

...or something like that? You'd just have to have to figure out the first or last time you went through the list and adjust so you don't have a comma in there at the beginning or the end.

Quote:
Originally posted by Me2Be
I found a bug

It only lists one birthday -- I have 8 birthdays for today, and it is only listing the last one of the list from the calendar, not all 8

I have verified this on my smaller board too where there are only 5 birthdays -- it is only one person (the last on the list on the calendar.php)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:11 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.06726 seconds
  • Memory Usage 2,273KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete