User Profile
Collapse
-
Need to know how to ignore part of a date in this code
I have this mod for my forum and it calls the birthdate from the database. I would like to have it not see the year. What is happening if a person puts a year in the box in their profile it makes it Dec 31st because that year is already over. There is no way to remove that box from the code according to the forum tech people. I've added the two pieces that refer to date. It already is written where it only shows the month and day in the view. Thank... -
PHP/MySQL to ignore part of a date.
I have this mod for my forum and it calls the birthdate from the database. I would like to have it not see the year. What is happening if a person puts a year in the box in their profile it makes it Dec 31st because that year is already over. There is no way to remove that box from the code according to the forum tech people. I've added the two pieces that refer to date. It already is written where it only shows the month and day in the display.... -
Can I remove Year from this code ?
If I want to remove the drop down for the year will that make the birthday not show on the calendar? If it looks like it is ok to remove it what can be removed?? What should it look like?
[PHP]function date_selection( $default_date=" ", $field_names=ar ray("user_birth day_month", "user_birthday_ day", "user_birthday_ year"), $labels=1)
// Returns date selection as a drop-down menu, if... -
I got it!!! I'll get this php stuff yet. -
Get error when removing a part of this if statement
I want to remove this code from the code posted below and get errors. What needs to stay to finish the statement??
[PHP]lg("pm_zap")[/PHP]
[PHP]if (key($folders) == 101) // if deleted items
$folder_list1 = substr($folder_ list1, 0, strlen($folder_ list1) - 5) .
sprintf(' <A HREF="pm.php?za p=1&ref=%s">.:% s:.</A><BR>'... -
Here is the other code that goes with it.
Code PHP:
[PHP]if (key($folders) == 102) // if deleted items
$folder_list1 = substr($folder_ list1, 0, strlen($folder_ list1) - 5) .
sprintf(' <A HREF="pm.php?za p=1&ref=%s">.:% s:.</A><BR>' . "\n",
$vars["folder_id"], lg("pm_zap"));[/PHP]...Leave a comment:
-
Thank you. I'm so PHP stupid I wasn't even sure how to name it.
The code is to allow me to be able to permanenly delete all the messages in teh dleted folder. I want to make it also delete all the messages in the Inbox and Sent folder instead of having to move them to the delted folder to do so. If I change the delted_items to inbox it workd for that but I need to know how I make it work for all three folders.Leave a comment:
-
Not sure how to finish this zap statement/conditional...
I am trying to make this statement say to delete the deleted folder if you click that zap...or the inbox if it is that zap or the sent box if it is that zap. I started a new one for each and it didn't work so either I missed something in the others or I need to make this one refer to them all in some way. Do I need an or somewher ebetween them or in this code?? How do you do that if so?
[code=php]
else if ($HTTP_GET_VARS["zap"])...
No activity results to display
Show More
Leave a comment: