@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...
@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?
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...
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
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 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?
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?
Comments
// just checked - PHP version 4.4.2
If I gave you access would you want to have a look?
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.
<?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...
http://www.stillwater-rock.com/check_info.php
PHP 4.4.1
MySQL 3.23.49 (is that right?)
@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?
<?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>'; } ?>
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.
Like I said, I will be very explicit with the changes once version 1 comes out. Until then it's wild west stylee.