Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

PostBackAction

edited November 2006 in Vanilla 1.0 Help
I've been trying to understand the concept of what PostBackAction is and how to use it. I'm using the Pimped add-on as a model. I want to add a link in the side panel that will build a page of information. The link I have is: $wws .= '<div align="right"><a href="'.GetUrl($Configuration, 'index.php', '', '', '', '', 'PostBackAction=BlogTags').'">View All Tags >></a></div>'; This link works fine when I am logged in, with the link translating to: http://localhost/Vanilla.1/?PostBackAction=BlogTags However, it doesn't work at all when I'm not logged in because the link then translates to: http://localhost/Vanilla.1/?ReturnUrl=http://localhost/Vanilla.1/?PostBackAction=BlogTags I've tried different ways of building the link reference, but none seem to work when I am not logged in. Can anyone explain why the url link is built differently and how I can get around this? Thank you, jim

Comments

  • edited November 2006
    Edit: will think to that tomorrow
  • There is no reason for GetUrl() to return two different url when you are logged in and when you are not. It can't be this part of the code that is the problem... Well I don't think.
  • Jim, isn't this localhost behavior only (i.e. does the problem occur when you run it off a server?)
  • It does the same thing on my live forum.
This discussion has been closed.