PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 2nd, 2009, 10:59 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2009
Posts: 21
Birthday

Hi!
How can I set birthday date in Italian style (dd-mm-yyyy)?
Thanks

Sara
Sara75 is offline   Reply With Quote
Old July 2nd, 2009, 05:15 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
Have you tried setting the date format in global options in admin to that?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 3rd, 2009, 04:57 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2009
Posts: 21
Yes, and date for ads are ok, but not birthday date !
Sara75 is offline   Reply With Quote
Old July 3rd, 2009, 07:43 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
ah okay we are working with a whole different thing here

You would actually have to alter the code in register.php and member.php where the birthday is stored and switch around where it is stored.

Code:
Content visible to verified customers only.
see that line in register.php thats the order they store it. so you would alter the order there and in member.php before it is updated you would alter the order of this line accordingly.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 3rd, 2009, 08:10 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2009
Posts: 21
Made these changes, but if I modify my profile, birthday date is asked still mm/dd/yyyy and not dd/mm/yyyy and if I enter my birthday it's not stored in db. (db field is 0000-00-00)
Sara75 is offline   Reply With Quote
Old July 3rd, 2009, 08:44 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
You can modify the template or other code in how its displayed to the user thats fine I was merely explaining how to alter it being stored.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 3rd, 2009, 08:59 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2009
Posts: 21
It doesn't work !
I also modified adm_users.php as you suggested, but date stored in db is always 0000-00-00
Can you please tell me where is the update query?
Thanks
Sara75 is offline   Reply With Quote
Old July 3rd, 2009, 09:03 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
the update command is in each script and it would work as long as the lines In noted are changed. For example look at edit line I posted in member.php you simply need to change the variables around that work for you. I showed the lines to show you how we store it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 3rd, 2009, 11:59 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2009
Posts: 21
Quote:
Originally Posted by Chuck S View Post
the update command is in each script and it would work as long as the lines In noted are changed. For example look at edit line I posted in member.php you simply need to change the variables around that work for you. I showed the lines to show you how we store it.
Sorry Chuck, but these informations are wrongs.
Changes you suggested doesn't work simply because you stored birthday date in db in a field "birthday" type DATE, that means that it only accept date in 0000-00-00 (yyyy-mm-dd) format - mysql standard.
So to have birthday date shown in format dd-mm-yyyy I had to work really more than what you suggested.
Sara
Sara75 is offline   Reply With Quote
Old July 3rd, 2009, 03:15 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
Yeah you will probally need to recode the whole thing how it works. Thats really a mysql limitation and since we store it in the mysql date field there is not much I can do to change that.

The birthday is only displayed one place in the profile when viewing the profile. Maybe altering member.php to add this in bold.

Code:
Content visible to verified customers only.
You can then edit the profile template and change $birthday to $birth2

Aside from that you can ask further code modification questions in THE MOD CORNER outside product support.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Birthday field farina Classifieds Bug Reports 1 July 18th, 2006 10:02 AM
Bad birthday data on VB3.0.3 macareno Photopost Pro Installation & Upgrades 1 April 1st, 2006 10:20 PM
Editing Users - Birthday Reset(FIXED) thesoundguy Photopost Pro Bug Reports 2 October 15th, 2005 08:06 PM
birthday gallery. can this be done laskos Before You Buy 2 August 2nd, 2005 10:30 AM


All times are GMT -5. The time now is 02:53 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0