php forum
php mysql forum
php mysql smarty
 
Topic Options
#43001 - 10/11/00 01:42 AM Most recent post extraction script.
Thradar Offline
Member

Registered: 10/03/00
Posts: 355
Loc: Olympia, WA
Okay, so this isn't a hack to UBB, but it's an interface that extracts the 5 most recent posts to your UBB, and outputs them using SSI. I still have some tweaking to do, but it works good. There is still a problem when someone posts after midnight and the dailyindex file gets cleared...so I need to fix that. Here are two demos:
http://www.gamerforums.net

This one is basically what the raw output looks like before you wrap any page formating around it.
http://www.gamerforums.net/test.shtml

And here is the script:
http://www.gamerforums.net/misc_pages/lastpost.txt

My inspiration was, of course, what you see on the frontpage of this site...and if this script already exists, well at least I learned how all the UBB info is stored.

If you try it out or have any problems, post here. Thanks.

------------------
Neal 'Thradar' Ulen
Webmaster www.gamerforums.net

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by Thradar on October 11, 2000 at 01:57 AM</font>

Top
#43002 - 10/11/00 10:55 AM Re: Most recent post extraction script.
Thradar Offline
Member

Registered: 10/03/00
Posts: 355
Loc: Olympia, WA
Oops, I noticed another problem. When you make a followup post to a thread that is still displayed in the last 5 listing, it changes all occurences to the same time, date, and member info.

Guess that's why it's in the beta area. I'll clean it up some tonight.

------------------
Neal 'Thradar' Ulen
Webmaster www.gamerforums.net

Top
#43003 - 10/11/00 11:23 AM Re: Most recent post extraction script.
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Very nice Thradar... you did an excellent job.

Compare your script to the one Dave did here: http://www.arlo.net/ubb/hacks/active.txt

We used the SSI from it for our front page.

BTW, you might be able to help us bug-fix a few mods...

------------------
Allen

- http://www.stand318.com
_________________________
- Allen wavey
- What Drives You?

Top
#43004 - 10/11/00 11:58 AM Re: Most recent post extraction script.
Thradar Offline
Member

Registered: 10/03/00
Posts: 355
Loc: Olympia, WA
Ooo, that's a nice one too, thanks. The toughest part was finding where UBB stores all the recent post data. I admit that my code is pretty simplistic, but hey, I just started teaching myself perl and I try not to get too fancy. I used to program like a madman in FORTRAN, QuickBasic, PL/1, and a little VisualBasic back in the day...this is some of the first programming I've done in years.

Is Dave's script above listing in the database here? Because I didn't run across one that does what my script does, that's why I wrote my own. As I said before, I'll clean it up (see todo list in actual listing link above) and you can post it to the database.

------------------
Neal 'Thradar' Ulen
Webmaster www.gamerforums.net

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks