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!