Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how tomake a framelink sitewide


egnegron

Recommended Posts

Hi!

 

Open catalog/includes/functions/html_output.php and around line 38 find the following code;

 

    if (tep_not_null($parameters)) {

     $link .= $page . '?' . $parameters;

     $separator = '&';

   } else {

     $link .= $page;

     $separator = '?';

   }

 

and replace with..........

 

    if (tep_not_null($parameters)) {

     $link .= $page . '" target="mainframe' . '?' . $parameters;

     $separator = '&';

   } else {

     $link .= $page . '" target="mainframe';

     $separator = '?';

   }

 

Hopefully this should work but test the whole site and all processes!!

 

Back up before you do![/code]

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

it does not fully work...

 

Privacy Notice

Conditions of Use

Contact Us

 

link

but none of the others work or even open in the correct window :idea: :idea: :idea: :idea:

- I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID.

 

 

 

Link to comment
Share on other sites

Undo the changes I told you to make in the html_output.php.

 

Then in that same file around line 69 find the following line

 

    return $link;

 

 

and change to...........

 

   $link .= '" target="mainFrame'; 

   return $link;

 

 

Fingers crossed this should now make all links load in mainFrame!

 

One note, links defined in files using '<a href=".....' instead of tep_href_link, will manually need the 'target="mainFrame"' code added to them!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...