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 » New Versions, & Updating » Old Version fixes and change logs »

BUGFIX 351/352-03: Comment Form Anchor Link gets a 404 (Not found)


  #1  
Old Jun 15, 2010, 04:00 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you use this fix, think about donating to me, I've spent several hours figuring this issue out and coming up with the fix. Sending me a donation will encourage me to continue to support Atahualpa. You can use the 'Donate to Juggledad' button on the donate page

This fix is for Atahualpa version 3.5.1 and 3.5.2
=======================
DESCRIPTION: The directions at ATO->Edit POST/PAGE INFO ITEMS indicate
Quote:
NOTE: On single post pages the %comments('...')% link won't display anything because the comments are on the same page. If you still want to link to the comments, the comment section and the comment form start with named anchors, so you use something like this:
<a href="#comments">Skip to comments</a> or <a href="#commentform">Skip to comments form</a>
however this causes an error at run time where the link has lost the '#' causing a 404 to occur.

CAUSE: This issue occurs because the '#' is used as the php DATE escape character in the Atahualpa options. Because the php DATE() function has so many options and each needs to be escaped, when the footer (or kicker or title) is being displayed, all occurrences of '#' are changed to '\' leading to this problem.

FIX: change the last line of bfa_postinfo.php from
HTML Code:
?>
to
HTML Code:
function getH() {
	global $bfa_ata, $post;
	return('#');
	}
?>
next change your post footer from
HTML Code:
<a href="#commentform">Skip to comments form</a>
to
HTML Code:
<?php echo '<a href="'.getH().'commentform">Skip to comments form</a>'; ?>
and the link should now work correctly

Optionally, if you would like the documentation at ATO->Edit POST/PAGE INFO ITEMS to reflect this change, edit bfa_ata_admin.php and change line 269 from
HTML Code:
			<code>&lt;a href="#comments"&gt;Skip to comments&lt;/a&gt;</code> or <code>&lt;a href="#commentform"&gt;Skip to comments form&lt;/a&gt;</code>
to
HTML Code:
			<code>&lt;?php echo '&lt;a href="'.getH().'comments"&gt;Skip to comments&lt;/a&gt;'; ?&gt;</code> or <code>&lt;?php echo '&lt;a href="'.getH().'commentform"&gt;Skip to comments form&lt;/a&gt;'; ?&gt;</code>
__________________
"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; Jul 20, 2010 at 04:18 AM.
  #2  
Old Jun 16, 2010, 05:32 PM
Gravity's Avatar
Gravity
 
34 posts · Sep 2009
Juggledad, which file is "post footer"; I couldn't find the code you mention.
  #3  
Old Jun 16, 2010, 05:39 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'm referring to ATO->edit POST/PAGE INFO ITEMS->FOOTER:xxxxxxxxx ie the four different footer areas
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Jun 16, 2010, 05:45 PM
Gravity's Avatar
Gravity
 
34 posts · Sep 2009
Ohhh... thanks!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Comment Form Anchor Link adum Comments, trackbacks & pings 11 Dec 9, 2010 07:11 PM
[SOLVED] BUGFIX - 3.4.1-&gt;3.4.6 - Comment form will not show up after first comment on juggledad Comments, trackbacks & pings 49 Jul 29, 2010 06:01 PM
BUGFIX 351/352-01: EXCERPTS - Show first X posts on HOME page as full posts juggledad Old Version fixes and change logs 1 Jul 13, 2010 05:42 AM
BUGFIX 351/352-06: BFA Subscribe widget does use link colors in widget options juggledad Old Version fixes and change logs 0 Jul 12, 2010 08:21 AM
BUGFIX 351/352-02: Header images not showing in sorted order juggledad Old Version fixes and change logs 2 Jun 15, 2010 04:28 AM


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


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