Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   [TSSE 5.x] Plugin Birthday (http://www.bvlist.com/showthread.php?t=1339)

');
    }

    if (($cachesystem != 'yes' OR $no_cache))
    {
      $showbday .= '';
    }
  ?>
 


}
?>
FAZ 5th November 2008 14:16

As promised to who i cant remember...

Code:

require_once('global.php');

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

?>
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



Happy Birthday



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 .= ' ' . get_user_color ($bday['username'], $bday['namestyle']) . ' (' . $yearsold . ') ';
        }
      }else{
      $showbday .= '
No birthdays today!
';
      }
      cache_save2 ('tsf_bday', $showbday, '

FAZ 6th November 2008 14:43

Hey!! it is my mod

biba! viado! :chch:

schossler 6th November 2008 14:45

Quote:

Originally Posted by FAZ (Post 6331)
Hey!! it is my mod

biba! viado! :chch:

yes your mod ... but I create it.
:chch::chch::chch:

FAZ 6th November 2008 14:46

With my help,
viado!

Joshua 25th December 2008 00:29

Don't work on my TS 5.1

Why????:wallbash::wallbash::wallbash:

GaBoNtZ 25th December 2008 16:10

Quote:

Originally Posted by Joshua (Post 7648)
Don't work on my TS 5.1

Why????:wallbash::wallbash::wallbash:

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

Jack 25th December 2008 18:21

cache
 
Thanks this mod, but how cahce this? Please help.

Joshua 25th December 2008 22:32

Quote:

Originally Posted by GaBoNtZ (Post 7653)
check apache and php errors mate.
the logrs are gold!!

I'm sorry

no error log's for this

any solutions

GaBoNtZ 26th December 2008 15:41

Quote:

Originally Posted by Joshua (Post 7660)
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?

hhc 18th March 2009 08:34

:sos:
i install the plugin but it doesn't show me anything, i used the TS 5.1 any help

Marco 6th February 2010 09:25

hi
 
can anyone make this work on ts 5.6 ?
i create the file
i uploaded on include/plugins/

but nothing happening

thanks

Nightcrawler 18th February 2010 17:49

hmmm
 
I made one exactly the same and it works fine.

http://bvlist.com/17422-post2.html

Marco 19th February 2010 00:18

Hi
 
sorry to tell you but this it isn't working on TS 5.6 your version.(like a plugin mod)... i create a file i put it on include/plugins in tracker settings i created the plugin with the same name but nothing can be see

thank you for your help :)

gabkoko 6th December 2010 20:06

Don't work on my TS 5.6 :sos:

Marco 6th December 2010 20:10

1 Attachment(s)
you have to check out somewhere is already maked ;)


i put it mine is not my work it's from here but i don't know sure where it is .... so don't blame me i want only to help!

you create a new plugin with this name (or change it) and upload it on root/include/plugin

gabkoko 6th December 2010 21:39

Works but... above the block :wallbash:
http://white-dragon.eu/pic/szulinap.jpg

Marco 7th December 2010 10:15

hmm interesting...for me is working in the block:D


maybe you copy the php content on plugin?

gabkoko 7th December 2010 11:48

2 Attachment(s)
Here is my php content:

PHP Code:

<?
if (!defined('TS_P_VERSION'))
{
    
define('TS_P_VERSION''1.2 by xam');
}
// Security Check.
if (!defined('IN_PLUGIN_SYSTEM'))
{
     die(
"<font face='verdana' size='2' color='darkred'><b>Error!</b> Direct initialization of this file is not allowed.</font>");
}

require_once(
'global.php');

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

$szulinap '';
$query mysql_query('SELECT username, birthday FROM users');
while (
$line mysql_fetch_row($query))
{
    list(
$day$month$year) = split("-"$line[1]);
    
$hit date('d') == $day && date('m') == $month;
//    $szulinap .= $line[0].' '.$line[1].' x '.$day."|".$month."|".$year.' x';


    
if ($hit)
    {
        
$szulinap .= $line[0].', &nbsp;';
    }

}
 echo 
$szulinap;

?>

This does not work:

Marco 8th December 2010 08:52

hello
 
you didn't use my version :) :D my version it isn't here i take a better look now....

download my szulinap.php and will work that.

gabkoko 8th December 2010 10:43

Thank you for you help.
 
1 Attachment(s)
Hi,
here is you version but it absolute don't work...:scratch:Only empty block

shasta 24th February 2012 12:40

birthday
 
only an empty block :wallbash:


All times are GMT +2. The time now is 02:42.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.