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)
-   -   Change the Post Date dont work since version 3.6.1 (http://forum.bytesforall.com/showthread.php?t=13214)

Nobody15 Mar 8, 2011 11:07 PM

Change the Post Date dont work since version 3.6.1
 
Since Version 3.6.1 the Footer don´t change to the modified date (”Aktualisiert am:”) because the If block always returns false.
I´m using this Script in Atahualpa 3.5.3 "Edit Post/Page Info Items" (FOOTER: Homepage, FOOTER: Multi Post Pages, FOOTER: Single Post Pages, FOOTER: "Page" Pages) to modify the Footer of Single Post Pages and it works fine.

PHP Code:

<?php if(strtotime($post->post_modified) - strtotime($post->post_date) > 86400)
{
echo 
“Aktualisiert am” ;
the_modified_date(’jF Y’);
echo 
” um ” ;
the_modified_time(’G:i’);
}
else
{
echo 
“Erstellt am” ;
echo 
get_the_date();
echo 
” um ” ;
echo 
get_the_time();
?> | Autor: %author-nickname% | %tags-linked(’Tags: ‘, ‘, ‘, ‘ | ‘)% Kategorie: %categories-linked(’, ‘)% %edit(’ | ‘, ‘Bearbeiten’, ”)%

Regards
NB

juggledad Mar 9, 2011 04:42 AM

edit bfa_post_parts.php (it's in the 'functions' folder) and change
in version 3.6.1 - line 176
in version 3.6.4 - line 171
from
HTML Code:

        global $bfa_ata;
to
HTML Code:

        global $bfa_ata, $post;
added to 3.6.5 TODO list (BUGFIX 364-06: Post Date does not work in 'FOOTER: xxxx' )

Nobody15 Mar 9, 2011 05:01 AM

Thanks juggledad

now it works :)

I´m using now version 3.6.4 and there it´s also line 176 to change.

NB

juggledad Mar 9, 2011 05:26 AM

true, unless you have applied BUGFIX 364-05, in which case it is line 171


All times are GMT -6. The time now is 04:54 AM.

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