Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.2.1 is now available.
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.

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

edited June 2012 in Vanilla 2.0 Help

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.

    UnderDog

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.

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

    UnderDogAdrian
Sign In or Register to comment.