|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
On my forum the year a person registered is missing on their posts. The date they registered is under their avitar, but no year. I looked over at Info Pop Threads support and I didn't see it listed as a bug. Is it a known bug, or do I need to enable something to get the year to display?
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Are you using the 'long' date/time format?
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
Yup, so the year is getting "cut off"?
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
The date format "short5" seems to have a similar display problem!
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
[6.2] Here's a fix. Look for $theme['timeformat'] == "long" and replace the if-body which sets $regedon. showflat.php: if ($theme['timeformat'] == "long") { <br /> [:"red"]list($one,$two,$three,$four) = split(' ', $postrow[$i]['Registered']); <br /> $regedon = "$two $three $four";[/] <br />} else { showthreaded.php: if ($theme['timeformat'] == "long") { <br /> [:"red"]list($one,$two,$three,$four) = split(' ', $Registered); <br /> $regedon = "$two $three $four";[/] <br />} else {
Last edited by Dave_L; 01/15/2003 7:41 PM.
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
Thx, Dave_L! Here is the fix for timeformat "long" and "short5". Simply added an elseif statement right under your fix. Has to applied to showflat and showthreaded, also. if ($theme['timeformat'] == "long") { <br /> list($one,$two,$three,$four) = split(' ', $postrow[$i]['Registered']); <br /> $regedon = "$two $three $four"; <br />} <br />elseif ($theme['timeformat'] == "short5") { <br /> list($one,$two) = split(' ', $postrow[$i]['Registered']); <br /> $regedon = "$two"; <br />} else { Has this one been reported at Infopop? It should get into 6.2.1, i think.
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
Thanks Dave!
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
I reworked the hole block a bit, so that it works with error level 15. if (isset($Registered)) { <br /> $postrow[$i]['Registered'] = $html -> convert_time($Registered,$useroffset); <br /> if ($theme['timeformat'] == "long") { <br /> list($one,$two,$three,$four) = split(' ', $postrow[$i]['Registered']); <br /> $regedon = "$two $three $four"; <br /> } <br /> elseif ($theme['timeformat'] == "short5"){ <br /> list($one,$two) = split(' ', $postrow[$i]['Registered']); <br /> $regedon = "$two"; <br /> } <br /> else { <br /> list ($one,$two) = split(" ",$postrow[$i]['Registered']); <br /> $regedon = "$one"; <br /> } <br /> $postrow[$i]['Registered'] = "{$ubbt_lang['REGED_ON']} $regedon"; <br /> }
Last edited by Astaran; 01/16/2003 5:21 AM.
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
Update: I wrote up the instructions and reported this on over at Infopop. See here
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
Very !
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|