balloons Posted March 20, 2008 Posted March 20, 2008 I want to include a brief description about my shop on the main index page to tell people what I sell making sure there are keywords included! Simple, I can do this except for some reason the writing does not stretch all the way across to level up with the product pictures and I dont know why? I have played around with the css file that I made along with the file in Dreamweaver but this does not change anything so am pretty stuck again. Can anyone tell me what file I need to edit to make the text go across the page? Cheers.
germ Posted March 20, 2008 Posted March 20, 2008 Do you remember making a transparent image for images/table_background_default.gif? :unsure: You have a 200 x 50 (transparent) image up in that corner. Put your mouse up there and you'll see the mouseover text: Welcome to Twilight Balloons your one stop party shop!<p><p>We stock all types of latex balloons, foil balloons, wedding balloons, soft toys, birthday cards, wedding cards to fun hen night items to name but a few!" title=" Welcome to Twilight Balloons your one stop party shop!<p><p>We stock all types of latex balloons, foil balloons, wedding balloons, soft toys, birthday cards, wedding cards to fun hen night items to name but a few! That's why the text won't go across the page. :blush: 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 >
balloons Posted March 20, 2008 Author Posted March 20, 2008 Yes I remember that and I made a 1x1 sized pixel to get rid of the previous default image. However, I have just tried deleting the image and now the text gets printed the same on the left and the right where the image was? Have you got any idea how I can get rid of the image and be able to mahe the text go right across?? Thanks germ.
germ Posted March 20, 2008 Posted March 20, 2008 Look in your in /osc/index.php for this code: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Change to this: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <!-- commented out 20/03/08 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> //--> 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 >
balloons Posted March 20, 2008 Author Posted March 20, 2008 Cheers, but as always I seem to make the most simple tasks difficult!! I opened the right index file and found the right code: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> and did as you said and changed it to: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <!-- commented out 20/03/08 <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> //--> but when I opened my page I got an error, so I re-did it and have same same error. I looked through the rest of the file and found another <td class etc so tried changing that one instead and got the error again, so finally I tried replacing both to see if that would work, but nope could not get it to work! Any pointers I am missing? Sorry for not being quick on the uptake!!!!
germ Posted March 20, 2008 Posted March 20, 2008 From what I can tell, the edit you did shouldn't have caused an error. Post the code in question, and 10 or so lines on both sides (between CODE tags if possible). Just for grins, what exactly was the error message? :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 >
balloons Posted March 20, 2008 Author Posted March 20, 2008 When I changed the code here is the error message: Warning: main(../includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/*****/public_html/osc/index.php on line 13 Warning: main(../includes/application_top.php) [function.main]: failed to open stream: No such file or directory in /home/*****/public_html/osc/index.php on line 13 Fatal error: main() [function.require]: Failed opening required '../includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/osc/index.php on line 13 and here is the top code with coding either side of the replaced code: <?php if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); ?> <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 . $category['categories_image'], $category['categories_name'], 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><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <?php
germ Posted March 20, 2008 Posted March 20, 2008 I stand by the code change. Making the change I suggested has nothing to do with and shouldn't cause the error. All the change does is "comment out" some of the HTML code. I'm clueless. :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 >
balloons Posted March 20, 2008 Author Posted March 20, 2008 Am clueless myself really! I have tried changing the code a few times to make sure I am doing it correctly but I still get the error! Unless someone knows how to solve this it looks like I will be stuck with it which is a real pain! I use sts templates to make the site so would this be causing a conflict or something somewhere?
germ Posted March 20, 2008 Posted March 20, 2008 I'm not fond of removing original code if it's not necessary. Make a backup of what you have now. Delete this line of code: <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Be sure you get the right line. The last code you posted wasn't what you needed to change. Deleting this line of code has no reason to cause an error. 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 >
balloons Posted March 20, 2008 Author Posted March 20, 2008 Nope still getting the error! I made sure I was deleting the right code which I found way down on about line 300. I have tried deleting it and changing it to cancel it out but always get the same error. Instead I have now put the text on the template using dreamweaver which nearly works OK except for the gap between the bottom of the dreamweaver text and the top of the index.php text! Always has to be difficult with me! Cheers for the help!
germ Posted March 20, 2008 Posted March 20, 2008 When I go to your site, I get no error, and the code is as you want it. Clear your browser cache. 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 March 20, 2008 Posted March 20, 2008 And you're getting the "Do you want to display nonsecure items?" popup when going to SSL because of this code that displays your SSL seal: <p> <a href="http://www.instantssl.com" id="comodoTL">SSL</a> <script type="text/javascript">TrustLogo("http://www.twilightballoons.co.uk/osc/images/secure_site.gif", "SC", "none");</script> Both of those should be HTTPS links. 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.