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

Problem with extensions in v1.0

edited May 2006 in Vanilla 1.0 Help
Am I missing something? In version 1.0 all that's supposed to be needed to make extensions work is to upload them in their own folder to the extension folder right? I've uploaded Better BB Code, Html Formatter, BB Insert Bar, Vanillacons (so far). They show up under admin options but when I click on any of them to enable them an alert box comes up "Failed to modify extension".

Comments

  • Options
    lechlech Chicagoland
    In your appg or conf folder, there should be a file extensions.php if it's named "extensions-dist.php" rename it to extensions.php. Also make sure the file has the correct permissions to be written to. IE: chmod 0666 extensions.php to fix it up proper.
  • Options
    I found extensions-dist.php in conf and renamed it to extensions.php and set permissions to 666. Still getting the alert box "Failed to modify extension"
  • Options
    lechlech Chicagoland
    that's quite odd, while elevating the permissions of the folder shouldn't be necessary, is there any php specific error being thrown? or is it just a vanilla error stating it's unable to modify? Also, are you able to enable/disable other extensions and verify that the file /conf/extensions.php is being updated? All the files within /conf/ should be writable.
  • Options
    Do you have the most recent version from svn? It may be the same as the issue already adressed in this thread.
  • Options
    I would like to confer that not having read/write permissions will cause this error. I bumped into it myself this morning.
  • Options
    I tried these instructions from the thread jakob_r posted a link to, but instead of being redirecred to the page that performs the action I get redirected to the generic 404 page for my host. Open up js/ajax.js and uncomment line 50 so it looks like this: document.location = DataSource; This will make it so that the ajax request will instead redirect you to the page that performs the action. So, when you click any ajax button, it will redirect you to the ajax handler page so you can see what exactly is going wrong. If you see any error messages when you try to turn an extension on or off, paste it in here. I've also discovered in the meantime, switching between 'small input' and 'big input' for the comment box brings up an alert box "Failed: (404) Not Found". Although the comment box does resize.
  • Options
    MarkMark Vanilla Staff
    that means that your paths aren't set up correctly. What is the url where it is actually sending you?
    You can find out by re-commenting out that line and then adding this:

    alert(DataSource);

    When it alerts the location, you should see pretty quickly what the problem is.
  • Options
    Thanks Mark that helped. In both cases it was pointing to files inside the ajax folder. When I went to check the location in my directory I discovered there was no ajax folder at all. Same with the folder I extracted everything to locally. Looked in the zip older and there it was. For some reason it never got extracted when I unzipped everything. Amazing how much better things work when all the folders are present! ;-) Still having problems with BBInsertBar. There seems to be a conflict with Better BB Code. When both are installed the tool bar appears when the page is loading but then it disapears. And even when it's installed alone clicking on any of the menu items does nothing. Also, there's a Preview Post option in your forum here. I've looked through the set up options and the add ons but havn't found anything for that. Did I miss it somewhere?
  • Options
    The BBInsertBar is hidden, when there's the Text Option selected and when you select the Html or BBCode Option the Bar is displayed. Till yesterday there was an version uploaded that didn't work, i've made a little mistake, but I've updated the extension yesterday.
  • Options
    Thanks hutstein. I just downloaded it yesterday, maybe I just missed the updated version by a little bit. I'll go try downloading again, hopefully that'll do it.
  • Options
    MarkMark Vanilla Staff
    Here are all of the extensions in development with Vanilla 1. Not all of them work, so beware: http://lussumo.com/svn/vanilla/trunk/extensions/ I think this is the one you're looking for: http://lussumo.com/svn/vanilla/trunk/extensions/PreviewPost/
This discussion has been closed.