top 5 problem on simple portal

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
If not your topic may be ignored or locked!

top 5 problem on simple portal

Post by neuropass »

Hi guys,

I just noticed i weird behavior of the top 5 in the simple portal. I have the top 5 installed for my index as well.

Sometimes instead of being top 5 it becomes top 10!!!

I have to purge the cache or log out log in to have it top 5 again. Why does it do that? Is there a fix for it to have it locked on top 5?

Re: top 5 problem on simple portal

Post by Stoker »

*Open index.php
Find:

Code: Select all

//-- mod: top five ---------------------------------------------------------//
	include($phpbb_root_path . 'includes/top_five.' . $phpEx);
//-- end: top five ---------------------------------------------------------//
Replace with:

Code: Select all

//-- mod: top five ---------------------------------------------------------//

	include($phpbb_root_path . 'includes/portal/top_five.' . $phpEx);

//-- end: top five ---------------------------------------------------------//

Re: top 5 problem on simple portal

Post by neuropass »

thnaks stoker that didn't work. it was removing the topics in the index.. so i actually changed the code in portal.php and used the one for the index. it fixed it.. well it seems so for now.. :D

Re: top 5 problem on simple portal

Post by Stoker »

You're right. That is the way to do it. The simple portal doesnt use the topics thing from the top five mod.