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.

Vanilla Pre-Release 2

13

Comments

  • blizeHblizeH ✭✭
    edited June 2006
    Forum link - I'm not sure of the PHP version though sorry, how do I find out?

    // just checked - PHP version 4.4.2
  • Sure. It could be that your server's default settings are lax...

    If I gave you access would you want to have a look?
  • Cheers for the reply Mark,
    just redownloaded it again from the top link in this thread and still have the same problem?...:(

    Looks like its working pretty much, but it just wont let me get past step two as it insists that it is installed already.
  • MarkMark Vanilla Staff
    @blizeH: Wow, that's a wierd one. It actually shows the "format comments as" text but no radios. Hmm. Open up themes/post_formatter.php and make sure it looks like this:

    <?php // Note: This file is included from the library/Vanilla/Vanilla.Control.DiscussionForm.php class. if ($this->Context->Session->User->Preference('ShowFormatSelector') && $FormatCount > 1) { $sReturn .= '<li id="CommentFormats">' .$this->Context->GetDefinition('FormatCommentsAs') .$f->Get() .'</li>'; } else { $FormatTypeToUse = $this->Context->Session->User->DefaultFormatType; if (!array_key_exists($FormatTypeToUse, $this->Context->StringManipulator->Formatters)) { $FormatTypeToUse = $this->Context->Configuration['DEFAULT_FORMAT_TYPE']; } $sReturn .= '<li class="Invisible"><input type="hidden" name="FormatType" value="'.$FormatTypeToUse.'" /></li>'; } ?>

    If it does look like that, add this on line 5 (move the text currently on line 5 down):

    if ($this->Context->Session->UserID == 1) print_r($f);

    Log in with your Admin account and go to "start a new discussion" to see what gets echoed. I'm trying to see if the radio control is getting filled properly.

    @giginger - shell access? You don't need to give me access. Just navigate to your conf folder and do this:

    ls -al

    Then paste the results into a message here. You might want to whisper it to me...
  • MarkMark Vanilla Staff
    @rockwaldo: what version of PHP and MySQL are you running?
  • erk, now thats a question.

    http://www.stillwater-rock.com/check_info.php

    PHP 4.4.1
    MySQL 3.23.49 (is that right?)
  • Its a windows hosting as well incidentally
  • blizeHblizeH ✭✭
    Mark, you're an absolute legend, I copied and pasted your original code and it works a treat now, thank you!
  • MarkMark Vanilla Staff
    @rockwaldo: Being a windows server shouldn't be a problem. I'm developing on Windows right now and I've tested this code on windows servers as well as various flavours of linux. I don't see anything wrong with your versions either. I've tested with php 4.4.1 on my local windows machine. Gimme a couple of minutes to think about this one...

    @blizeH: Did you download the pre-2 zip? It should have been exactly the same as what I posted above. Maybe there was just an uploading problem?
  • edited June 2006
    I get the Vanilla seems to have been upgraded already. You will need to remove the conf/settings.php and conf/database.php files to run the upgrade utility again. as well...
  • blizeHblizeH ✭✭
    I'm not too sure, I don't think it's an upload problem since there was actually more text in the file that I had on the server than what you gave me, I'm really not sure sorry Mark :(
  • MarkMark Vanilla Staff
    @blizeH: I'm just asking because it makes me wonder what other files you haven't got the right copy of and how it might adversely affect your forum.
  • blizeHblizeH ✭✭
    Okay, I've just checked and it indeed must of been an upload error, I've dragged the installation file from the recycle bin and the code matches yours perfectly, sorry to of been such a pain.

    <?php // Note: This file is included from the library/Vanilla/Vanilla.Control.DiscussionForm.php class. if ($this->Context->Session->User->Preference('ShowFormatSelector') && $FormatCount > 1) { $sReturn .= '<li id="CommentFormats">' .$this->Context->GetDefinition('FormatCommentsAs') .$f->Get() .'</li>'; } else { $FormatTypeToUse = $this->Context->Session->User->DefaultFormatType; if (!array_key_exists($FormatTypeToUse, $this->Context->StringManipulator->Formatters)) { $FormatTypeToUse = $this->Context->Configuration['DEFAULT_FORMAT_TYPE']; } $sReturn .= '<li class="Invisible"><input type="hidden" name="FormatType" value="'.$FormatTypeToUse.'" /></li>'; } ?>
  • I'm with you rockwaldo I even took out that line from the updater and I get cgi error...
  • ouch. Any ideas Mark? (no rush like)...:-)
  • I'm gonna give a shot at this updater for my forum, but I'm just wondering that once the final release is out will there be some sort of documentation we could look at to know which files where changed since this release?
  • MarkMark Vanilla Staff
    edited June 2006
    some sort of documentation we could look at to know which files where changed since this release?

    All of them. It's practically an entirely new application.

    @rockwaldo && corn13read: I don't know what to tell you. I'd really need to get access to one of your servers and be able to delete those conf files and wipe the db (if installing fresh) or restore the old db (if upgrading) and run a bunch of tests.
  • I've a feeling he means whats changing between v1 and v1 pre2, Mark. Could have mis interpreted though. I assume in that case there wont be a great deal depending how many bugs come in?
  • MarkMark Vanilla Staff
    Oh. No, there's no documentation for that. Other than the svn repository history, of course.

    Like I said, I will be very explicit with the changes once version 1 comes out. Until then it's wild west stylee.
  • MarkMark Vanilla Staff
    For those following: I'm emailing with cord13read now to get access to his server and test it out...
This discussion has been closed.