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: 1316
  • 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.

Increase of Recent Topics Displayed

Started by cervante, June 08, 2009, 10:42:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cervante

I have searched the site but have not found clear instructions for this request.
I would like to increase the recent topics listing from the default number of 5 to more, much like this site's front page by displaying 10 recent topics.
I have tried modifing the code in SPortal1-1.php and increasing the default number of 5 to 10, but no success.

function sp_recent($parameters, $id, $return_parameters = false)
{
global $context, $txt, $scripturl, $settings, $color_profile;

$block_parameters = array(
'limit' => 'int',
'type' => 'select',
);

if ($return_parameters)
return $block_parameters;

$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 10;


Any suggestions?

SMF 1.1.8
SimplePortal 2.2.2

Eliana Tamerin

Try the block's options. Should be a place that says "Recent Posts or Topics to Display" and a text box there with a number. That's where you specify.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

cervante

A very simple solution. I guess I overlooked it.
You have to forgive me, just switched from TP and so far I have enjoyed this portal much better