Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] Date/time problem in Edit POST/PAGE INFO ITEMS (http://forum.bytesforall.com/showthread.php?t=5988)

nikflorida Feb 22, 2010 06:50 PM

[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

juggledad Feb 22, 2010 06:56 PM

What version of Atahualpa and WP?
What EXACTLY are you placing in the byline option?

nikflorida Feb 23, 2010 01:05 PM

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)%
in the "BYLINE: Homepage" field and
Code:

By <a href="mailto: %author-email%">%author%</a> at %date(g:ia #o#n F j, Y)%
in the "BYLINE: Multi-post pages" and "BYLINE: Single-post pages" fields. The email link works fine, but the date format shows "on xx:xx am/pm" (WITH a space)(on the homepage) or "at xx:xx am/pm (on the more specific single-post pages) instead of "on Month DD, YYYY at xx:xxam/pm as I'm indicating it should.

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.

nikflorida Feb 23, 2010 01:27 PM

Just for the record, I have also tried
Code:

%date(F j Y #a#t g:ia)%
with the same output. It updates the literal characters (like "on" and "at", when preceding the date variable, but doesn't change the date format and ignores the literal characters within the formatting parameters. Help!

nikflorida Feb 23, 2010 06:30 PM

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)

nikflorida Feb 23, 2010 09:25 PM

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.

juggledad Feb 24, 2010 04:47 AM

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.

nikflorida Feb 24, 2010 10:43 AM

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?

juggledad Feb 25, 2010 06:52 AM

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

nikflorida Feb 25, 2010 11:28 AM

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.

juggledad Feb 25, 2010 12:21 PM

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')%
in the Kicker (any of them) I get
Quote:

02.18.10 at 12:32:50
can you go to dashboard->Appearance->Editor - then select bfa_postpart.php and scroll down till you find the Date & Time code (there ara a bunch of tests for Author then the Date) and make sure it starts like this
HTML Code:

        // Date & Time
        if ( strpos($postinfo_string,'%date(') !== FALSE ) {
                while ( strpos($postinfo,'%date(') !== FALSE ) {

the while statement is the new code

nikflorida Feb 27, 2010 02:44 PM

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?

juggledad Feb 27, 2010 04:22 PM

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

Robsi60 Mar 26, 2010 03:45 PM

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.

everybodylies Oct 27, 2010 08:47 AM

Exactly what I was looking for. Thank you! :)

juggledad Oct 27, 2010 10:59 AM

This fix will be included in version 3.5.4 which should be out shortly


All times are GMT -6. The time now is 07:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.