Page 1 of 1

Displaying portal block in custom page

Posted: 11. June 2010 04:17
by Bash
Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://www.worldclanleague.com/forum/wcl.php

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hello

I want to move the news block to a custom page, but I've found that the pagination links back to main portal.

Portal = http://worldclanleague.com/forum/portal.php
Custom page (under development) = http://www.worldclanleague.com/forum/wcl.php

Is it possible to have the news block in a custom page and have pagination within the custom page? (if you know what I mean) I am keeping the portal, but I will remove the news block from it eventually.

Thanks in advance...

Glenn

Re: Displaying portal block in custom page

Posted: 11. June 2010 12:51
by Marc
Open portal/block/news.php
Find:

Code: Select all

				$pagination = generate_portal_pagination(append_sid("{$phpbb_root_path}portal.$phpEx"), $total_news, $portal_config['portal_number_of_news'], $start, ($portal_config['portal_show_all_news']) ? 'news_all' : 'news');
Replace with:

Code: Select all

				$pagination = generate_portal_pagination(append_sid("{$phpbb_root_path}wcl.$phpEx"), $total_news, $portal_config['portal_number_of_news'], $start, ($portal_config['portal_show_all_news']) ? 'news_all' : 'news');

Re: Displaying portal block in custom page

Posted: 11. June 2010 13:01
by Bash
Thanks Marc, I love you <3