1 amoun Nov 30, 2018 12:22
3 amoun Dec 02, 2018 00:12
I think this is the same problem I posted about before @ https://forums.b2evolution.net/not-scrolling-to-comment.
Then each comment was Paged i.e. i comment per page, so I didn't quite twig it was that permalinks couldn't go beyond paging as it happened on every link, as the first comment always showed.
4 fplanque Dec 04, 2018 01:05
Someone once thought it was a good idea to add paged comments but never implemented it fully...
It's a PITA because when there are new comments or deleted spam comments, the pages numbers for ALL comments change.
5 amoun Dec 04, 2018 09:40
OK :) I'll think on that thanks
6 amoun Dec 05, 2018 13:07
NOTE Post #2 above is no use now as I the comment list has changed.
1) Am i correct in that permalinks don't work for comments other than of the the first Paged set? Why can they not be accessed in a similar way to posts as they have a comment_ID?
2) A problem with the URL for example:
Here is the link as presented by the Page number link in the Comment section header.
2a) The three below are just truncated versions of the previous one, which all work the same, so why the complexity above?
All the above link to the post and bring up the second page of comments but do not scroll to the second page and just starts at the top of a long post.
I have tried unsuccessfully to scroll for example, as below, with no luck, it produces the same result as all the above.
3) Any ideas as I image once the comment can be scrolled to, the permalink URLs can also be modified so that they work.
EDIT:
Addendum 1
I set the front page to disp=comments which works but of course the permalinks only work if the comment is in the first page of comments
and if I type http://calstock.org.uk/elf.php?disp=comments#c253 then I get the comment but not with the post etc.
Must be some way of working this :)
[b}Addendum 2[/b]
Ok My attempt
- http://calstock.org.uk/elf.php/2015/07/11/clearing-saw-stihl-fs460?redir=no&c_paged=2#251
just needs the c prefix for the ID
so
- http://calstock.org.uk/elf.php/2015/07/11/clearing-saw-stihl-fs460?redir=no&c_paged=2#c251
works fine.
Just need to get the permalinks to reflect that.
At least I can manually link to any comment :)
7 amoun Dec 05, 2018 20:34
Ok back to the begining
The full and original url for a page is, for example:
Which brings up the post, with the comments but does not scroll as there is no anchor #comments
Job 1) to find why there is no anchor
Maybe this is just a skin issue as I have an anchor [feedback_block]
Yeap!
http://calstock.org.uk/elf.php/2015/07/11/clearing-saw-stihl-fs460?disp=single&title=clearing-saw-stihl-fs460&more=1&c=1&tb=1&pb=1&redir=no&c_paged=2#feedback_block
does work and scrolls to comments.
Maybe a mix of skin and skin fallbacks ??
Job 2) to amend permalink
8 amoun Dec 05, 2018 21:01
OK one problem solved.
There was a line commented out in [_item_feedback.inc.php]
echo '<a id="comments"></a>';
Restored that and the first, url, and the others in #6 above work fine
http://calstock.org.uk/elf.php/2015/07/11/clearing-saw-stihl-fs460?disp=single&title=clearing-saw-stihl-fs460&more=1&c=1&tb=1&pb=1&redir=no&c_paged=2#comments
works fine
Sorry for using you all as a sounding board, but if it wasn't for the ability to post here I wouldn't persevere
Thank again everyone
Just the problem of scrolling to the comment permalinks and not just the page. :)
9 yurabakhtin Dec 11, 2018 16:36
@amoun What file _item_feedback.inc.php
do you mean? I see we the code echo '<a id="comments"></a>';
in the files:
- https://github.com/b2evolution/b2evolution/blob/6.10.4/skins_fallback_v5/_item_feedback.inc.php#L153
- https://github.com/b2evolution/b2evolution/blob/6.10.4/skins_fallback_v6/_item_feedback.inc.php#L161
Or do you mean the file from folder of your specific skin?
10 amoun Dec 12, 2018 09:40
@yurabakhtin wrote earlier:
@amoun What file
_item_feedback.inc.php
do you mean? I see we the codeecho '<a id="comments"></a>';
in the files:
- https://github.com/b2evolution/b2evolution/blob/6.10.4/skins_fallback_v5/_item_feedback.inc.php#L153
- https://github.com/b2evolution/b2evolution/blob/6.10.4/skins_fallback_v6/_item_feedback.inc.php#L161
Or do you mean the file from folder of your specific skin?
Apologies for lack of clarity - my post#8 didn't clarify it is my skin file not the defaults.
Not a b2evo issue but a user/mod issue Ooops!
11 amoun Dec 12, 2018 10:47
So the remaining problem is the permalinks don't work other than for the first page of comments.
Comments are accessed by id as in the permalinks, but permalinks don't use a variable page number. So if the comment is on page two or more then the permalinks won't work hence no ability to scroll to a comment' on any other page than page 1 as the url is the permalink value.
12 fplanque Dec 13, 2018 01:52
As explained above, there is no trivial fix. You should consider "paged comments" as an experimental feature. It is bad on many levels. Worst of all being that it generates duplicated content (the post) on every comments page. Very bad for SEO.
Put a comment list in the side bar and the same happens.
The comments are Paged at 3 per page
I added a third and fourth comment to my Mice Office post and the two new comments appear in the list.
The third one link works but the fourth doesn't and of course the second one posted days ago works.
Leaving test comments on site until I get some response and confirmation of the problem
Thanks
The mice really are not happy :( well not all of the time