Conflict with Birthday MOD and Yesterday/Today MOD! HELP!!

Mod that adds a birthday field to the users profile, theire age are displayed beside the posts, and on there birthday they will have a greeting popup
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Conflict with Birthday MOD and Yesterday/Today MOD! HELP!!

Postby asapreta on Wed 05. May, 2004 21:16

Something is very wrong.

Sudden the birthdaymod got mad!

It's showing the users birth year in negative (ex. -1969) and not the age (that would be PRESENT YEAR-1969 = 34 (or 35).

What happened? Database Fault?
Some conflict with other mod?

>> Edited <<

I found this:

If I uninstall Yesterday/Todays MOD everything runs fine.

The conflicting mod is this:

Code: Select all
##############################################################
## MOD Title: frinendly date
## MOD Author: vegatron <webmaster@vega.4t.com>  - <www.jam3a.tk - www.alhandasa.net> (arabic sites)
## MOD Description:
##  This mod will replace the date with the word 'Today' or 'Yesterday' for the posts that are posted on today or yesterday,
##  which will make the date look more friendly.
##
## MOD Version: 1.0
##
## PHPBB Version: 2.0.0+
## Installation Level: easy
## Installation Time: ~ 1 Minutes
## Files To Edit:  1
##      includes/functions.php
##
## Included Files: N/A
##
##############################################################
## Author's Notes:
##
## The form of the displayed date is 'Today/yesterday - h:i a" ,so in case you wanted to change the date format
##  all you have to do is to edit the variable '$time_format'
##
## This MOD is released under the GPL License.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php

#
#-----[ FIND ]------------------------------------------
#
   return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));

#
#-----[ REPLACE WITH ]-----------------------------------
#

// friendly date mod\\*******************

   $thetime = ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));
   
   $L_Today = 'Today';
   $L_Yesterday = 'Yesterday';
   $time_format = " - h:i a";// - hour:minute am/pm
   
   $date = getdate();
   $today = $date['mday'];
   $month = $date['mon'];
   $year = $date['year'];

   $forum_date_today = @gmdate ("d", $gmepoch);
   $forum_date_month = @gmdate ("m", $gmepoch);
   $forum_date_year = @gmdate ("Y", $gmepoch);
   
   if ($forum_date_today == $today && $forum_date_month == $month && $forum_date_year == $year)
      $thetime = $L_Today . @gmdate ($time_format, $gmepoch);//today
   
   else
   if ($today != 1 && $forum_date_today == ($today-1) && $forum_date_month == $month && $forum_date_year == $year)
      $thetime = $L_Yesterday . @gmdate ($time_format, $gmepoch);//yesterday
      
   else
   //if today is 1 and the month is not 1, then we have to check how many days in the previews month
   //and then set $yesterday to the last day in the previews month
   if ($today == 1 && $month != 1)
   {
   $yesterday = date ("t", mktime(0,0,0,($month-1),1,$year));//returns how many days in the previews month
   if ($forum_date_today == $yesterday && $forum_date_month == ($month-1) && $forum_date_year == $year)
      $thetime = $L_Yesterday . @gmdate ($time_format, $gmepoch);//yesterday
   }
   else
   //if we are in the first day in the year
   if ($today == 1 && $month == 1)
   {
   $yesterday = date ("t", mktime(0,0,0,12,1,($year -1)));
   if ($forum_date_today == $yesterday && $forum_date_month == 12 && $forum_date_year == ($year-1))
      $thetime = $L_Yesterday . @gmdate ($time_format, $gmepoch);//yesterday
   }

      return ($thetime);
//end friendly date \\*******************************

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM


Can anyone make them compatible?!

Thanks!
asapreta
Poster
Poster
 
Posts: 2
Joined: Tue 04. May, 2004 21:55

Postby jikey on Mon 10. May, 2004 20:08

ah ... i having this problem tooo ..
hahahahaha ...
don't know author with fix for us or not ? thxq :)
jikey
Poster
Poster
 
Posts: 2
Joined: Sun 09. May, 2004 11:44

Postby xeite on Mon 10. May, 2004 23:32

Just use different Today/Yesterday mod, this one is easy to install but not compatibile with many other mods
xeite
Poster
Poster
 
Posts: 8
Joined: Fri 05. Dec, 2003 18:55

Postby jikey on Wed 12. May, 2004 02:30

xeite wrote:Just use different Today/Yesterday mod, this one is easy to install but not compatibile with many other mods

erm ... do u hav another today/yyesterday mod ?
jikey
Poster
Poster
 
Posts: 2
Joined: Sun 09. May, 2004 11:44

Postby DivErTido on Sat 18. Jun, 2005 00:41

I have same problem...
Anyone to give us a help? :wink:
DivErTido
Poster
Poster
 
Posts: 35
Joined: Sun 27. Apr, 2003 20:28

Postby Peter77s on Sat 18. Jun, 2005 03:23

xeite wrote:Just use different Today/Yesterday mod, this one is easy to install but not compatibile with many other mods


Well holy hell! why didn't anyone just tell me that instead of begging for help... geesh. good to know. I gave up on this mod.
Peter77s
Poster
Poster
 
Posts: 34
Joined: Sat 26. Mar, 2005 19:46

Postby DivErTido on Thu 11. Aug, 2005 12:51

anyone?
After install Today/Yesterday Mod, the birthday pop-up window are always show up!

Any ideia to fix this? :wink:
DivErTido
Poster
Poster
 
Posts: 35
Joined: Sun 27. Apr, 2003 20:28


Return to Birthday [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron