Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 08-12-09, 11:18
Edgein's Avatar
Edgein Edgein is offline
Staff
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile [FTS 1.1] birthdays visible on the index.php
place it where you want to see

PHP Code:
///////////////// BIRTHDAY MOD /////////////////////
$b 0;
//print("<br>");
print "<table width=80% align=center class=bottom border=0 cellspacing=0 cellpadding=0><tr><td class=embedded><div align=left>";
print 
"<img border=0 src=pic/birthday.gif>";
print 
"</td><td class=embedded><div align=center>";
print 
"<font size=5 color=33CCFF><i><b>Today's Birthdays</b></i></font>";
print 
"</td><td class=embedded><div align=right>";
print 
"<img border=0 src=pic/birthday.gif>";
print 
"</td></tr></table>";

$currentdate date("Y-m-d"time() + $CURUSER['tzoffset'] * 60);
list(
$year1$month1$day1) = split('-'$currentdate);
$res2 mysql_query("SELECT birthday, id, username FROM users WHERE  birthday != '0000-00-00'") or sqlerr();
while (
$arr2 mysql_fetch_assoc($res2))
{
$birthday date($arr2["birthday"]);
$username $arr2["username"];
$id $arr2["id"];
list(
$year2$month2$day2) = split('-'$birthday);
if ((
$month1 == $month2) && ($day1 == $day2))
{
if (
$b 0)
print(
", ");
print(
"<center><a href=userdetails.php?id=$id><font size=2 color=FF7AE4><b>$username</b></a></center>");
$b $b 1;
}
}
if (
$b == 0)
print 
"<font size=5 color=33CCFF><i><b>There are today no Birthdays.</b></i></font>";
print(
"</font>");
///////////////// BIRTHDAY MOD ///////////////////// 
place the attachment into the pic folder

Click the image to open in full size.
Attached Images
 

Last edited by Edgein; 08-12-09 at 11:33.
Reply With Quote
The Following User Says Thank You to Edgein For This Useful Post:
Phogo (10-01-10)
  #2  
Old 14-12-09, 19:08
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
Very nice, thanks Edgein
Reply With Quote
Reply

Tags
11 , birthdays , fts , indexphp , visible

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
visible torrents kowalsky YSE 13 29-01-10 00:57
visible torrents kowalsky YSE 2 27-01-10 21:30
Index Naureenc YSE 3 12-01-10 01:28
Help me index scream21m YSE 1 04-05-09 13:12
Index kp380lv YSE 4 16-07-08 11:47



All times are GMT +2. The time now is 00:49. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.