Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 13
After much trial and error, I finally figured it out...

Here was the problem...

I wanted to post information about the most recent threads on my index.html page.

The possible solution was to find a script that could read what the .cgi file had in it. The problem was that it read EVERYTHING! i.e., 0000001.cgi...

00000002|hello|intellicents|04222001|7:14am

It wasn't like that, but you get the idea. It read the symbols, everything.

I created a file called lastmessage.txt and placed it in each of the Forums, i.e., Forum20, Forum 21, etc.

chmod'd it to 0666, and left it blank.

I then went to the ubb_new_reply.cgi file, and where it says

open (FILE, ">$vars_config{NonCGIPath}/$exact_path/lastnumber.file");
&lock;
print FILE ("$last_topic_numbern");
print FILE ("$total_topic_countn");
print FILE ("$total_post_countn");
print FILE ("$this_subjectn");
print FILE ("$pubnamen");
print FILE ("$in{msg_icon}n");
print FILE ("$in{t}n");
&unlock;
close (FILE);
chmod (0666, "$vars_config{NonCGIPath}/$exact_path/lastnumber.file");


I put a line just below it that looked like this...

open (FILE, ">$vars_config{NonCGIPath}/$exact_path/lastmessage.txt");
&lock;
print FILE ("$pubnamen");
&unlock;
close (FILE);
chmod (0666, "$vars_config{NonCGIPath}/$exact_path/lastmessage.txt");

And now, when someone posts a message, it writes to my file called lastmessage.txt.

Then, I only need a script that can read a .txt file and place it on my front page!

If you've got any questions, I'll be more than happy to explain it in more detail... I'm just a little excited right now.

I couldn't get any responses, so I had to figure it out on my own!


I'm currently using UBB.classic 6.2.1.3

I'll help as much as I can, but please remember, I've learned everything I know almost overnight. I'm self taught in other words. You may want to get a second opinion on anything I say!

May God Bless you Always!
Sponsored Links
Entire Thread
Subject Posted By Posted
Last posts on front page (index.html) IntelliCents 04/15/2001 1:38 PM
Re: Last posts on front page (index.html) Matt Jacob 04/15/2001 8:04 PM
Re: Last posts on front page (index.html) IntelliCents 04/15/2001 8:43 PM
Re: Last posts on front page (index.html) IntelliCents 04/15/2001 8:47 PM
Re: Last posts on front page (index.html) viking30 04/18/2001 11:32 AM
Re: Last posts on front page (index.html) IntelliCents 04/18/2001 12:14 PM
Re: Last posts on front page (index.html) IntelliCents 04/23/2001 6:11 AM
Re: Last posts on front page (index.html) Matt Jacob 04/23/2001 2:19 PM
Re: Last posts on front page (index.html) IntelliCents 04/23/2001 2:30 PM
Re: Last posts on front page (index.html) Matt Jacob 04/23/2001 5:51 PM

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
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 20240506)