Welcome, Guest. Please Login or Register.
August 29, 2025, 10:20:29 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  todaymod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: todaymod  (Read 393 times)
kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
todaymod
« on: April 05, 2002, 11:50:07 AM »
Reply with quote

the todaymaod runs in am/pm mode regardsless of the preferences setting (Im running 24hr clock)

Changing it should be a quite simple task though, so Ill just do it myself
Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:todaymod
« Reply #1 on: April 05, 2002, 01:24:39 PM »
Reply with quote

Ok you do that and post it here ;)
Logged

kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:todaymod
« Reply #2 on: April 05, 2002, 03:30:20 PM »
Reply with quote

Ill do that, Im going on holliday tomorrow so, it will be next weekend
Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:todaymod
« Reply #3 on: April 05, 2002, 04:25:28 PM »
Reply with quote

Oh sorry :)  I thought you said it was quite a simple task so I assumed you had done it already or could whip it together in a few minutes  ;D

Don't worry about it and have a good vacation ;)
Logged

Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:todaymod
« Reply #4 on: April 05, 2002, 05:20:49 PM »
Reply with quote

Why is that? Didn't Omar fix that bug on the board running here some time ago?
Logged
seth4chaos
Noobie
*
Posts: 22


YaBB SE Rulez!!!

Re:todaymod
« Reply #5 on: April 05, 2002, 08:54:58 PM »
Reply with quote

I am running a 24-hours board also and I had this problem with 1.1.0 also but with 1.3.0 it's fixed.
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:todaymod
« Reply #6 on: April 05, 2002, 09:23:11 PM »
Reply with quote

Mine is fixed also in 1.3.x
Logged
kurgan
Jr. Member
**
Posts: 91


!!MIKE WAZOWSKI!!

ICQ - 31301694 WWW
Re:todaymod
« Reply #7 on: April 05, 2002, 10:18:07 PM »
Reply with quote

that must be because the fix is in one of the modules not included in the 1.3 / 1.3.1 update.

nevermind Im so drunk I cant see straight anyway... :P ;D
Logged

seth4chaos
Noobie
*
Posts: 22


YaBB SE Rulez!!!

Re:todaymod
« Reply #8 on: April 05, 2002, 10:27:47 PM »
Reply with quote

well if your not drunk anymore :P here is the code you have to use (it also includes the yesterday mod)
   if ($GLOBALS['todayMod']=='1')
   {
      $t1 = getdate($time);
      $t2 = getdate($nowtime);
      $strtfmt = (($username == 'Guest' || $settings[17]=='')?$timeformatstring:$settings[17]);
      if ($t1['yday']==$t2['yday'] && $t1['year']==$t2['year'])
         return $txt['yse10'].date(substr_count($strtfmt, "%H") == 0?" h:i:sa":" H:i:s", $time);   //Bugfix by Omar Bazavilvazo
      if ($t1['yday']==($t2['yday']-1) && $t1['year']==$t2['year'])
         return $txt['yse10b'].date(substr_count($strtfmt, "%H") == 0?" h:i:sa":" H:i:s", $time);   //Bugfix by Omar Bazavilvazo
   }
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:todaymod
« Reply #9 on: April 05, 2002, 11:57:50 PM »
Reply with quote

kurgan, I checked myself and it does indeed work in the shipped version of 1.3.0. What date format are you using?
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:todaymod
« Reply #10 on: April 16, 2002, 09:15:59 PM »
Reply with quote

there was never a bug, only thing is if you use %R for 24h format, then

return $txt['yse10'].date(substr_count($strtfmt, "%H") == 0?" h:i:sa":" H:i:s", don“t change the format to H:i:s

if you use %H:%M instead the mod works perfect!

medi
« Last Edit: April 16, 2002, 09:18:20 PM by mediman » Logged

mainComm Dev Team
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  todaymod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.015 seconds with 16 queries.