Support » Fixing WordPress » Calendar

Viewing 15 replies - 1 through 15 (of 16 total)
  • Anyone out there? I’ve been waiting over 12 hours for a reply…

    Thank you Beel.

    Does the calendar have some kind of template? If not, which file would I need to edit to change the template? Thanks,
    Max

    Well, I have my own HTML template I’ve made and I’d like to apply that styling to the calendar.. Is this possible? Thanks again,
    Max

    Sure, it is possible – but the type of “styling” you wish to apply and your knowledge of PHP will determine how difficult it would be. If it is just a matter of styling, you can do that in the css anyway.

    Hmm, no, it goes beyond styling. I’ve had to create my own HTML for this.. I can upload a pic of what I would like it to look like so you have a better idea of what I’m talking about, would that help? Thanks,
    Max

    Just post a small portion of the relevant html (in backticks) and/or a link to a pic.

    Okay, I’ll do both, give me a minute. 🙂

    Here is a pic, just a side note, the date is off by a day, it was a late night project —> http://www.politicalanalyst.net/calendar.png
    And some code…
    <table width="175" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td height="34" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="175" height="34" valign="top"> <img src="path/to/computer" width="175" height="34" /></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td width="10" rowspan="2" valign="top" background="cal_bg.png">&nbsp;</td>
    <td width="154" height="171" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="cal_bg.png">
    <tr>
    <td width="22" height="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    <td width="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    <td width="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    <td width="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    <td width="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    <td width="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    <td width="22" valign="top"> <img src="cal_date.png" width="22" height="22" /></td>
    </tr>

    The images are placeholders and would be the background in the future.
    Max

    While I could probably achieve close to what I want that way, this layout MUST have very precise table sizes ( including the table size of the date table ). Also, I have to control the overall table size… I don’t see any other way but to use custom HTML. Can I insert my HTML perhaps in place of the calendar template function? Thanks,
    Max

    You can certainly edit the echo statements for the calendar and, no, you cannot substitute one for the other as the calendar function generates today’s day, links to posts, etc.

    What I would do is set up myhacks.php, turn it on in the options, copy the entire calendar function into it and rename it mycalendar. Then you can tweak it to your heart’s content without breaking the original calendar.

    Good idea, thanks Beel. 🙂

    Beel, I really appreciate your help, I followed you suggestions and we now have a working calendar here —> http://www.politicalanalyst.net/index.php
    Thanks again,
    Max

    Excellent, except for one thing… do you not want the days to link to posts made on that day?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Calendar’ is closed to new replies.