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,966
  • Latest: safir45
Stats
  • Total Posts: 195,992
  • Total Topics: 21,323
  • Online today: 557
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 357
  • Total: 357

Topics in board displayed in block...

Started by OIDanTheManIO, November 14, 2005, 03:45:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

criminalmind

Iowamf, what is the code for the modified ssi_recentTopics_hack function?

crip


IchBin


falguni1

this code is  not working only what to do

I want to display topics from board 39.0 only  :-\


global $context, $scripturl;
$result=ssi_ssi_recentTopics(10,array(39.0),'return');
foreach($result as $my){
  echo '<span class="smalltext">'.$my['link'];
  // is this topic new? (assume they are logged in)
if (!$my['new'] && $context['user']['is_logged'])
echo '
                                                <a href="', $scripturl, '?topic=', $my['topic'], '.from', $my['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
echo '<br>';
}
echo '</span>';



IchBin

take out the .0 Only use the number not the decimal number.

falguni1


falguni1


IchBin

Well it goes in a PHP box. If you are using the <?php tags in your code please remove them. If not, please post exactly what you are putting into your PHPbox.

falguni1



global $context, $scripturl;
$result=ssi_ssi_recentTopics(10,array(39.0),'return');
foreach($result as $my){
  echo '<span class="smalltext">'.$my['link'];
  // is this topic new? (assume they are logged in)
if (!$my['new'] && $context['user']['is_logged'])
echo '
                                                <a href="', $scripturl, '?topic=', $my['topic'], '.from', $my['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
echo '<br>';
}
echo '</span>';





I am using this code in php box

IchBin

This line:
$result=ssi_ssi_recentTopics(10,array(39.0),'return');

Needs to be this:
$result=ssi_recentTopics(10,array(39.0),'return');

This website is proudly hosted on Crocweb Cloud Website Hosting.