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: 0
  • Guests: 201
  • Total: 201

Recent Topics Block Issue

Started by Hollywood, January 25, 2008, 09:22:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hollywood

I have the recent topic's block installed and it works very well except for it does not show certain members posts as recent. It works flawlessly for the majority of users though. I do not have a good basis for code work (read none) and I cannot see any problems. Any help would be appreciated.

       
       
global $scripturl;

echo '
                        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
                               <tr><td colspan="3" class="titlebg">Recent topics</td></tr> ';
       $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>';

Zetan

#1
Have you checked the block itself and looked at the member groups who have permission to view it?
This is covered in the FAQs, in this board.


Actually, I've just re-read your post, I didn't read it correctly.

Quoteit does not show certain members posts as recent.

Apologies for that.

Any particular member groups? Post Count Based? Any permissions that may be causing this?
Any particular board?

Hollywood

I think it is solved. I'm not too sure what the problem was but I changed some setting and it worked. Will try and get a better understanding of the issue. Thanks

Zetan

Okay, cool. I did try it on my site and didn't notice any problems with it.
Let us know if you figure out what it was.

I'll mark this solved for now.

This website is proudly hosted on Crocweb Cloud Website Hosting.