nedragdnuos Posted February 12, 2011 Share Posted February 12, 2011 Hi all, Im just playing around with OSC 2.3.1 on my wamp setup in preparation for an upgrade from 2.2rc and I was wondering how do I go about getting the bottom footer to appear with the page counter and date and time as per the previous version. Some of the code appears to be in the 2.3.1 php pages Ive looked at but I have no idea why it isnt showing up. The database in 2.3.1 shows the counter log as per 2.2rc and seems to be recording the page hits. Any help or advise would be appreciated. Regards! Link to comment Share on other sites More sharing options...
nedragdnuos Posted March 25, 2012 Author Share Posted March 25, 2012 Long time for a bump, but has anyone had success in getting the footer to reappear with counter and page date etc. Cheers! Link to comment Share on other sites More sharing options...
♥toyicebear Posted March 25, 2012 Share Posted March 25, 2012 There are 2 files you can look at: includes/footer.php and includes/template_bottom.php Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
nedragdnuos Posted May 26, 2012 Author Share Posted May 26, 2012 Hi again everyone, I havnt looked at this until now but this is my code for "TRYING" to add the footer date time and stats back to catalog\includes\footer.php for osc 2.3.1 It kinda works and the stats are there in plain boring text, but there is no style as per the header for some reason, it just seems to nest at the bottom of the left column for some reason. I have a strange feeling that I am missing some sort of link to the stylesheet.css and since I am not a coder and not too sure if I need to add left and right statements in some css comment in the stylesheet - although having said that the.footer remark does exist in the stylesheet as follows: TR.footer { background: #bbc3d3; } TD.footer { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #bbc3d3; color: #ffffff; font-weight: bold; } So anyways here is the the old code I have been working on converting from table to <div>: <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td height="25" class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> This is the new code that I converted to <div> but not sure if it may be 100% <div id="footer"> <div class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </div> <div class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </div> And here is the code it nests between in the mentioned file catalog\includes\footer.php : require(DIR_WS_INCLUDES . 'counter.php'); ?> <div class="grid_24 footer"> <div id="footer"> <div class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </div> <div class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </div> <p align="center"><?php echo FOOTER_TEXT_BODY; ?></p> <?php Any hints or suggestions would be appreciated. Thanks in advance! Link to comment Share on other sites More sharing options...
burt Posted May 26, 2012 Share Posted May 26, 2012 You need to learn the grid system to enable you to place grids side by side. http://www.clubosc.com/960-grid-tutorial-%E2%80%93-understanding-alpha-and-omega-classes.html Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.