sunshynecraftsbeads Posted July 15, 2011 Share Posted July 15, 2011 Hi, I just have a question regarding my oscommerce information at the bottom of the page. For some reason it is over to the right and I need to move my space bar to get to it. Can someone explain how I can correct this? I have not made any changes to any files other than adding a box to show a logo on the right side of the main page. RE: Main Page of Website Any advise would be greatly appreciated. Thank you in advance. Tracie Link to comment Share on other sites More sharing options...
♥mattjt83 Posted July 15, 2011 Share Posted July 15, 2011 Hi Tracie, I'm not *positive* about this BUT when looking at the source for your index.php, I noticed there are 56 <div> and only 55 </div>. If there is a missing </div> it can really screw up the page. I'm not sure where it is but I would start by looking around at the latest edit you did and work back from there until you find it. Remember to always backup before making any edits so you can just upload the original if you mess anything up. Matt Matt Link to comment Share on other sites More sharing options...
panicgripdesigns Posted July 15, 2011 Share Posted July 15, 2011 Hi, I just have a question regarding my oscommerce information at the bottom of the page. For some reason it is over to the right and I need to move my space bar to get to it. Can someone explain how I can correct this? I have not made any changes to any files other than adding a box to show a logo on the right side of the main page. RE: Main Page of Website Any advise would be greatly appreciated. Thank you in advance. Tracie It is very concerning that your DOCTYPE is declared twice, and you have javascript ABOVE your <html> tag. It should be between the <head></head> tags Also, your footer is inside the <div> for your right hand column. A little knowledge of php goes a long way. Link to comment Share on other sites More sharing options...
sunshynecraftsbeads Posted July 15, 2011 Author Share Posted July 15, 2011 HI Vince, Thank you for the information. I am unsure how to get rid of or make changes you mentioned. I do not see the doctype in the index file ? Also, I was not aware that the 2.3.1 version had a right column. Am I mistaken. If so please advise so I can fix it. Thank you so much in advance Vince. Your assistance would be greatly appreciated. Best Regards Tracie Link to comment Share on other sites More sharing options...
panicgripdesigns Posted July 15, 2011 Share Posted July 15, 2011 Alright Tracie, It looks like you lost a </div> in your template_bottom.php mine: <?php } if ($oscTemplate->hasBlocks('boxes_column_right')) { ?> <div id="columnRight" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?>"> <?php echo $oscTemplate->getBlocks('boxes_column_right'); ?> </div> <?php } ?> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> I can replicate the issue if I remove the </div> under ColumnRight see: Here as for the doctype Did you add anything to application_top.php ? the <script>s you added, should be between the <head></head> tag pair, and the doctype you should keep is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> A little knowledge of php goes a long way. Link to comment Share on other sites More sharing options...
sunshynecraftsbeads Posted July 15, 2011 Author Share Posted July 15, 2011 Hi Vince, You are amazing for helping me. Thank you, thank you, thank you. 1. I have looked at template_bottom.php and mine is not like yours at all however I added a addon which now makes it look like this. I have had this addon on my website for about 6 weeks now and this problem just came to life last night or early today. <?php/* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ ?> </div> <!-- bodyContent //--> <?php if ($oscTemplate->hasBlocks('boxes_column_left')) { ?> <div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>"> <?php // BOF: WebMakers.com Added: Down for Maintenance if ((DOWN_FOR_MAINTENANCE == 'false') || ((DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE_COLUMN_LEFT_OFF == 'false')) ) { echo $oscTemplate->getBlocks('boxes_column_left'); } // EOF: WebMakers.com Added: Down for Maintenance ?> </div> <?php } if ($oscTemplate->hasBlocks('boxes_column_right')) { ?> <div id="columnRight" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?>"> <?php // BOF: WebMakers.com Added: Down for Maintenance if ((DOWN_FOR_MAINTENANCE == 'false') || ((DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE_COLUMN_RIGHT_OFF == 'false')) ) { echo $oscTemplate->getBlocks('boxes_column_right'); } // EOF: WebMakers.com Added: Down for Maintenance ?> </div> <?php } ?> <?php // BOF: WebMakers.com Added: Down for Maintenance if ((DOWN_FOR_MAINTENANCE == 'false') || ((DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE_FOOTER_OFF == 'false')) ) { require(DIR_WS_INCLUDES . 'footer.php'); } // EOF: WebMakers.com Added: Down for Maintenance ?> </div> <!-- bodyWrapper //--> <?php echo $oscTemplate->getBlocks('footer_scripts'); ?> </body> </html> 2.I have added 2 addons to my application_top.php. a) Security Pro by FWR Media B) Down for Maintenance. Both have been on my store for over a month. I can't see where the problem is. I checked public_html/XXXXXX/includes/application_top.php and public_html/includes/application_top.php Yesterday my site was fine and the only changes I made were made a new box and put a gray logo in the box ( right side ). I then placed a flag on the left side of the main page. No other changes were made other then adding new products to my store. Oh I also rounded corners on the boxes. I am totally lost here. Any thought or advice Vince ? If not that's okay I totally understand. Time and knowledge is valueable. Tracie Link to comment Share on other sites More sharing options...
panicgripdesigns Posted July 15, 2011 Share Posted July 15, 2011 What would happen if you added another </div> before <?php echo $oscTemplate->getBlocks('footer_scripts'); ?> ?? A little knowledge of php goes a long way. Link to comment Share on other sites More sharing options...
sunshynecraftsbeads Posted July 15, 2011 Author Share Posted July 15, 2011 Hi Vince, I tried what you suggested and it did not change anything ??? Thank you, Tracie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.