PDA

View Full Version : [Quasi-release] Active Topics (jimbo style)


25 Jun 2000, 15:30
Hello everyone-

This isn't as much a "vBulletin Hack" as it is, an "already existing hack hack". I based it on Krucifyx's active threads hack, but I cleaned it up with some code that I stole from Wanderer's Active Topic hack.

Basically, it is a stripped down version, which just displays the currently active topics, and the amount of replies. No icons, user names, or post info. I did this so that it would be easier to embed in an already existing page, like an index page, instead of having to use a totally separate page just for the active topics.

I only wanted it to take posts from one forum, and only display the last five active topics. The forum number can be changed, as can the amount of posts. Maybe someone could rework it to display multiple forums easily. Otherwise I guess you could implement multiple instances of the code.

Anyway, on to the good stuff:

Here is a working example:
http://www.bronx-bombers.com/index.php

And here is the code:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



There are two instances of the forum number that you want to use, in the example code it is #5. Other than that, it is pretty self explanitory. Just stick it somewhere in a php file, and there you go.

My thanks go to Krucifx and Wanderer for letting me use their code to make it do what I wanted it to do. I can't take any credit (or responsibility :p) for the coding, since all I did was modify the code that they made.

Just thought I'd make my first *real* contribution to the community, despite how tiny it is.

-jim

[Edited by JimF on 06-25-2000 at 11:36 PM]

29 Jun 2000, 15:49
hi jim, singloon here again :D

i am wanting to have the last active topic added to my forum's main front page

http://www.animeboards.net/

i am lost to what i have to do? also can it be adjusted to show the last 5, 10, 15, 20 threads ?

30 Jun 2000, 22:36
Don't forget a </table> tag at the bottom...

20 Jul 2000, 08:25
Lookie here, I thought this hack had gone unnoticed. If you're still interested, all you have to do is insert the code wherever you would like the topics to be on your page. If you look through it, you will see a few places to adjust the quantity of posts, and also which forum number to take them from. And also add the </table> tag as akiy pointed out. I'm sorry I'm not more of a help, but it's been so long since I did this...

If it helps, the forum number in the example is 5, as well as the amount of topics to display. Let me know if there is anything else you're unclear on. I suppose I should clean this up a little bit, now that I actually *know* php ;). Maybe if Sir Sullivan is bored, he could take a quick look at it. I'm sure there would be an easy and efficient way to change all the settings - this code was basically thrown together to accomplish something for my site, so I didn't really plan on documentation and everything, as well as ease of use ;).

Sorry about that - and sorry about the delay in replying - I hadn't seen it until I started looking for something else.

-jim