HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Clicking on a Discussion Link takes Signed In Users Straight to Comment Section.
edited November 2021 in Vanilla 3.x Help
I have a discussion link titled: 'PLEASE READ BEFORE POSTING', at the top of my forum site: https://educativeguides.com
When a site visitor (unregistered user) clicks the link, It takes them to the top of the page as shown below.
This behaviour is okay.
For registered and signed in users, however, clicking on the post link takes them straight to the comment section as shown below.
This behaviour confuses users as they are not able to view the post content directly. They might not know intuitively that they need to scroll up to see the post body (main content).
Is there a way to correct this?
Alternatively, is there a way I can turn off the comment section for this particular post?
Thanks in anticipation.
Put the discussion in a seperate category.
Change users roles permission to only view for that category.
With Pockets plugin make link to that discussion, above discussion and category sections.
Content Before or Content(1) is what I suggest
Hi, @Kaspar. I don't want to create a separate category to achieve that.
So, I activated the Pockets plugin.
"With Pockets plugin make link to that discussion, above discussion and category sections."
Could you shed more light on adding a custom discussion link on Add Pockets setup?
Thanks in anticipation.
<input style="width: 350px;padding: 25px;cursor: pointer;box-shadow: 4px 4px 3px; #999;-webkit-box-shadow: 4px 4px 3px #999;-moz-box-shadow: 4px 4px 3px #999;font-weight: bold;background: #3366cc;color: #fff;border-radius: 10px;border: 1px solid #999;font-size: 125%;margin: 0 auto;display: block;margin-top: 20px;" type="button" value="Read before posting" onclick="window.open('https://educativeguides.com/discussion/2/please-read-before-posting/');" title="Read before posting">
ahh, forgot to adjust the blue color
Learn about buttons here
example of the button I posted
The date which is shown next to the avatar at the head of a discussion / comment is a link. Use that link.
For this discussion the link looks like that: https://open.vanillaforums.com/discussion/38927/clicking-on-a-discussion-link-takes-signed-in-users-straight-to-comment-section
They get taken to end of the discussion[Edit: of what they already read] if they already read/opened the discussion.
As R_J explains use the link of the initial post.
That takes people to that post / the beginning of the discussion.
Sorry, I got you wrong. What you try to achieve is against how the forum should work. The first time a user visits that discussion, he is directed to the top of the discussion. Every successive visit, he is taken below everything he has already seen.
Simply Closing the discussion would also remove the comment field.
Remove the comment
Then there is only the initial post you want ppl to see.
Cannot recall if it would still show the bottom of that post, if the above is done.
Try it out.
I understand it better now. The reason it takes a registered user straight to the comment section is that they read the post before. Thanks.
Thanks. Closing the discussion closed the comment section. Though it still takes registered users straight to the end of the post.
Then use a direct link
Same trick R_j mentioned
I got the link from the Post date. What's not so clear, is where to post the link on the Pocket setup page. I saw options to choose categories, discussion etc. No option to choose a particular post or a link. I also saw options for entering custom HTML. Seems I'm missing out on some crucial steps...
I will appreciate your help on that.
I put the link for the guide here
Thanks, @Kaspar. I modified some settings on the Button settings you shared and here's what I have:
Going further, I've got two questions:
The buttons is only visible on https://educativeguides.com/ not on https://educativeguides.com/discussions or https://educativeguides.com/categories
Set the "Page" setting to correct this.
Image is from the Pocket Guide I linked further up.
It was actually dumb of me directing you to make your buttons like that.
Replace your pocket content with this
and then via CSSEdit ( https://open.vanillaforums.com/addon/cssedit-plugin) add this
you should a result like this
in line with the themes buttons
If you prefer the look you have then use this
added some margin onthe buttons to seperate them abit