Hi
How do I stop phpbb opening in a new page when the link is clicked in the information sidebox?
many thanks
AfterHouR
http://www.allgoodideas.co.uk
Hi
How do I stop phpbb opening in a new page when the link is clicked in the information sidebox?
many thanks
AfterHouR
http://www.allgoodideas.co.uk
Copy the /includes/modules/sideboxes/information.php file for your template override folder.
Find:
Fairly certian that this will work:Code:$information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
Code:$information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . BOX_BBINDEX . '</a>';
Last edited by kobra; 11 Jan 2008 at 02:52 PM.
Hi
I have changed the code but it still opens in another window
this is the code
// Forum (phpBB) link:
if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed']) && (PHPBB_LINKS_ENABLED=='true')) {
$information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . BOX_BBINDEX . '</a>';
// or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
// or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
}
Thanks in advance
Kind Regards
AfterHouR
Here are the 4 pre-defined values for target=
Blank opes a new window so try the other 3Code:* "_blank" "_parent" "_self" "_top"