[SOLVED] Date/time problem in Edit POST/PAGE INFO ITEMS
I have placed a timestamp in the "byline" field, timestamping posts in the format month day, year at hour:minute am/pm ... no matter how I specify the php format, the timestamp shows a twelve-hour day time only. Also, I'd like to place print and email icons above each post; there doesn't seem to be an effective way to use the p-print and p-email functions in the "kicker" field... suggestions/assistance?
My site is http://nikflorida.org. Thanks! The Atahualpa theme would be be wonderful if I could get it to actually work right! Peace-- NIK |
What version of Atahualpa and WP?
What EXACTLY are you placing in the byline option? |
I am using the latest updates of both, as far as I know... Atahualpa 3.6.6 and WP 2.9.2...
In the Atahualpa "edit post/pages info items" dialogue, I am entering Code:
By <a href="mailto: %author-email%">%author%</a> on %date(F j, Y)% Code:
By <a href="mailto: %author-email%">%author%</a> at %date(g:ia #o#n F j, Y)% I suspect that the timestamp is being read from the database, formatted and written into a string variable, then that string variable is not being updated. I'm not sure though. |
Just for the record, I have also tried
Code:
%date(F j Y #a#t g:ia)% |
hrm... I just posted an entry while signed in as "nikflorida" and the byline for the story says "cscholer"... "cscholer is the most recent person whose permissions have been changed from "user" to "contributor", but he definitely didn't write this post, nor was he signed in at all at the time it was posted. The post_author field in the SQL table shows an incorrect ID. (I assume that's his ID...I didn't look)
|
I created a new user profile called "nik_florida" and set the role to "editor"... then "nik_florida" (but not administrator "nikflorida") showed up in the author pull-down list on the main post edit page. I'm not sure if that's a theme issue or a WordPress issue... it appears that administrators do not have posting credentials in multi-user implementations. idk... it wasn't a problem until some other folks got their roles changed from "user" to "contributor"... as long as nikflorida was the only sn posting, it worked fine. Hrm.
|
This issue with the users is not a theme issue. It sounds like your database may be corrupt.
1) do a database backup - even if it is broken- this will save your data as it is today 2) you can try doing a repair of the database 3) if you know SQL, you could do a count on the user table and a count on the user-meta to see what the number of rows are on each. I believe they should match in numbers This is something that is outside the scope of the forums. If you want more help trying to recover the DB send me a PM and I quote ou my rates. |
I found a suitable workaround for the user role issue... that does not solve (or even address) the theme issue regarding the date format in the byline. It simply does not work. It works in other themes, including the WP default theme, but not in Atahualpa. Can it be fixed, or should I just change to another theme?
|
1 Attachment(s)
Ok I found the problem and have made a fix for version 3.4.6. Please
1) download the attached file and unzip it 2) rename the existing 'bfa_postinfo.php to 'orig_postinfo.php' 3) upload the new copy to the host 4) give it a whirl Attachment 403 |
okay, I followed those instructions exactly, and saw no difference with existing posts, either on the front page or the single-post pages, even after refreshing them so that I was sure not to be viewing a cached page. It also had no effect on new posts.
|
Really ?? It worked here and I just downloaded it and tried it again. If I code
HTML Code:
%date('m.d.y')% at %date('H:i:s')% Quote:
HTML Code:
// Date & Time |
hrm... I don't have a "bfa_postpart.php" file, nor is there one in the current Atahualpa 3.4.6 zip file (I just re-downloaded it to make sure I didn't have a corrupt installation)... there is a "bfa_post_parts.php" file but it doesn't have anything that resembles what you describe. I have a code snippet commented "date & time" in the "bfa_postinfo.php" file, though, and it appears to be correct. I overwrote both the "bfa_post_parts.php" and "bfa_postinfo.php" files (the bfa_postinfo.php file is the new, revised one you recommended) on my server with new, fresh copies just in case, but I still see no change. Further ideas?
|
arugh, brain and fingers not working at same time. there is no bfa-postpart.php, it is bfa-post_part.php HOWEVER, the file I means is bfa_postinfo.php - sorry about that.
grap the copy from post #9 |
Hello
I have the same problem. Did everything as described. php.postinfo looks like requestet. Same installation 2.9.2 and 3.4.6. Any Solution yet? Difference its with a German .do and mo. Thanks! EDIT: Problem solved for me. I fixed it in the byline. |
Exactly what I was looking for. Thank you! :)
|
This fix will be included in version 3.5.4 which should be out shortly
|
All times are GMT -6. The time now is 03:08 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.