shelbyparts Posted September 21, 2007 Share Posted September 21, 2007 I know its been a while but i really am struggling with this.I have created the new page and links to it which you can see here at - http://www.sound-offers.co.uk/store/ I have jalbum configured and installed here with just some sample pics - http://www.sound-offers.co.uk/store/gallery/index.html Now if i add the following lines of code into gallery.php from includes/languages/english the page just loads completely blank. nothing appears. <iframe src="http://www.sound-offers.co.uk/store/gallery/index.html" width="440" height="230"> Please use a browser that supports iframes </iframe> If i comment out the above the page appears as you see it currently.... help! have spnt about 3 days messing around trying various options and i just cant get the thing to appear! I'm having the same problem. It is as if all php code on the page is being ignored. If I add html before the php code, the html works fine. I made sure I edited the filenames.php file as well. How did you fix this? thanks, jes Quote Link to comment Share on other sites More sharing options...
CD Monster Posted September 21, 2007 Share Posted September 21, 2007 shelbyparts, follow my instructions above and that should make things clear.. let me know.. grrrrr.. Quote Music is body splash for the soul. Link to comment Share on other sites More sharing options...
shelbyparts Posted September 21, 2007 Share Posted September 21, 2007 shelbyparts, follow my instructions above and that should make things clear.. let me know..grrrrr.. Thanks, I did that. Here is the site: http://67.53.79.144/catalog/ click "car gallery" under the features box on the left. Any html I enter will work, but it is not processing the php. for example, if I use the iframe tag before <?php , I get a new page with the iframe working, but it is not a page within my OSC site. I cannot get it to post any text or anything within the php tag. here is my code: <?php /* $Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Our Photo Gallery'); define('HEADING_TITLE', 'Our Photo Gallery'); define('TEXT_INFORMATION', '<p align="center">Below is our photo gallery.</br><br> <iframe src="http://67.53.79.144/galleries/index.html" width="440" height="1000"> <!-- adjust W&H and path to your gallery--> Please use a browser that supports iframes </iframe> '); ?> thanks, jes Quote Link to comment Share on other sites More sharing options...
shelbyparts Posted September 21, 2007 Share Posted September 21, 2007 (edited) It seems like problem is with my define tags. Do NAVBAR_TITLE, HEADING_TITLE and TEXT_INFORMATION need to be defined somewhere? jes Edited September 21, 2007 by shelbyparts Quote Link to comment Share on other sites More sharing options...
CD Monster Posted September 21, 2007 Share Posted September 21, 2007 It seems like problem is with my define tags. Do NAVBAR_TITLE, HEADING_TITLE and TEXT_INFORMATION need to be defined somewhere?jes Yes, your language file is not defined.. As your page for the car gallery== use say the conditions.php page, rename to gallery.php or whatever, the you have to create the language page for it.. paste the above code .. name it gallery.php or whatever, drop that in ==includes/languages/english folder, in the newly created catalogs/gallery.php page, replace FILENAME_CONDITIONS to FILENAME_GALLERY that will make this page look for that language file: english/gallery.php --- do you see?? In total - 3 files effected --> catalog/gallery.php, include/filenames.php and include/languages/english/gallery.php Quote Music is body splash for the soul. Link to comment Share on other sites More sharing options...
shelbyparts Posted September 21, 2007 Share Posted September 21, 2007 Yes, your language file is not defined.. As your page for the car gallery== use say the conditions.php page, rename to gallery.php or whatever, the you have to create the language page for it.. paste the above code .. name it gallery.php or whatever, drop that in ==includes/languages/english folder, in the newly created catalogs/gallery.php page, replace FILENAME_CONDITIONS to FILENAME_GALLERY that will make this page look for that language file: english/gallery.php --- do you see?? In total - 3 files effected --> catalog/gallery.php, include/filenames.php and include/languages/english/gallery.php Perfect! Thank You! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2007 Share Posted October 17, 2007 Hey im a little confused, i wonder if you could help me. Ive followed what was said thus far, i used the software to create the gallery, i ftp uploaded it to my shop root and i added the file gallery.php with the code that im supposed to into my 'includes/languages/english' directory. the upload works on its own using the address... http://shop.sosexyscans.com/gallery/index.html but how am i supposed to get it to be part of the actual site? I originaly thought that the gallery.php i added would just need to be called http://shop.sosexyscans.com/gallery.php but alas as you can see that dosnt seem to work, i feel somewhat stupid at the moment since im not sure what ive missed, can you shed some light on this for me? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2007 Share Posted October 17, 2007 (edited) Just to clarrify on what ive got, this is the code for the gallery.php in the shop root. <?php /* $Id: gallery.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_GALLERY); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_GALLERY)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> and this is what i have for the gallery.php in the 'includes/languages/english' folder <?php /* $Id: gallery.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'gallery'); define('HEADING_TITLE', 'gallery'); define('TEXT_INFORMATION', '<p align="left">Welcome to our photogallery</br> <iframe src="http://shop.sosexyscans.com/gallery/index.html" width="768" height="500"> Please use a browser that supports iframes </iframe> '); ?> Edited October 17, 2007 by Telash Quote Link to comment Share on other sites More sharing options...
CD Monster Posted October 17, 2007 Share Posted October 17, 2007 (edited) Did you include that new file: gallery.php in the filenames file: open Incudes/filenames.php - at bottom paste: define('FILENAME_GALLERY', 'gallery.php'); - before the closing ?> That with the language file will have it follow the template.. refer to my post above for install. Monster.. Edited October 17, 2007 by CD Monster Quote Music is body splash for the soul. Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2007 Share Posted October 17, 2007 Did you include that new file: gallery.php in the filenames file: open Incudes/filenames.php - at bottom paste: define('FILENAME_GALLERY', 'gallery.php'); - before the closing ?> That with the language file will have it follow the template.. refer to my post above for install. Monster.. That was it! thanks :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.