Guest Posted November 30, 2007 Posted November 30, 2007 Hi, I am working on an osCommerce project currently and am in need of some major help. It would be greatly appreciated. I need to extend the length of main page to add an image and some text centered below everything. Can I just add it as HTML to the index.php? I know basic PHP but I am still learning. Any help would be awesome. Thanks!
Guest Posted November 30, 2007 Posted November 30, 2007 I used this http://addons.oscommerce.com/info/86
Guest Posted December 1, 2007 Posted December 1, 2007 I used this http://addons.oscommerce.com/info/86 hm.. i'm skeptical about trying that. i don't think i have a default.php...is that the same as index.php?
♥geoffreywalton Posted December 1, 2007 Posted December 1, 2007 The answer is yes you can, but I suspect it would not give the effect you want. Rather than wait for 15 hrs for a response I hope you have already tried it. Probably /catalog/includes/footer.php is the place to put this code if yopu want it on every page. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
vickigh Posted December 1, 2007 Posted December 1, 2007 Hi, I am working on an osCommerce project currently and am in need of some major help. It would be greatly appreciated. I need to extend the length of main page to add an image and some text centered below everything. Can I just add it as HTML to the index.php? I know basic PHP but I am still learning. Any help would be awesome. Thanks! you should be able to use the banner manager to add banners below the footer on the main page. This might add them to every page though as I have not tried it yet. You could imbed the text in the banner. -Vicki-
Guest Posted December 1, 2007 Posted December 1, 2007 you should be able to use the banner manager to add banners below the footer on the main page. This might add themto every page though as I have not tried it yet. You could imbed the text in the banner. -Vicki- yeah.. i only want it on the main page
germ Posted December 1, 2007 Posted December 1, 2007 Your main page (index.php) probably ends something like this: <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Change to: <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> <center> PUT YOUR NEW ITEMS HERE </center> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 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 >
Guest Posted December 2, 2007 Posted December 2, 2007 Your main page (index.php) probably ends something like this: <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Change to: <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> <center> PUT YOUR NEW ITEMS HERE </center> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> but wouldn't that change all the pages? i only want it on the main page
germ Posted December 2, 2007 Posted December 2, 2007 What do you consider "all the pages"? :unsure: It won't show on your "Contact Us", "Login", "Shipping & Returns", etc., pages. 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 >
Guest Posted December 2, 2007 Posted December 2, 2007 i mean it should only appear on the main page... the page that site opens on but not any of the other ones... so i guess that would work... i'll try it out. Thanks!
germ Posted December 2, 2007 Posted December 2, 2007 Maybe you want this: <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> <?php if ( $cPath == '' ) { ?> <center> PUT YOUR NEW ITEMS HERE </center> <?php } ?> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> That will only display it if no categories are selected (I think). 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 >
Guest Posted December 2, 2007 Posted December 2, 2007 it's weird.... when i add that... for some reason the whole format of the page changes... it is no longer centered...and the fonts are gone.. weird..
germ Posted December 2, 2007 Posted December 2, 2007 If you posted (or PM'd me) a link to the page, I might be able to tell you why. Offhand, I'd say your have HTML errors (mismatched <table> tags most likely). 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.