Page 1 of 1

Link to Portal from Forum

Posted: 26. June 2009 19:06
by King Tutch
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: http://pwndclan.jamesdwilson.net

What have you done before the problem was there?


What have you already tryed to solve the problem?
Tried editing breadcrumbs.html. When I created link: <a href="portal.php">Portal</a>, it worked but users were logged out when they clicked. I tried adding <a href="{U_PORTAL}">{L_PORTAL}</a>, but the link just directs to the index page.

Description and Message
I want to add a perma link to the breadcrumbs bar that points to the portal page. I'm having troubles getting it to work correctly. Here's my breadcrumbs.html file:

Code: Select all

	<table class="tablebg breadcrumb" width="100%" cellspacing="{$CA_SPACING}" cellpadding="0" style="margin-top: 5px;">
	<tr>
		<td class="row1">
			<p class="breadcrumbs"><a href="{U_PORTAL}">{L_PORTAL}</a> || <a href="{U_INDEX}">{L_INDEX}</a><!-- BEGIN navlinks --> &#187; <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></p>
			<p class="datetime">{S_TIMEZONE}</p>
		</td>
	</tr>
	</table>
Like I said above, when you click on the Portal link, it just directs you to the board index page. Any ideas?[/i]

Re: Link to Portal from Forum

Posted: 26. June 2009 21:29
by Kevin
Yes, check the edits in the includes/functions.php. And check that you've uploaded the edited file.

Re: Link to Portal from Forum

Posted: 28. June 2009 01:58
by King Tutch
includes/functions.php

Code: Select all


3735:   $user->add_lang('mods/lang_portal');
3736:   include_once($phpbb_root_path . 'portal/includes/functions.'.$phpEx);
3737:   $portal_config = obtain_portal_config();

3773:   'U_PORTAL'		=> ($portal_config['portal_enable']) ? append_sid("{$phpbb_root_path}portal.$phpEx") : '',
styles/acidtech_tiger/template/breadcrumbs.html

Code: Select all

4:   <p class="breadcrumbs"><a href="{U_PORTAL}">{L_PORTAL}</a> || <a href="{U_INDEX}">{L_INDEX}</a><!-- BEGIN navlinks --> &#187; <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></p>
Everything is uploaded correctly. I've refreshed the cache. I've double and triple checked file paths on the remote server. From the board index, this is what the URL is for the portal link on the breadcrumbs bar (identical to board index link):

http://pwnd-clan.com/index.php?sid=6503 ... 5c80a57f87

Thanks,
James

EDIT: I just noticed that the link works correctly from the portal.php page, but not from the board.

Re: Link to Portal from Forum

Posted: 28. June 2009 02:23
by Ice
According to what I can see, your U_PORTAL variable is not being initialised. I'm not particularly sure why that would be happening. Would it be possible for you to upload your includes/functions.php ?

Re: Link to Portal from Forum

Posted: 28. June 2009 03:04
by King Tutch
Here you go:

http://jamesdwilson.net/personal/functions.zip

The link works fine when i change line 3773 from:

Code: Select all

'U_PORTAL'		=> ($portal_config['portal_enable']) ? append_sid("{$phpbb_root_path}portal.$phpEx") : '',
To:

Code: Select all

'U_PORTAL'		=> append_sid("{$phpbb_root_path}portal.$phpEx"),

Re: Link to Portal from Forum

Posted: 28. June 2009 03:18
by Ice
Hmm that is odd try:

After

Code: Select all

$portal_config = obtain_portal_config(); 
Add

Code: Select all

print_r($portal_config); 
Then go to the forum index, and copy the dumped data here.