Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    102
    Plugin Contributions
    0

    Default phpbb opening in new page

    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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: phpbb opening in new page

    Copy the /includes/modules/sideboxes/information.php file for your template override folder.

    Find:
    Code:
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    Fairly certian that this will work:
    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.

  3. #3
    Join Date
    Dec 2007
    Posts
    102
    Plugin Contributions
    0

    Default Re: phpbb opening in new page

    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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: phpbb opening in new page

    Here are the 4 pre-defined values for target=

    Code:
        * "_blank"
        "_parent"
        "_self"
        "_top"
    Blank opes a new window so try the other 3

 

 

Similar Threads

  1. Categories without opening a new page
    By nao in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jun 2008, 01:58 AM
  2. View Subcategories without opening new page?
    By emilfalcon in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Jan 2008, 12:52 AM
  3. Banner clicks not opening new page
    By Bryony in forum Basic Configuration
    Replies: 2
    Last Post: 5 Jul 2006, 09:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg