...

View Full Version : Your Thoughts Please



Byronwells
01-31-2010, 12:12 PM
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...

jenius
02-01-2010, 09:42 AM
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...



<?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...



<?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");

?>

Byronwells
02-01-2010, 12:27 PM
[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...



<?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

TheAbMan
02-01-2010, 02:20 PM
I would go with the calendar. You should be able to find one without the planner piece.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum