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.
Options

change the "home" link at the top..

ewmewm New
edited February 2007 in Vanilla 1.0 Help
I've just installed Filebrowser and all went well. The one thing that I'd like to change is the link in the upper right that takes you back to the main directory. On my install it goes back to http://www.mysite.com/myfiles?fpp=10 and I get and error "Directory Listing Denied - This Virtual Directory does not allow contents to be listed." How can I change it to go back to http://www.mysite.com/myfiles/index.php so I don't get the error? I've added that link to the introduction section, but that's not very elegant. Thanks for any help you can send my way...

Comments

  • Options
    Have you tried playing around with the paths and such in the config file?
  • Options
    I've looked through the code, but I'm not very good at php, so I don't have a clue what or where to make changes. So if anyone could point me to the right line number, etc. I'd greatly appreciate it. Thanks, Ed
  • Options
    I made a mod to add a Home link in front of the Lussumo Filebrowser title. In the _config.xml file, I changed the tag to:
    <PageTitle>[a href="http://localhost/Vanilla.1"]Home[/a] Lussumo Filebrowser 1.3.4</PageTitle>
    Then, in the index.php file, I added:
    $this->PageTitle = str_replace("[","<", $this->PageTitle); $this->PageTitle = str_replace("]",">", $this->PageTitle);
    after:
    $this->PageTitle = $XMan->GetNodeValueByName($MyConfig, "PageTitle");
    so that it would convert the [] to the link tag as in the PageIntroduction.
  • Options
    Thanks jimw, That seems to work pretty well. It looks like changing the link on the right side will get messy if you have a lot of files to browse since it's tied into files/page. Ed
This discussion has been closed.