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]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Number of last topic

Started by tomeh, May 15, 2012, 04:52:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tomeh

Hi how to increase the number of displayed topics in the last portal, say from 32 to 100
Serwis infomiasto.eu - poradniki i przewodniki tematyczne

phantomm

You have in block settings how many posts to show

tomeh

Entering 100 will get everyone up to 32
Serwis infomiasto.eu - poradniki i przewodniki tematyczne

phantomm

Well, I tried to display 100 latest topics/posts and it works for me...
But maybe someone else will know what causes the issue

tomeh

I do not know whether we are talking about the same block in terms of Section News - which displays a summary topics after determining how many letters to them to be seen
Serwis infomiasto.eu - poradniki i przewodniki tematyczne

andy

Might be related to  SMF deciding what is 'recent' and what is old - maybe you only have 32 'recent' topics. There was another post here about it recently.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


phantomm

Quote from: tomeh on May 15, 2012, 06:52:58 AM
I do not know whether we are talking about the same block
What is name of this block (in settings)?

tomeh

#7
The name of the block are:

Board News

...................

I think I have a solution

It should be noted there all forums in the settings - otherwise displays only 32 subjects also from all for

Take a look - so it is somehow made
Serwis infomiasto.eu - poradniki i przewodniki tematyczne

AngelinaBelle

Yes.

This is something that comes up frequently in boardnews and in recent posts/topics.
If you are using only one board for this, you will see the problem.

Here is why:
How does the block decide how far back in time to look for the earliest post for the block?
In recent/posts topics, this decision is made in SSI.php, and you can see the posts about it.

In boardnews, that decision is made in function sp_boardNews.

The answer is 'min_msg_id' => $modSettings['maxMsgID'] - 45 * min($limit, 5),
If there were not some limit, the query would have to check all the way back to the VERY FIRST post on your forum.
For new forums, this is not a problem.  For a very old forum with lots of old posts, this would slow down every page with this block on it, and make extra CPU on the database server.

That means it can only ever check the most recent 45*5 = 225 posts.  If your forum members have made 226 posts on other boards which are newer than every post on the "boardnews" board, then you will even see 0 posts in boardnews!

To fix the problem, replace 45 with some higher number.  Compare the rate of adding new posts to the other boards to the rate of adding new posts to the "boardnews" boards.  Pick the smallest number that will work well for your forum.

Good luck!
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?