Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1139
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

sp_recent displaying topic author instead of last poster?

Started by Adjacent, October 12, 2011, 10:14:40 PM

Previous topic - Next topic

0 Members and 7 Guests are viewing this topic.

Adjacent

Quote from: AngelinaBelle on November 03, 2011, 11:57:55 AM
Yes, when you do a little reading and coding on your own, you will very quickly learn to track down syntax errors.

The changes you just made in SSI.php -- did you make them in
function ssi_queryPosts, or in ssi_recentTopics?

All the SSI.php changes should be in function ssi_recentTopics

Sorry. my mistake. Heh, made the changes in ssi_queryPosts. I corrected it now and that error is gone, however the Recent Topics block still displays the last poster... :(

Maybe I've made another error? I looked through it and it all looks right. If you could be so kind as to have a quick look for me?

Click the banner above to see what all television-watching cats are talking about!

Adjacent


Click the banner above to see what all television-watching cats are talking about!

AngelinaBelle

Here's how I would approach a problem like this.
1) I would create a new custom php block, because it is an easy way to test the SSI file right inside my forum
2) In that custom php block, I would call ssi_recentTopics. Use the same kind of parameters you would be using from your recent topics block -- number of posts, included or excluded boards, if any, and 'array' output.

3) Using the returned array from  ssi_recentTopics, print out just the stuff you care about -- the stuff you added.
* subject, all the ['topic']['poster'] stuff you just added, id_msg.

Remember, there is a differencee between $posts[$i]['topic]['poster']['link'] and $posts[$i]['poster']['link'] -- merely because different information is stored in those two different locations.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

ccbtimewiz

In your PortalBlocks.php file,

Find:
if ( $parameters['type'] = 'Topics' )

Replace:
if ($parameters['type'] == 'topics')

Adjacent

#24
Quote from: Classic Sonic on November 15, 2011, 12:04:11 PM
In your PortalBlocks.php file,

Find:
if ( $parameters['type'] = 'Topics' )

Replace:
if ($parameters['type'] == 'topics')


Thanks for your time and response, it was an honest effort too. However it seems this did not fix the box, its still displaying the last poster.

Box here: http://www.blastbox.co.uk/forum/

Also, I thank you for all your help AngelinaBelle but I'm just about done with all of this trouble. What a headache over a little box...   :-[

Click the banner above to see what all television-watching cats are talking about!

ayekuf

Shame there is no fix for this, really wanted the same feature :(

Adjacent


Click the banner above to see what all television-watching cats are talking about!