Displaying portal block in custom page

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Bash
Active Member
Posts: 21
Joined: 11. May 2010 16:46
phpBB.de User: Bash
phpBB.com User: Bash

Displaying portal block in custom page

Post 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
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Displaying portal block in custom page

Post 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');

Topic author
Bash
Active Member
Posts: 21
Joined: 11. May 2010 16:46
phpBB.de User: Bash
phpBB.com User: Bash

Re: Displaying portal block in custom page

Post by Bash »

Thanks Marc, I love you <3
Locked

Return to “board3 Portal 1.0.x - English Support”