Link to Portal from Forum

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
King Tutch
Active Member
Posts: 3
Joined: 26. June 2009 19:01

Link to Portal from Forum

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

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Link to Portal from Forum

Post by Kevin »

Yes, check the edits in the includes/functions.php. And check that you've uploaded the edited file.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
King Tutch
Active Member
Posts: 3
Joined: 26. June 2009 19:01

Re: Link to Portal from Forum

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

Ice
Former Team Member
Posts: 359
Joined: 20. January 2008 23:43
Location: England, United Kingdom

Re: Link to Portal from Forum

Post 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 ?
Board3 Portal Dev & English Tech Support

Topic author
King Tutch
Active Member
Posts: 3
Joined: 26. June 2009 19:01

Re: Link to Portal from Forum

Post 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"),
User avatar

Ice
Former Team Member
Posts: 359
Joined: 20. January 2008 23:43
Location: England, United Kingdom

Re: Link to Portal from Forum

Post 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.
Board3 Portal Dev & English Tech Support
Locked

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