foxhound |
|
---|---|
No idea if this is already know, but there is a bug in the comments extension (latest Sienna version 0.9.11). In the comments.functions.php the generated anhor link shows /xxxxxxx#comments#comments which is an invalid anchor and so it simply goes to the top of the page instead of the comments area.I fixed that by doing the following: // A dirty fix for pagination anchors $pagenav['main'] = preg_replace('/href="(.+?)"/', 'href="$1#comments"', $pagenav['main']); $pagenav['prev'] = preg_replace('/href="(.+?)"/', 'href="$1#comments"', $pagenav['prev']); $pagenav['next'] = preg_replace('/href="(.+?)"/', 'href="$1#comments"', $pagenav['next']); } Change to: // A dirty fix for pagination anchors $pagenav['main'] = preg_replace('/href="(.+?)"/', 'href="$1"', $pagenav['main']); $pagenav['prev'] = preg_replace('/href="(.+?)"/', 'href="$1"', $pagenav['prev']); $pagenav['next'] = preg_replace('/href="(.+?)"/', 'href="$1"', $pagenav['next']);
I removed the "#comments" from the url creation as its already added by the function above this part.
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
|