+ Reply to Thread
Results 1 to 8 of 8

Thread: Calendar Links

  1. #1
    KSclans is offline x10 Sophmore KSclans is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    198

    Calendar Links

    I have a calendar, have days on it, and I want to create links for each day, but I do not manually add each link for everyday... so how can i create something so that day 1 will go to day 1 page, 2 will go to 2, without I adding the links to each one of them ?

  2. #2
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Calendar Links

    depends on how the calendar is created. you can do this at creation time with a server side script, or after page load using Javascript
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  3. #3
    KSclans is offline x10 Sophmore KSclans is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    198

    Re: Calendar Links

    I find this http://keithdevens.com/software/php_calendar

    he say
    HTML Code:
    $days is an optional array that can contain information you want to specify for each day, including a location to link that day to, a stylesheet class for that day, and any content you want to appear for that day of the calendar. For example, an array passed for the days parameter might look something like this:
    <?php 
    $days = array( 
        2=>array('/weblog/archive/2004/Jan/02','linked-day'), 
        3=>array('/weblog/archive/2004/Jan/03','linked-day'), 
        8=>array('/weblog/archive/2004/Jan/08','linked-day'), 
        22=>array('/weblog/archive/2004/Jan/22','linked-day'), 
    ); 
    ?>
    </SPAN>
    Is it possible to just use some kind of array function to add all the links to the calendar ? without using java...

  4. #4
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Calendar Links

    If that's the software you using, that snippet of code you posted will work.

    Just replace /weblog/archive/2004/Jan/22 with your page
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  5. #5
    KSclans is offline x10 Sophmore KSclans is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    198

    Re: Calendar Links

    ............ I asking, are there a way that will automatically add all the links, like jan 1 go jan 1 , 2 to 2, 3 to 3, I not going to add all the links for a year...or years... so i want to see if there is a script that will automatically set links for ALL days...

  6. #6
    lemurina's Avatar
    lemurina is offline x10Hosting Member lemurina is an unknown quantity at this point
    Join Date
    Nov 2008
    Location
    Estonia :)
    Posts
    25

    Re: Calendar Links

    Hmm.. There might be a problem.. You need a script that changes a script?
    I can't help you until you show me your calender script and then maybe I can help you
    Need help ? Feel free to send a PM to me.
    Ya I know programming. PHP - 4 years, HTML - 5 years, CSS - 5 years, SQL - 3 years, JavaScript - 1 years, AJAX - few months.
    Also I'm a web designer, need anything.. Just PM me
    My DeviantArt Gallery

  7. #7
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: Calendar Links

    There is. Use PHP with a For or Do loop and just run from 1st to last day of the month.
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  8. #8
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Calendar Links

    The problem in understanding is that you gave an example of optional links. Now I think you're saying that you don't want optional, you want guaranteed for the particular day?

    If that's true you don't need a loop. There is already one when the calendar is created. Instead, go into the creation code of the calendar and change the html there where the day is placed.

    You'll have two variables there that are important: the month and day. Wherever the day is placed, just wrap it in an anchor tag and set the month and day to the link there.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


+ Reply to Thread

Similar Threads

  1. Generating hundreds of links in few days
    By nonte in forum Link Exchange
    Replies: 11
    Last Post: 11-09-2008, 07:55 AM
  2. Ucash.in - Earn Money from links.
    By fabionj in forum Earning Money
    Replies: 1
    Last Post: 03-30-2008, 05:49 PM
  3. Replies: 1
    Last Post: 03-06-2008, 06:15 AM
  4. Replies: 0
    Last Post: 03-05-2008, 08:30 PM
  5. Urgent help please!
    By retro-bliss in forum Free Hosting
    Replies: 2
    Last Post: 10-25-2007, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers