#40240
01/08/2001 6:27 PM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
in forumdisplay.cgi find } else { $ThisURL = qq($NonCGIURL/$ExactPath/HTML/$threadinfo[1].html); } paste under # begin date under Topic Starter mod @catarray = @blank; if( open (CATFILE,"$NonCGIPath/$ExactPath/$threadinfo[1].cgi") ){ $cataux = ; $cataux = ; @catarray = split(/||/, $cataux); close(CATFILE); $ThisYearcat = substr($catarray[3], 6, 4); $ThisMonthcat = substr($catarray[3], 0, 2); $ThisDaycat = substr($catarray[3], 3, 2);
if ($DateFormat eq "US") { $TheDatecat = "$ThisMonthcat-$ThisDaycat-$ThisYearcat"; } elsif ($DateFormat eq "Euro") { $TheDatecat = "$ThisDaycat-$ThisMonthcat-$ThisYearcat"; } elsif ($DateFormat eq "USX") { $TheDatecat = &DateFormat("$catarray[3]", "USExpanded"); } else { $TheDatecat = &DateFormat("$catarray[3]", "EuroExpanded"); } }else{ print "Content-type: text/htmlnn"; print "Error: unable to open file (date under Topic Starter)n"; } # end date under Topic Starter mod
find
$threadinfo[4]
replace for
$threadinfo[4] $TheDatecat
thanks ubbdev for the idea.
edit: added non-us date format compatibility
------------------
This message has been edited by CopyCat on January 08, 2001 at 06:01 PM
|
|
|
#40241
01/08/2001 7:45 PM
|
Joined: Sep 2000
Posts: 1,304
Addict
|
Addict
Joined: Sep 2000
Posts: 1,304 |
This one works in regular forums except private forums. You have a fix? ------------------
|
|
|
#40242
01/08/2001 8:13 PM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
it is working here with version 5.47d GoTorankusuKu, with both maximum and minimum security.. maybe its something with version 5.44 that you are running, sorry i dont have this version.. gotta check 00000001.cgi's like files of private foruns (just guessing here).. this are the files the script is checking to get first post date. or maybe put the first post date variable in wherever the private show threads list script is.. ------------------ This message has been edited by CopyCat on January 08, 2001 at 07:23 PM
|
|
|
#40243
01/09/2001 8:29 AM
|
Joined: Jun 2000
Posts: 44
Member
|
Member
Joined: Jun 2000
Posts: 44 |
It works for me in both regular and private forums. I am running version 5.45c .
Thanks CopyCat.
|
|
|
#40244
02/02/2001 3:41 AM
|
Joined: Oct 2000
Posts: 22
Member
|
Member
Joined: Oct 2000
Posts: 22 |
It doesn't work for me too in private forums! There's only an empty tag if i view the private Forum! Only the Topic starter is shown! I am using 5.47d!
It's time to burn!
|
|
|
#40245
02/02/2001 4:05 AM
|
Joined: Jan 2001
Posts: 1
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 1 |
Is there a way to display the time under the topic starter as well???
|
|
|
#40246
02/02/2001 5:57 PM
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
Thanks works great kja , I think you add $threadinfo[4] $TheDatecat$TIME
|
|
|
#40247
02/15/2001 11:50 AM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
add this $catime = $catarray[4]; before this }else{ print "Content-type: text/htmlnn"; print "Error: unable to open file (date under Topic Starter)n"; } and change this $threadinfo[4] $TheDatecatfor this $threadinfo[4] $TheDatecat $catimedemo http://banco.jogosonline.com.br/cgi-bin/ubbcgi/forumdisplay.cgi?action=topics&forum=Fórum+JOL&number=9 nice idea . it takes some space in the topic list, but wth.
|
|
|
#40248
02/19/2001 7:05 PM
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
Coolness! I used the original, and the extra "$catime = $catarray[4];" etc, stuff. worked great on 5.47d
|
|
|
#40249
02/20/2001 5:42 PM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
glad to know that docda, maybe its something with the login hack?..
|
|
|
#40250
02/20/2001 7:05 PM
|
Joined: Sep 2000
Posts: 1,304
Addict
|
Addict
Joined: Sep 2000
Posts: 1,304 |
Oops, after going back to my forumdisplay.cgi I accidently placed the code at the wrong place. Now it works in every forum. Sorry for doubting you CopyCat.
[ February 20, 2001: Message edited by: GoTorankusuKu ]
|
|
|
#40251
02/21/2001 12:38 PM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
|
|
|
#40252
02/24/2001 12:10 AM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
warning: this modification is opening 1 extra file for each topic, to get information not contained in the file that forumdisplay.cgi opens. If you experience problems with performance, remove the modification to improve it.
|
|
|
#40253
02/24/2001 12:13 AM
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
|
|
|
#40254
02/24/2001 3:31 AM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
Joined: Dec 2000
Posts: 595 |
each time a topic is found this script opens the 000001.cgi like file for the topics first poster date. so, the script is opening all 000001.cgi's files listed on the forum page.
|
|
|
#40255
07/11/2001 6:08 AM
|
Joined: Mar 2000
Posts: 1
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 1 |
the time part gives me a 12 hour us format, how can I get the 24 hour time format?
Thanx!
|
|
|
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: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|