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.

logged in users are sent to last post how can I stop this behaviour?

edited June 2012 in Vanilla 2.0 - 2.8

Hello,

I am using the sharethis plug in. However, I noticed that users are always sent to the last post when they click on a discussion.

For example a link changes from

http://www.becariossenescyt.com/discussion/23/fechas-del-toefl-en-ecuador-y-examenes-de-practica

To

http://www.becariossenescyt.com/discussion/23/fechas-del-toefl-en-ecuador-y-examenes-de-practica#Item_1

This screws the sharethis plug in because it tracks it as a different page.

How can I stop this from happening?

I'd like that both logged in and logged out users be directed to

http://www.becariossenescyt.com/discussion/23/fechas-del-toefl-en-ecuador-y-examenes-de-practica

When ever they go to the discussion.

Thanks.

Best Answer

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    try this in config.php

    $Configuration['Vanilla']['Comments']['AutoOffset'] = FALSE;

    if it do what you want it to do then
    to make a change in helper_functions.php - you have to look at the code and make the appropriate changes.

    look for the creation of the link

    echo Anchor($DiscussionName,

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Answers

  • use the pagenavigator plugin or modify helper functions.php

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Hi, I tried the plug in and it did not do what I wanted. What do I need to change in the function?

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    try this in config.php

    $Configuration['Vanilla']['Comments']['AutoOffset'] = FALSE;

    if it do what you want it to do then
    to make a change in helper_functions.php - you have to look at the code and make the appropriate changes.

    look for the creation of the link

    echo Anchor($DiscussionName,

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Hi the $Configuration['Vanilla']['Comments']['AutoOffset'] = FALSE; did the trick! Thanks!

Sign In or Register to comment.