Page 1 of 2

Top Five on Portal

Posted: 21 Aug 2011, 09:41
by Stoker
Top Five on Portal
Written by Stoker

Putting the Top Five mod on the portal page is quite easy. You need to have the Top Five mod installed.

Open portal.php
Find:

Code: Select all

// Assign index specific vars
Before add:

Code: Select all

//-- mod: top five ---------------------------------------------------------//
	include($phpbb_root_path . 'includes/top_five.' . $phpEx);
//-- end: top five ---------------------------------------------------------//
Open styles/prosilver/template/simpleportal_body.html
Find:

Code: Select all

<!-- End Welcome -->
After add:

Code: Select all

<!-- INCLUDE top_five_body.html -->

error on top five

Posted: 17 Jan 2012, 03:06
by badger
When I edit the files in the top five for the portal after refreshing and cache. it gives me an error message saying that top_five_body.html doesn't exist.

error on top five

Posted: 17 Jan 2012, 07:13
by Stoker
Top five is not included in the portal??

error on top five

Posted: 17 Jan 2012, 08:02
by badger
I don't see it anywhere

error on top five

Posted: 17 Jan 2012, 08:05
by Stoker
No, thats my point. Its not included in the portal so why would you expect it to work in the portal?

error on top five

Posted: 17 Jan 2012, 08:09
by badger
you have instructions here viewtopic.php?f=37&t=1345 on how to set it up on the portal

Top Five on Portal

Posted: 17 Jan 2012, 11:03
by Stoker
Okay, then lets merge the topics.

For this to work you need to have the top five mod installed. So you need to upload the files from that mod else it wont work.

Top Five on Portal

Posted: 17 Jan 2012, 19:37
by badger
sorry stroke I confused myself for the top stats mod and top 5 mod. What I wanted was the 5 recent active topics in the portal of top stats mod.

Top Five on Portal

Posted: 17 Jan 2012, 19:40
by Stoker
Then you need to do those edits the the portal php and html file.

Top Five on Portal

Posted: 17 Jan 2012, 22:51
by badger
What exactly would I need to add in order to add the 5 recent active topics in my portal?