Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
I realize that this is for 6.5 and 6.6 but I figured 6.4 *might* work so I gave it a shot and I set it to forum 9 (announcement) and threads =5 and it comes up blank. If I put ubbnews.php?forum=9 then it gives me one thread and it seems to pull it up from last year. Any ideas?
_________________________
3 time Spotlight winner. Believe The Lie
Gizmo
Wizard
Registered: 01/10/00
Posts: 5132
Loc: Portland, OR, USA
if i had ftp access to my domain from here, and if my domain wasn't blocked from here i'd test it, but i'm not expecting my laptop back till next week ...
Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Quote:
quote:</font><hr />Originally posted by twslex: <blockquote><font class="small">quote: [qb]Originally posted by Sub Zero: the vars_config.inc.php for your UBB paths.
Feel free to suggest any improvements to the code, as I'm still learning PHP This may/may not work on earlier versions, so use at your own risk. [/qb]
vars_config.inc.php is different in 6.4, so i any one wants to use it on 6.4.x u have to change the link towards the the topic. <hr /></blockquote>Can we get a little more detail on how to get it to work with 6.4?
_________________________
3 time Spotlight winner. Believe The Lie
Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
Ok... I haven't tested it with 6.4 but assuming the metadata formats haven't changed it should work.
Regarding pulling the old thread, rebuild the forum stat files for that particular forum and see if that cures it. If not, I'll have to figure a way to handle metadata being out of order. Maybe something of using the lastnumber and counting backwards and searching for existing files.
doing ubbnews.php?forum=9&threads=5 should pull 5 threads and tease them.
Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Thanks, I'll work on it. I appreciate the reply!!
edit: the stat rebuild didn't help and the threads=5 still just pulls one old thread up. Thread it pulls is consistent though. Here's the link I'm trying;
Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
You are the man, I hope I'm not causing too much trouble. I want to upgrade but I don't want to kill the look I have at Netwerkin right now and it's a pain to build.
_________________________
3 time Spotlight winner. Believe The Lie
Registered: 11/29/01
Posts: 789
Loc: Des Moines, IA
Aye! The forum_XX.threads files in 6.4 aren't in sync like the 6.6 files(The ones on my 6.6 board are sorted in numeric order which makes for clean processing of the array). The way I wrote this, I take the .threads, pop the bottom rows off, then invert the array so I can process it in reverse order. It looks like with 6.4, I need to sort the array myself before processing it.
Let me see what I can cook up for porting this mod back to 6.4....
On a positive note, you helped me solve the graemlin processing problem. Drop ubbnews.php into the noncgi directory. I call mine out of the root because it is with the rest of the PHP scripts that power the main page on my site.
Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Eh, it's not so bad. The fact that alpha-sorted forums will use a date-sorted .threads file in 6.7 will make up for it. (Meaning alpha-sorted forums will be able to be pruned, mass moved from, and have CIs stuck on them, in addition to your routines being able to work with them.)
_________________________
UBB.classic: Love it or hate it, it was mine.
Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Thank you SO much. I've been building a 6.6 upgrade kit for Netwerkin but it's weeks away and I've been dying to have a front page again. Netwerkin used to be rather large but I moved the tutorials etc. to www.randymcelroy.com (my personal site).
_________________________
3 time Spotlight winner. Believe The Lie