WordPress.org

Ready to get started?Download WordPress

Forums

Calendar (17 posts)

  1. Doraemon
    Member
    Posted 9 years ago #

    Just a quick question, where is all the data stored for the calendar? Thank you much,
    Cheers,
    Max

  2. Doraemon
    Member
    Posted 9 years ago #

    Anyone out there? I've been waiting over 12 hours for a reply...

  3. Doraemon
    Member
    Posted 9 years ago #

    Thank you Beel.

  4. Doraemon
    Member
    Posted 9 years ago #

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

  5. Doraemon
    Member
    Posted 9 years ago #

    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

  6. Beel
    Member
    Posted 9 years ago #

    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.

  7. Doraemon
    Member
    Posted 9 years ago #

    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

  8. Beel
    Member
    Posted 9 years ago #

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

  9. Doraemon
    Member
    Posted 9 years ago #

    Okay, I'll do both, give me a minute. :-)

  10. Doraemon
    Member
    Posted 9 years ago #

    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

  11. Doraemon
    Member
    Posted 9 years ago #

    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

  12. Beel
    Member
    Posted 9 years ago #

    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.

  13. Beel
    Member
    Posted 9 years ago #

    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.

  14. Doraemon
    Member
    Posted 9 years ago #

    Good idea, thanks Beel. :-)

  15. Doraemon
    Member
    Posted 9 years ago #

    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

  16. Beel
    Member
    Posted 9 years ago #

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

  17. Doraemon
    Member
    Posted 9 years ago #

    Not at this time, perhaps in the future. :-) Again, thanks for your help,
    Max

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags