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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 231
  • Total: 231

Recent Topics to Full Page

Started by RoarinRow, January 22, 2006, 03:20:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RoarinRow

Anyone know how to make the Recent Topics open to a full page like how the Shoutbox! can open to a new page.

I addition, it would be cool if it could list the threads by the following columns in this full page:

- Subject (thread topic)
- Started by (member name)
- Replies (number of replies)
- Views (number of views)
- Last post (showing the date, time, and user who last modified thread)

:)

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

elpvn

#1
You can go to TP admin session --> Block manager and limit it with your number !



Read more about your add: http://www.tinyportal.net/smf/index.php?topic=596.40

RoarinRow

Right now my Recent Topics is a right block, which I like, but I want the option to make it a full page with some enhancements.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

bloc

I will see if I can add that full-page option, like shoutbox does. What extras were you thinking of?

RoarinRow

Quote from: Bloc on January 23, 2006, 11:52:46 AM
I will see if I can add that full-page option, like shoutbox does. What extras were you thinking of?

In addition to the date/time stamp and Topic Name, these extras would be great:

- Started by (member name)
- Replies (number of replies)
- Views (number of views)
- Last post (showing the date, time, and user who last modified thread)

Just like this site has - http://www.chevyavalanchefanclub.com/cafcna/index.php?action=last24

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Xarcell

Have you tried this in a center block?



        echo '
                        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
';
       $what=ssi_recentTopics('5', NULL, 'array');


        foreach ($what as $topic)
        {
                echo '
                                <tr>
                                        <td class="windowbg" valign="middle">
                                                ', $topic['link'];

                // Is this topic new? (assuming they are logged in!)
                if (!$topic['new'] && $context['user']['is_logged'])
                        echo '
                                                <a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

                echo '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="20%">
                                                ', $topic['poster']['link'], '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="35%">';
                if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
                        echo '
                                        <a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
                echo '
                                                <span class="smalltext">
                                                        ', $topic['time'], '
                                                </span>
                                        </td>
                                </tr>';
        }

        echo '
                        </table>';



Written by Bloc. I may have made some comestic changes to it, I dunno.

RoarinRow

Thank you for find that code Xarcell.  That's very close to what I'm looking for.  I'd still, if possible, would like to have it as a right block, with a link to open a new dedicated page of its own like the shoutbox! 

That is so close though!  :)

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Xarcell

If your looking for a chat system, there are a few out there.

I recommend flash chat. Very fast, comes with tons of features, and even has sounds.

However, it costs $5. It's worth the price, and comes with the SMF intergration package. It intergrades itself into SMF if you choose to at the installation page. No coding nesscessary.

RoarinRow

Quote from: Xarcell on January 26, 2006, 02:02:14 AM
If your looking for a chat system, there are a few out there.

I recommend flash chat. Very fast, comes with tons of features, and even has sounds.

However, it costs $5. It's worth the price, and comes with the SMF intergration package. It intergrades itself into SMF if you choose to at the installation page. No coding nesscessary.

Hi Xarcell,

  Thanks for the info on the Flash Chat.  I installed that feature too, but still looking to have a separate page of just recent topics just like this - http://www.chevyavalanchefanclub.com/cafcna/index.php?action=last24

  Not sure how the admin got to show the last24 worth of last modified topics on a separate page, but that's what I'm looking for.  If not the last 24, then at least the last 50 topics.


SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

This website is proudly hosted on Crocweb Cloud Website Hosting.