Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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)


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jun 15, 2010, 04:00 AM
juggledad's Avatar
juggledad
 
21,685 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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>
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
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
 
21,685 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I'm referring to ATO->edit POST/PAGE INFO ITEMS->FOOTER:xxxxxxxxx ie the four different footer areas
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
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 03:53 PM.


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