Add link to us to simple portal

Download and support for PhpBB3 Simple Portal
Locked
User avatar
Terr0r
BBCoder V
BBCoder V
Posts: 339
Joined: 04 May 2011, 00:47
BBCodes: 100
Location: The Netherlands
Contact:

Add link to us to simple portal

Post by Terr0r »

Add link to us to simple portal

I try to add link to us from Board3 Portal to the simple portal

I have this in the portal.php

Code: Select all

//Begin link to us 

//doing the easy way ;)
$u_link = generate_board_url();

// Assign specific vars
$template->assign_vars(array(
	'S_DISPLAY_LINK_US'	=> true,
	'LINK_US_TXT'		=> sprintf($user->lang['LINK_US_TXT'], $config['sitename']),
	'U_LINK_US'			=> '<a&nbsp;href="' . $u_link . '"&nbsp;' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"' : '' ) . '>' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '</a>',
));
//End link to us
I have this in the simpleportal_body.html

Code: Select all

    <div class="forabg">
       <div class="inner"><span class="corners-top"><span></span></span>
          <ul class="topiclist">
             <li class="header">
                <dl class="icon">
                   <dt>{L_LINK_US}</dt>
                </dl>
             </li>
          </ul>
        <div class="sidemenu_custom">
          <ul class="topiclist forums">   
              <li>
	{LINK_US_TXT}<br /><br />
	<input type="text" tabindex="9" size="28" value="{U_LINK_US}" class="inputbox autowidth" onclick="this.focus();this.select();" /><br />        
               </div></li>
            </ul>
       </div>
       <span class="corners-bottom"><span></span></span></div>
    </div>	
I have this in the simple_portal.php language file

Code: Select all

	// links
$lang = array_merge($lang, array(	
	'LINK_US'		=> 'Link to us',
	'LINK_US_TXT'	=> 'Please feel free to link to <strong>%s</strong>. Use the following HTML:',
));	
this is the orginal code from the portal.php

Code: Select all

<?php

if (!defined('IN_PHPBB') || !defined('IN_PORTAL'))
{
   exit;
}

//doing the easy way ;)
$u_link = generate_board_url();

// Assign specific vars
$template->assign_vars(array(
	'S_DISPLAY_LINK_US'	=> true,
	'LINK_US_TXT'		=> sprintf($user->lang['LINK_US_TXT'], $config['sitename']),
	'U_LINK_US'			=> '<a&nbsp;href="' . $u_link . '"&nbsp;' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"' : '' ) . '>' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '</a>',
));

?>
but if I leave this in the portal.php

Code: Select all

if (!defined('IN_PHPBB') || !defined('IN_PORTAL'))
{
   exit;
}
then I get a white screen so I have get that out now from the code

to so far I have this
linkus.png
I hope that someone can help me whit this

Already thanks for the help

Greets Terr0r


Last bumped by Terr0r on 10 Nov 2011, 18:26.
If you can't fix it with ducktape you ain't using enough
For my MODS and BBCodes or other things that I have made take a look here
Locked