Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Dec 2000
Posts: 595
Member
Member
Offline
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

Sponsored Links
Joined: Sep 2000
Posts: 1,304
Addict
Addict
Offline
Joined: Sep 2000
Posts: 1,304
This one works in regular forums except private forums. You have a fix?

------------------

Joined: Dec 2000
Posts: 595
Member
Member
Offline
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

Joined: Jun 2000
Posts: 44
Member
Member
Offline
Joined: Jun 2000
Posts: 44
It works for me in both regular and private forums. I am running version 5.45c .

Thanks CopyCat.

Joined: Oct 2000
Posts: 22
Member
Member
Offline
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! frown I am using 5.47d! confused


It's time to burn!
Sponsored Links
Joined: Jan 2001
Posts: 1
kja Offline
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 1
Is there a way to display the time under the topic starter as well???

Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
Thanks works great smile

kja ,
I think you add

$threadinfo[4]
$TheDatecat

$TIME

Joined: Dec 2000
Posts: 595
Member
Member
Offline
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]
$TheDatecat


for this

$threadinfo[4]
$TheDatecat $catime


demo http://banco.jogosonline.com.br/cgi-bin/ubbcgi/forumdisplay.cgi?action=topics&forum=Fórum+JOL&number=9

nice idea smile. it takes some space in the topic list, but wth.

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Coolness! I used the original, and the extra "$catime = $catarray[4];" etc, stuff. worked great on 5.47d


- Custom Web Development
http://www.JCSWebDev.com
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
glad to know that smile

docda, maybe its something with the login hack?..

Sponsored Links
Joined: Sep 2000
Posts: 1,304
Addict
Addict
Offline
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 ]

Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
no prob

Joined: Dec 2000
Posts: 595
Member
Member
Offline
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.

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Please explain...


- Custom Web Development
http://www.JCSWebDev.com
Joined: Dec 2000
Posts: 595
Member
Member
Offline
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.

Joined: Mar 2000
Posts: 1
Junior Member
Junior Member
Offline
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!


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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)