Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
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?

Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Are you using the 'long' date/time format?

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Yup, so the year is getting "cut off"?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
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
Offline
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:

Code
if ($theme['timeformat'] == "long") { <br />   [:"red"]list($one,$two,$three,$four) = split(' ', $postrow[$i]['Registered']); <br />   $regedon = "$two $three $four";[/] <br />} else {


showthreaded.php:

Code
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.
Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
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.
Code
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
Offline
Joined: Feb 2001
Posts: 2,268
Thanks Dave!

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
I reworked the hole block a bit, so that it works with error level 15.
Code
	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
Offline
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
Offline
Joined: Feb 2001
Posts: 2,268
Very !

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)