HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

The links are broken (Los enlaces estan rotos)

This discussion is related to the MostPopular addon.
YAcostaYAcosta
edited January 2013 in Vanilla 2.0 - 2.8

Not much of this but the link does not lead me to load the page:

Giving click brings me to this:

And I think this is because it is missing:
index.php?p=/

I solved this by changing the plugin code:

echo "<a href=\"discussion/$DiscID/$DiscName\">$DiscName</a>";

this other:

echo "<a href=\"index.php?p=/discussion/$DiscID/$DiscName\">$DiscName</a>";

But I do not know much, and if that is not the best solution, in any case, I did this mofificacion plugin works properly.

thanks

peregrine

Comments

  • @peregrine

    echo Anchor($DiscName,'discussion/'.$DiscID.'/'.$DiscName);

    grep is your friend.

    peregrine
  • thx. should work correctly with pretty urls and the politically correct "almost as pretty" urls.

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

  • x00x00 MVP
    edited January 2013
    $DiscName =  Gnd_Format::Text($PopArray[$x]['Name']);
    $LinkName =  Gnd_Format::Url($DiscName);
    

    Better safe than sorry.

    grep is your friend.

    peregrine
  • peregrineperegrine MVP
    edited January 2013

    Better safe than sorry.

    thx x00. v 1.5 is now updated.

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

  • 1.5 is perfect.

    thanks

Sign In or Register to comment.