Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Change the Post Date dont work since version 3.6.1


  #1  
Old Mar 8, 2011, 11:07 PM
Nobody15
 
9 posts · Mar 2011
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
  #2  
Old Mar 9, 2011, 04:42 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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' )
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 9, 2011 at 04:49 AM.
  #3  
Old Mar 9, 2011, 05:01 AM
Nobody15
 
9 posts · Mar 2011
Thanks juggledad

now it works

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

NB
  #4  
Old Mar 9, 2011, 05:26 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
true, unless you have applied BUGFIX 364-05, in which case it is line 171
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dont need that Category bar....but i dont no ferdi Header configuration & styling 1 Feb 11, 2011 03:15 AM
[SOLVED] [Help]i dont know i how update ATAHUALPA to the version 3.5.3 jackchow New Versions, & Updating 2 Jul 26, 2010 07:44 AM
adsense plugins dont seem to work ronald73 Plugins & Atahualpa 9 Nov 3, 2009 08:02 AM
Need Help: Navigation links dont work jota73 Excerpts, Read more, Pagination 2 Mar 28, 2009 11:24 AM


All times are GMT -6. The time now is 08:01 AM.


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