Jump to content



Photo
- - - - -

OSC 2.3.1 - How do I get the bottom footer?


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1   nedragdnuos

nedragdnuos
  • Members
  • 52 posts

Posted 12 February 2011 - 19:48

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!

#2   nedragdnuos

nedragdnuos
  • Members
  • 52 posts

Posted 25 March 2012 - 02:38

Long time for a bump, but has anyone had success in getting the footer to reappear with counter and page date etc.

Cheers!

#3   toyicebear

toyicebear
  • Community Sponsor
  • 6,399 posts

Posted 25 March 2012 - 03:29

There are 2 files you can look at: includes/footer.php and includes/template_bottom.php

#4   nedragdnuos

nedragdnuos
  • Members
  • 52 posts

Posted 26 May 2012 - 06:46

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">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td>
<td align="right" class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</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">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</div>
<div class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</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">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</div>
<div class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</div>
<p align="center"><?php echo FOOTER_TEXT_BODY; ?></p>

<?php



Any hints or suggestions would be appreciated.

Thanks in advance!

#5   burt

burt

    Vanquisher of Demons

  • Community Team
  • 9,748 posts

Posted 26 May 2012 - 08:22

You need to learn the grid system to enable you to place grids side by side.

http://www.clubosc.c...ga-classes.html
IF YOU MAKE A POST REQUESTING HELP...please state the exact version of osCommerce that you are using. THANKS
 
Responsive osCommerce, join in:
http://forums.oscomm...rom-the-get-go/

--
Making your shop better, one osCommerce module at a time - get in touch, or get my newsletter every 1st of the month.
 
Big Bang Templates for 2.3.4