TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 20, 2024, 11:23:51 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,197
  • Total Topics: 21,221
  • Online today: 144
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 198
  • Total: 198

Recent New Topics (topic title only)

Started by greenman, January 04, 2007, 11:03:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

greenman

I'm not very good at this, can someone help me out.

What I would want would be the exact same code as talked about in this topic: http://www.tinyportal.net/index.php?topic=11574.0

But instead of having for a specific board, just overall for the forum. Sounds like a stupid question with an easy answer but do read on.
The problem is, in the SSI the code is coded to show in what board, posted by who, and the date. What I want is just the name of the topic as a link to the topic, that's it. Just like the code in topic posted above works as.


I hope I'm not asking for something that has already been asked for, I searched but didn't find.

Thank you. :)

IchBin

You could just take the code from this post and modify it to suit your needs?
http://www.tinyportal.net/index.php?topic=596.0

jacortina

If you call ssi_RecentTopics so that it returns an array (rather than echoing out its results), you can take that array and choose what to show.

Aside from that, as IchBin suggested, that topic has a few different ways of presenting recent topic displays. I'm sure one could be adapted.

greenman

#3
Thanks a lot.
Not sure if this is proper, but works like a charm for me. :)

<?php 
$what
=ssi_recentTopics('5'NULL'array');Ã,  
foreach ($what as $topic
{
echo

<a href="'
$topic['href'], '">'$topic['link'], '</a><br />'

?>


One little problem though, it shows the top threads with newest posts in them, how can I make it show latest posted threads? (not effected by posts)

jacortina

If you want the most recently STARTED threads, you'll have to write a function for it. It's actually a matter of duplicating the ssi_RecentTopics functions and changing the "ORDER BY" clause in the query from:

      ORDER BY t.ID_LAST_MSG DESC

to:

      ORDER BY t.ID_FIRST_MSG DESC

greenman