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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 426
  • Total: 427
  • @rjen

"recent topics" in SMF style

Started by Lesmond, August 17, 2005, 12:01:38 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jpark

oh, sorry... I was using your code here http://www.tinyportal.net/index.php?topic=596.150
would self-referencing work in a block as well or only in an article page?  haha.. i guess for me, it wouldn't be "easily done"

IchBin

#321

Rus

Thank you for this, Today I decided I wanted something like this and bang, here it is.

Rus

Hello,

I changed the code on the first page just a little for formatting purposes and now for some reason if you click the new button it goes to the first post and if you click the topic link it goes to where the new button should take you.  I have no idea why.  Could anyone pick out whatever it is that I am missing here?  Thank you.

global $scripturl;

echo '
                        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor"> ';
       $what=ssi_recentTopics('8', 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['new_from'], '#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>';

pelhrimak

Hello, please How to do recent topic from only these boards?

'41','48','46','8','49','10','52','9','11','47','53'

IchBin

Please read through the posts pelhrimak, instructions have already been given in other threads as well.

pelhrimak

I don´t understand you :( I need only recent posts from these boards, when I add '41','48','46','8','49','10','52','9','11','47','53' I watch all recent post without postsm which are in boards ('41','48','46','8','49','10','52','9','11','47','53')

Rus

I still havent gotten around to fixing my error here but maybe this weekend I'll have some time to try and figure it out.

On the other hand if someone more experienced where able to pull it out of there and let me know that would be great.

catchpen

Most excellent work on this topic. I just read all 33 pages :uglystupid2:.  I have 1 question, how hard would it be to show (not interact but just view) the stars that the SMF mod "Topic Ratings" mod gives on each topic? Is this a possibility?

Link to SMF mod

http://www.simplemachines.org/community/index.php?topic=25023.0

The only columns needed is the subject, around 200 characters of the body of post and the rating stars...

Thanks in advance!

IchBin

Well considering that none of us wrote that mod, I don't think anyone could give you the proper answer.

This website is proudly hosted on Crocweb Cloud Website Hosting.