So you want the last 10 active threads to show up on your website, huh? Here’s how to do it:
Instructions
Copy/paste the html from the attached txt file to your website wherever you want the threads to show up.
Enjoy the last 10 threads on your website.
Want to format this list any way you want? You’ll need to know of a way to parse an XML file. If you know how to do this, let me know. If you don’t know how to do this, but have the PHP on your webserver, and want to try it out, send me an e-mail and I will give you instructions and help on doing this yourself.
Reply to this thread if you need help, or email me, or pm me, or whatever. I’ll help ya.
Brandon
P.S. Reply to this thread if you’re using this. I’m just wondering how much use this will get… Thanks.
**UPDATE: ** This is a new attached file w/many new examples and options…
**UPDATE: ** See attachment on last reply – new URLs.
I have it on my rather code poor site. http://www.geocities.com/weffs11/cdlast10
One comment/suggestion, anyway to add the last user to post?
It shows who started the thread, but if it is the most recently active, I would like to know who posted most recently.
Does that makes sense? If not, ask and ye shall recive clairification.
i have just put it up on our website. http://www.cyberblue234.com. I love the idea brandon!! once i get the time, i’ll design a better way to display it on our site.
Is there any way to make it a lot smaller? I’m thinking of an implementation similar to what Westcoaster.net uses on their front page under “Recent Forum Topics.” (i.e. a plain text list that fits into a column or small box). Westcoaster also uses vBulletin for their boards, so it should be possible.
This is a great feature, but It would be better if each table cell color had a class attribute given to it to allow for customization of the code. As it is, my current css code causes it to display rather awkwardly…
[edit] ACK! Oh dear… the script declaration is invalid… it must contain the type attribute to be valid XHTML markup! My page… she… doesn’t validate? [/edit]
… Big error… When clicking on individual topics they try to take me to showthread.php on my server… which doesn’t exist. You should change the link from <a href=“showthread.php?threadid=#####”> to <a href=“http://www.chiefdelphi.com/showthread.php?threadid=#####”> instead.
Check out the extras page, it has instructions on how to do the same thing, but with XML. Im not sure if you can process XML on your website or not. It’s a bit more flexible than this javascript version.