SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: smirre on January 12, 2014, 01:54:40 PM

Title: Recent Topic panel
Post by: smirre on January 12, 2014, 01:54:40 PM
Hello I´ve searched for a topic-panel without any luck. If anyone help me with a topic-panel with Topicnames and
viewers, nothing else it would be awesome. Like they have on this site ]http://www.fragbite.se] (http://www.fragbite.se). I don´t want
it to be outside the portal itself as they have, instaed I want it in a panel. And the functions should only be with
new Topics (over the) and Topics that recently have had any posts in it and end up at the top off the panel in order as it´s bumped.
This way I can put a whole lot of more topics in the side-panel itself and save a lot of space. So only 1 rowe/topic. :)

This site can be an good example too: http://goagubbar.info/
Many regards

Smirre
Title: Re: Recent Topic panel
Post by: [SiNaN] on January 24, 2014, 03:24:14 PM
Hello and welcome to SimplePortal!

It's a little difficult to understand your post. From what I could understand, you want recent topics to be listed only with their titles. Here's the code that you can use in a Custom PHP block:

Code: [Select]
$topics = ssi_recentTopics(10, null, null, 'array');
foreach ($topics as $topic)
echo $topic['link'], '<br />';

You can change 10 as the number of topics you want to list.
SimplePortal 2.3.8 © 2008-2024, SimplePortal