Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 13
I've been working in circles trying to figure out how to get the last few posts to wind up on my front page.

I'm not an excellent programmer, in fact, I'm not a programmer at all. But I do know how to follow instructions very well. I've seen this on several sites, i.e., midnightcafe.com and even ubbdev.com, but for the life of me, I can't figure out how to do it myself.

I have a stock site, so it's vital that when new visitors come to my site, the first thing they see is the "Hot Stock Tips" that have been posted.

If anyone can help, I'd really appreciate it. By the way, I grabbed the post reply and new topic buttons from here. They're the only professional looking buttons I could find!


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
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
I couldn't tell what version you're using, because you changed the copyright notice so it's not visible to the eye. Please change it back to being visibile, and then I can help you.

Joined: Apr 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 13
Quote
quote:
I apologize, but I must have done it not knowing what I was doing. I'll get it changed back. I wanted the logo instead of text. I just downloaded the latest version which, I believe, is 6.04 if I'm not mistaken.

Any help would be greatly appreciated. Thank you for repsonding as well.


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!
Joined: Apr 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 13
It's version 6.04a


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!
Joined: Feb 2001
Posts: 30
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 30
I too would like some help on this too please.
Nanapong ubb board

Sponsored Links
Joined: Apr 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 13
I'm sure t's not going to be easy, but I know it can be done, and I'm willing to put the work into it.

It just makes your front page look so much more professional when it updates automatically with the last posts.

If anyone out there can help, it would be GREATLY appreciated!


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!
Joined: Apr 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 13
Still wondering if someone can help with this. I've managed to place the last date and time of a few boards on my front page, so maybe that's all I should worry about.

I'd like to be able to take it a step further and indicate, without having to manually type in the name, which boards were active. Here's my front page.

You'll see that I've typed in the name of the board, and under that is the date and time of the most recent post.

Basically, I'd like to take the results from the "Today's Active Topics" page and plave it on my index.html page... any help would be GREATLY appreciated!


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!
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
Search for the hack called "active topics".

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!
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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 20221218)