Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 20th August 2011, 11:41
open open is offline
Senior Member
 
Join Date: Nov 2010
P2P
Posts: 22
Default birthday block
Hello I research a birthday for a block version 5.6TS
thank you I wait for a response from you.:sorry:
Reply With Quote
  #2  
Old 21st August 2011, 09:23
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default nightcrawler
have you tried this then added the plugin yourself ive not tested it yet as ben busy?

PHP Code:
<?php
require_once('global.php');

gzip();
dbconn(true);
maxsysop();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Happy Birthday</title>

</head>
<body>
<?php
if($CURUSER){
    
    
define ('SKIP_CACHE_MESSAGE'true);
    require_once 
INC_PATH '/functions_cache2.php';
    
$no_cache false;
    if (!
$showbday cache_check2 ('tsf_bday'))
    {
      
$no_cache true;
    }

    if (
$no_cache)
    {
      
$todaybday date ('j-n');
      
$query sql_query ('' 'SELECT u.id,u.username,u.birthday,g.namestyle FROM users u LEFT JOIN usergroups g ON (u.usergroup=g.gid) WHERE u.birthday REGEXP \'^' $todaybday '-([1-9][0-9][0-9][0-9])\' AND u.enabled = \'yes\' AND u.status=\'confirmed\' AND u.usergroup != ' UC_BANNED);
      
$bdaycount mysql_num_rows ($query);
      
      if (
$bdaycount)
      {
      
        while (
$bday mysql_fetch_assoc ($query))
        {
          
$userbday explode ('-'$bday['birthday']);
          
$yearsold date ('Y') - $userbday[2];
          
$showbday .= ' <a href="' tsf_seo_clean_text ($bday['username'], 'u'$bday['id'], '''ts') . '" target="_top">' get_user_color ($bday['username'], $bday['namestyle']) . '</a> (<b>' $yearsold '</b>) ';
        }
      }else{
      
$showbday .= '<center><b> No birthdays today!</b></center>';
      }
      
cache_save2 ('tsf_bday'$showbday'</td></tr>');
    }

    if ((
$cachesystem != 'yes' OR $no_cache))
    {
      
$showbday .= '</td></tr>';
    }
   
?>
   <?php echo $showbday?>
</body>
</html>
<?php
}
?>
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
The Following User Says Thank You to x360zone For This Useful Post:
peiratikos (14th November 2011)
Reply

Tags
birthday , block


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 +2. The time now is 01:15. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.