Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 8th December 2009, 11:18
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
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; 8th December 2009 at 11:33.
Reply With Quote
The Following User Says Thank You to Edgein For This Useful Post:
Phogo (10th January 2010)
  #2  
Old 14th December 2009, 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 Yuna Scatari Edition (YSE) 13 29th January 2010 00:57
visible torrents kowalsky Yuna Scatari Edition (YSE) 2 27th January 2010 21:30
Index Naureenc Yuna Scatari Edition (YSE) 3 12th January 2010 01:28
Help me index scream21m Yuna Scatari Edition (YSE) 1 4th May 2009 13:12
Index kp380lv Yuna Scatari Edition (YSE) 4 16th July 2008 11:47



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