Author |
Topic |
|
Comicozzi2
Starting Member
13 Posts |
Posted - 09 April 2004 : 22:39:20
|
I need a mod that allows me to publish the 10 newest topics of a selected catagory or forum on the front page of the site. Real simple, nothing fancy, just the top 10 topics of that forum and ability for people to click it go to the forum. I need this to be able to work from any page in the site, not within the forums themselves.
Any suggestions?
thanks, |
|
Comicozzi2
Starting Member
13 Posts |
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 09 April 2004 : 22:48:24
|
While I don't know how to code what you're looking for, I'm pretty sure I've seen something like it at Snitz Bitz. Also, just for future reference. This forum is for MODs that have been completed. If you are looking for a MOD, you'll have better luck in the MOD Add-On Forum (W/O Code). |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
|
Comicozzi2
Starting Member
13 Posts |
Posted - 10 April 2004 : 02:53:57
|
thank you sir, I have not found anything that simple! Everything else is a portal or site integration mod..
Sorry about posting in the wrong spot!
Have a good easter. |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
Posted - 10 April 2004 : 04:02:47
|
Do you mean something like this: Outside the Forum
or this one: Inside the Forum using the News mod that you can search on in these forums, but I can give you what I have.
or there is this one I did other one Outside the Forum based on the RSS feed mod.
Send me an email from my Contact Form
|
Cheers, David Greening |
|
|
kmedlin
Starting Member
14 Posts |
Posted - 13 April 2004 : 11:40:35
|
All you need to do is write the appropriate SQL query...
So you'd open up a new recordset on the page you want to display the "latest 10"
That recordset would simply select the topic titles and order them by date descending (newest to oldest)
then...
you'd enter that information in a table on your page.
then...
you'd use a few lines of code to loop through it 10 times...
ie
if NOT rs.BOF AND rs.EOF AND coun=10 then
tablecode of the row you want to repeat
count = count + 1 end if
in this way you loop through your recordset, write it to the page, and create more table rows "on the fly" by setting the maximum count. Really really simple actually. I just don't have the time to write out the entire code for ya.
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 13 April 2004 : 17:15:11
|
Why not try the Simple Slash Mod ? |
|
|
|
Topic |
|