Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

October 04, 2022, 10:45:32 PM

Login with username, password and session length
Members
  • Total Members: 3848
  • Latest: rrolle
Stats
  • Total Posts: 193513
  • Total Topics: 21092
  • Online today: 72
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 66
Total: 66

Author Topic: Last post by?  (Read 6727 times)

0 Members and 1 Guest are viewing this topic.

Asshandler

  • Guest
Re: Last post by?
« Reply #10 on: January 08, 2007, 02:52:26 PM »
Code: [Select]
$result=ssi_recentTopics(10,array(15),'return');

echo '<ul style="padding-left: 10px;">';
foreach($result as $my){
  echo '<Li>'.$my['link'];
  if(!$my['new'])
    echo ' <a href="'.$my['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
echo ' <br />';
  echo ' ',$my['time'],'</Li>';
echo ' <hr>';
}
echo '</UL>';
echo'</center>';
echo '<span class="smalltext"></span>';

Where in there should the
Code: [Select]
', $topic['poster']['link'], ' go?
« Last Edit: January 08, 2007, 03:11:12 PM by Asshandler »

Asshandler

  • Guest
Re: Last post by?
« Reply #11 on: January 08, 2007, 09:25:54 PM »
Here's what I've got right now... no errors, but no username appearing either...

Code: [Select]
$result=ssi_recentTopics('10', NULL, 'array');

echo '<ul style="padding-left: 10px;">';
foreach($result as $my){
  echo '<Li>'.$my['link'];
  if(!$my['new'])
    echo ' <a href="'.$my['href'].'"><img border="0" src="'.$settings['images_url'].'/'.$context['user']['language'].'/new.gif" alt="new" /></a> ';
echo ' <br />';
  echo ' <span class="smalltext">
',$my['time'],' by ', $topic['poster']['link'], '
</span>
</Li>';
echo ' <hr>';
}
echo '</UL>';
echo ' <div align="center"><span class="smalltext">';
ssi_whosOnline();
echo' </span></div></center>';



Any ideas?  I know I'm missing something, just not sure what.
« Last Edit: January 08, 2007, 10:44:05 PM by Asshandler »

Asshandler

  • Guest
Re: Last post by?
« Reply #12 on: January 09, 2007, 12:29:27 PM »
Bump

I'm almost certain this is going to be a real simple thing and I'm going to feel like a fool for not seeing it.  :p

Offline rebelrose

  • Friends
  • *
  • Posts: 945
Re: Last post by?
« Reply #13 on: January 09, 2007, 12:33:40 PM »
should there not be a reference to the member or something along those lines to show the member that posted  ???

if you look in your code where you have posted by there is no reference for the ssi to pull up the member that posted.
« Last Edit: January 09, 2007, 12:54:17 PM by RebelRose »

othersi

  • Guest
Re: Last post by?
« Reply #14 on: January 09, 2007, 01:45:16 PM »
On a chance, looking at the code you're using Steve... I just changed your...  ', $topic['poster']['link'], ' .... code to  ...', $my['poster']['link'], ' ... and it works.
« Last Edit: January 09, 2007, 02:01:48 PM by othersi »

Asshandler

  • Guest
Re: Last post by?
« Reply #15 on: January 09, 2007, 03:14:54 PM »
So simple... *smack*

Thank you.