Rousie Posted November 11, 2007 Posted November 11, 2007 I am simply trying to incorporate a link in the Information Box, which will then display the link actually IN the OsC page (Like between the left, right, and top columns) Is this possible? I've got the link sorted, but when clicked, it takes me out of my store and to the selected link.... I would like the page to display, but stay in OSC... Any help would be appreciated, Dean
Rousie Posted November 11, 2007 Author Posted November 11, 2007 Oh, i'm trying to link my forum main page into OSC, and keep it in OSC, so it looks better :)
germ Posted November 11, 2007 Posted November 11, 2007 Care to post a link so someone can see what you're talking about? :unsure: What you ask doesn't seem too difficult a task on the surface... If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Rousie Posted November 11, 2007 Author Posted November 11, 2007 The Store: Here The Forum: Here I'd like to click the Forum Links (Which are located at the top and in the info box) and then have the forum display in the middle of the OSC store, keeping the categories, info boxes in tact. Dean
germ Posted November 11, 2007 Posted November 11, 2007 If I understand what you want, we'd have to use an iframe. That's as close as I can come, I think. Please post the PHP code for your infobox (between "CODE" tags, please) and I'll see what I can cook up. I'm not real sure what you'll end up with. It might not be what you want. I've not coded an iframe before but there's a first time for everything... :lol: Unless someone else who reads this has a better idea... :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Rousie Posted November 11, 2007 Author Posted November 11, 2007 Not sure what you are asking for mate? Information.php (in the boxes folder)?
germ Posted November 11, 2007 Posted November 11, 2007 Yes, please. Between "CODE" tags if you can as it preserves formatting. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Rousie Posted November 11, 2007 Author Posted November 11, 2007 <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href=" http://forums.crnproducts.co.uk">Forums</a><BR>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //-->
germ Posted November 11, 2007 Posted November 11, 2007 OK. Before you begin, make a backup copy of the infobox.php file as it is now so you can get back the original content quickly if need be. In your /catalog folder of your store, create a file called forums.html In this /catalog/forums.html file, place this code: <html> <body> <iframe src ="http://forums.crnproducts.co.uk" marginheight="150" marginwidth="150"></iframe> </body> </html> In your infobox.php code, this line: '<a href=" http://forums.crnproducts.co.uk">Forums</a><BR>' . Change to: '<a href=" http://www.crnproducts.co.uk/catalog/forums.html">Forums</a><BR>' . And cross your fingers..... :blink: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted November 11, 2007 Posted November 11, 2007 On second thought... That won't work. <_< I'll have to think about this a while. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Rousie Posted November 11, 2007 Author Posted November 11, 2007 Was getting all excited then :) Seen it done here: Kingston 's Mem Configurator in an OsC Install....
germ Posted November 11, 2007 Posted November 11, 2007 Getting the iframe in there looks easy. It's the turning it off and on that I can't quite see a way to do. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted November 12, 2007 Posted November 12, 2007 What do you think about taking the forums link out altogether, and having a window to it on all the time? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Gauravs Posted November 12, 2007 Posted November 12, 2007 Yes it is possible, but considering your forum has google ads etc, on left, and its own header / footer, you are asking for too many changes in code (and those would be in Forum side, not OSC). I know we can get forums index page loaded within OSC, but you would be dealing with 2 headers, links, ads .. all in all its going to be bit chaotic. Cheers GS Best Regards,Gaurav
germ Posted November 12, 2007 Posted November 12, 2007 No examples that I'm aware of. Another approach is to change the link you have so it opens in a new window instead of over writing your store window. That code would be: '<a href="http://forums.crnproducts.co.uk" target = "_blank">Forums</a><BR>' . Of course, most people would <right-click> on the link and choose a new tab or new window depending on what browser they use anyway. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Rousie Posted November 12, 2007 Author Posted November 12, 2007 I can change and remove the ads, no problem! All i want is the forum address to open up within OsC :D
Gauravs Posted November 12, 2007 Posted November 12, 2007 All i want is the forum address to open up within OsC :D You didn't get my point. Forum has it own code with header (image on top / logo and other stuff) and the footer. So we would end up fitting a large box in a small area, and it would either get chopped, or show up with scroll bars. That I am afraid is going to spoil the looks of your site when forums link is clicked. If you insist that it is what you want, give me some time to test on my sandbox and I shall give you the code for it. Cheers GS Best Regards,Gaurav
Rousie Posted November 12, 2007 Author Posted November 12, 2007 Ah right, thank you for explaining, wasn't quite sure what you meant. Anyway, don't mind scrolling, and i'll alter the forums to fit in with the store if i have to... Thank you for your time and efforts - i anticipate your reply :D Dean
Gauravs Posted November 12, 2007 Posted November 12, 2007 i anticipate your reply :DDean Hi Dean, You would get it by tomorrow around same time :) Just logged in to see new posts that could be handled, and time to signoff, rather late in India now :) Cheers GS Best Regards,Gaurav
germ Posted November 12, 2007 Posted November 12, 2007 Insert this line at the bottom of your /cataloig/index.php file, just above the </body> tag: <iframe src ="http://forums.crnproducts.co.uk" width="100%" height="100%"</iframe> Without creating and using a session variable, I'm not too sure how you can turn it on/off at will. Maybe Gaurav has a better way? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Rousie Posted November 12, 2007 Author Posted November 12, 2007 That seems to extend the page :( Tried implementing the iframe into something like "Shipping & Returns" page.... Works well, but then makes 2 scroll bars, which ideally wanted 1 for the whole page :) Thank you for your help so far! Dean
germ Posted November 12, 2007 Posted November 12, 2007 If you want to experiment with the iframe attributes, look here: HTML <iframe> tag If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted November 12, 2007 Posted November 12, 2007 That seems to extend the page Well, you're displaying TWO web pages. It's either gotta' go longer vertically, or cover up something already there. You can't get something for nothing... :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Gauravs Posted November 13, 2007 Posted November 13, 2007 Gosh .. i forgot about this completely until i logged in a few mins back. Here is what you were looking for I hope I understood your issue correctly and if this gives you the desired output, PM your email id and I shall send you the instructions to achieve it. In case this is not what you wanted ... :( I raise a white flag @ Surrender @ peace... Cheers GS Best Regards,Gaurav
Recommended Posts
Archived
This topic is now archived and is closed to further replies.