Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Remove Item # From URL
On the vanilla forums, I do not notice the Item_# showing at the end of the post URL. Where is that option located? I'm testing on vanilla2.0.16 and want to turn it off.
For example: http://www.example.com/vanilla/discussion/12/this-is-a-test/#Item_2
For example: http://www.example.com/vanilla/discussion/12/this-is-a-test/#Item_2
0
Comments
If you still want it removed, go to either
\applications\vanilla\views\discussions\helper_functions.php
or if you have a custom theme:
\themes\<your theme>\views\discussions\helper_functions.php.
Search for: and replace it with:
Thank you for your response. I do not want it removed completely but do want it to work the right way. Shouldn't item # be added to links for logged in user only? I open in chrome, clear cache/cookies and then visit the test site. The item # shows up for regular posts. Announcements do not have the item #.
It is being added when your last visit in that discussion is later than the last post was made.
You have two options: Either you edit the file where the time check is being made, or you simply add another condition on the helper_functions.php file.
I would suggest later option, since it is theme orientated and you don't have to mess with the source code.
Just go to the helper_function.php and on the same line I posted above you add after the
C('Vanilla.Comments.AutoOffset')
, the code&& $Session->UserID > 0
.So in the end it would be: If you want to know where the last visit check is being made, it is here:
\applications\vanilla\models\class.discussionmodel.php line 222 & line 223,
Just comment out those lines and you have the same effect.
Thank you!!
https://github.com/vanillaforums/Garden/commit/d7629ac0812635e5d5b5044d671c1dff4df1356c
It looks like the issue is back in 2.0.17.3 and seem random. Some have Item # and some don't. Shouldn't "Mark All Viewed" take care of this?