egnegron Posted July 16, 2003 Share Posted July 16, 2003 i have frames how would i make all links open in "mainFrame" or is this not possible??? please help. -E :?: :cry: - I NOW KNOW THAT I KNOW MUCH LESS THAN I THOUGHT I ONCE DID. Link to comment Share on other sites More sharing options...
Rumble Posted July 16, 2003 Share Posted July 16, 2003 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 More sharing options...
egnegron Posted July 18, 2003 Author Share Posted July 18, 2003 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 More sharing options...
Rumble Posted July 18, 2003 Share Posted July 18, 2003 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.