Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2009
    Posts
    240
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Your Thoughts Please

    Alright guys

    At the moment I am toying between two ideas, and I was just wondering if I could get your thoughts please..

    At the moment I am using a membership script that does not have a date feature.. What I mean, is when I add a new product to the site, I would like to choose the date for it to appear, whether that be a date that has already gone, now, or in the future.. Just like you can do on a wordpress blog..

    I know with a wordpress blog, when you go and add a blog post, you get three form selectors to choose, year, month, day from and then link it to on field on the database

    But I am thinknig to myself wouldnt that require a lot of php code? I.e for it to reckonise the exact days in a month.. To reckonise what day we are currently on so that we can publish it now?

    My other idea is to use a simple calender.. But at the moment a lot of them come with an event planner, which I dont need. I just want the date to be link to the product that I am adding...

    Then at later stage when I go back and edit the product it will show me the date that I have chosen

    What is best to use please?? Or rather what is simple to work out and to code...

  • #2
    Regular Coder
    Join Date
    Jan 2010
    Posts
    137
    Thanks
    3
    Thanked 10 Times in 10 Posts
    Honestly? I would advise not bothering with wordpress and trying out Drupal. It's preferred by most good web developers, and allows you very precise control over those types of things with the minimal amount of php knowledge possible. In addition, it has a very large community, and lots of documentation and support.

    I don't know about wordpress (it might be similar), but in drupal it would be easy to insert a simple print php statement in your node template (html) to print the date, somewhere along the lines of...

    Code:
    <?php print ($date) ?>
    ...because they already have most of the common variables PHP coded out for you in the back end.

    If you are using neither, and you are just trying to straight up print the date using PHP, you can play around with this code...

    Code:
    <?php
    
    // Prints something like January 24, 2005
    
    echo date("F j, Y");
    
    // Outputs something like Monday, February 17th, 2005
    
    echo date("l, F jS, Y");
    
    // Outputs date in format of 10/24/2005 for October 24th 2005
    
    echo date("m/d/Y");
    
    ?>

  • #3
    Regular Coder
    Join Date
    Dec 2009
    Posts
    240
    Thanks
    7
    Thanked 0 Times in 0 Posts
    [QUOTE=jenius;917222]Honestly? I would advise not bothering with wordpress and trying out Drupal. It's preferred by most good web developers, and allows you very precise control over those types of things with the minimal amount of php knowledge possible. In addition, it has a very large community, and lots of documentation and support.

    I don't know about wordpress (it might be similar), but in drupal it would be easy to insert a simple print php statement in your node template (html) to print the date, somewhere along the lines of...

    Code:
    <?php print ($date) ?>
    Never said I was using wordpress.. I said I wanted something similiar to how it the date selection part looks on a wordpress blog

  • #4
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would go with the calendar. You should be able to find one without the planner piece.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •