1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

Increase size of calendar navigation ( << & >> )

Discussion in 'General Support' started by ktech, Jun 14, 2005.

Thread Status:
Not open for further replies.
  1. ktech

    ktech New Member

    Hello,

    Unfortunately this code only cycles between 3 months. How can I use my own navigation design beneath a calendar (previous, next and current) while retaining the calendar's ability to cycle between all months? Thank you.


    Code:
     
    <table class=navTable cellspacing=0 cellpadding=0>
    <tr>
    	<td align=left><a href="calendar.php?mo=4&amp;yr=2005"><span><<
    Previous</span></a></td>
    	<td align=center><a href="calendar.php?mo=05&amp;yr=2005"><span>- Current
    -</span></a></td>
    	<td align=right><a href="calendar.php?mo=6&amp;yr=2005"><span>Next >>
    </span></a></td>
    </tr>
    </table>
    
     
  2. Brian

    Brian EPC Developer Staff Member

    You could use PHP to define your own $mo and $yr variables.
     
  3. ktech

    ktech New Member

    Hi Brian, thanks for your fast reply. Would I do this on the page displaying the calendar? Can you demonstrate this for one of the three variables (Eg, next)? Thank you very much.
     
  4. Brian

    Brian EPC Developer Staff Member

    Next would be $mo+1
    Prevoius would be $mo-1

    You'd also need to check the $mo>=1 and $mo<=12 or you'd need to adjust the year too.
     
  5. ktech

    ktech New Member

    Hi Brian,

    I applied the items you mentioned as demonstrated here but this did not work. I am not conversant in PHP.

    <table class=navTable cellspacing=0 cellpadding=0>
    <tr>
    <td align=left><a href="calendar.php?$mo-1&amp;yr-1"><span><<
    Previous</span></a></td>
    <td align=center><a href="calendar.php?mo=05&amp;yr=2005"><span>- Current
    -</span></a></td>
    <td align=right><a href="calendar.php?$mo+1&amp;yr+1"><span>Next >>
    </span></a></td>
    </tr>
    </table>
     
  6. Brian

    Brian EPC Developer Staff Member

    I'm not sure I completely understand what you're trying to do?

    Is it just to make the << and >> larger? Or do you need to devise another system?
     
  7. ktech

    ktech New Member

    Hello Brian,

    Thanks for your help. Please see what I have done with:

    http://sunriseacademy.org/calendar.php

    The custom next, current and previous buttons do not cycle through all the months. What must I do to remedy this problem? Thanks.
     
  8. Brian

    Brian EPC Developer Staff Member

    What I primarily don't understand is why you need to make them "custom". Do the normal navigation arrows not work correctly?
     
  9. ktech

    ktech New Member

    Hi Brian,

    SunRise complained they were too small. That is why I had to modify them.
     
  10. Brian

    Brian EPC Developer Staff Member

    You can modify the size. Look in the theme/default directory for esstyle.css.

    In that file look for:

    .navTableText {
    font-family: Geneva, Verdana, Arial, sans-serif;
    font-size: 9px;
    font-weight: Normal;
    text-decoration: none;
    color: #003366;
    }

    Change the font-size to any size you wish (and any other options too).

    In the Setup Manager, you can change the text for the navigation to match what you're using now.
     
  11. ktech

    ktech New Member

    Thanks Brian!....seems to be working OK now.
     
  12. liqiud

    liqiud New Member

    I keep changing the .navtable text but it's not making any difference. The rest of the css changes took place fine. Any ideas?

    www.paintballgeex.com/nuke
     
  13. Brian

    Brian EPC Developer Staff Member

    This thread is over two years old and the information contained therein may not be relevant any longer.

    Please start a new thread so we can help you.
     
Thread Status:
Not open for further replies.

Share This Page