Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 5th November 2008, 14:16
FAZ FAZ is offline
Member
 
Join Date: Nov 2008
Brazil
Posts: 7
Default
As promised to who i cant remember...

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 (0 < $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
}
?>
Reply With Quote
The Following 9 Users Say Thank You to FAZ For This Useful Post:
Daz (6th February 2010), FAZ (6th November 2008), Fynnon (8th November 2008), Keiichi (14th March 2009), overhedge (10th April 2010), peiratikos (10th November 2011), Security (7th November 2008), weevazi (6th November 2008), zenja7777 (6th November 2008)
  #2  
Old 6th November 2008, 14:43
FAZ FAZ is offline
Member
 
Join Date: Nov 2008
Brazil
Posts: 7
Default
Hey!! it is my mod

biba! viado!
Reply With Quote
  #3  
Old 6th November 2008, 14:45
schossler schossler is offline
Member
 
Join Date: Oct 2008
Posts: 1
Default
Quote:
Originally Posted by FAZ View Post
Hey!! it is my mod

biba! viado!
yes your mod ... but I create it.
Reply With Quote
  #4  
Old 6th November 2008, 14:46
FAZ FAZ is offline
Member
 
Join Date: Nov 2008
Brazil
Posts: 7
Default
With my help,
viado!
Reply With Quote
  #5  
Old 25th December 2008, 00:29
Joshua Joshua is offline
Senior Member
 
Join Date: Oct 2008
Posts: 23
Default
Don't work on my TS 5.1

Why????
Reply With Quote
  #6  
Old 25th December 2008, 16:10
GaBoNtZ's Avatar
GaBoNtZ GaBoNtZ is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 113
Default
Quote:
Originally Posted by Joshua View Post
Don't work on my TS 5.1

Why????
check apache and php errors mate.
the logrs are gold!!

Last edited by GaBoNtZ; 25th December 2008 at 16:11. Reason: completion
Reply With Quote
  #7  
Old 25th December 2008, 18:21
Jack Jack is offline
Member
 
Join Date: May 2008
Posts: 4
Default cache
Thanks this mod, but how cahce this? Please help.
Reply With Quote
  #8  
Old 25th December 2008, 22:32
Joshua Joshua is offline
Senior Member
 
Join Date: Oct 2008
Posts: 23
Default
Quote:
Originally Posted by GaBoNtZ View Post
check apache and php errors mate.
the logrs are gold!!
I'm sorry

no error log's for this

any solutions
Reply With Quote
  #9  
Old 26th December 2008, 15:41
GaBoNtZ's Avatar
GaBoNtZ GaBoNtZ is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 113
Default
Quote:
Originally Posted by Joshua View Post
I'm sorry

no error log's for this

any solutions
well, what you mean by "not working"?
what does or what not does.
and how you installed it?
Reply With Quote
  #10  
Old 18th March 2009, 08:34
hhc hhc is offline
Senior Member
 
Join Date: Oct 2008
Posts: 16
Default

i install the plugin but it doesn't show me anything, i used the TS 5.1 any help
Reply With Quote
Reply

Tags
5x , birthday , plugin , plugin birthday , tsse

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
Birthday joeroberts Mods & Themes 10 13th June 2010 16:53
Birthday Mod TS5.6 Marco Template Shares 7 20th December 2009 23:24
Birthday change ciobancai Template Shares 2 14th August 2009 07:59
[req] JFusion plugin for TSSE Ashur Template Shares 0 12th July 2009 00:31
Birthday change?! Swompen Torrent Strike 6 29th April 2008 22:29



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