1
znaxx
Re: Can't set forum to 'thread' for default.
  • 2003/11/28 20:11

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


Actually I did change it in the systems settings and I changed my account. Do all the accounts have to be changed for this to take effect ?



2
znaxx
Re: Can't set forum to 'thread' for default.
  • 2003/11/28 15:56

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


I've set threaded, oldest first in the general settings in the systems admin. I've set the same setting in the users settings and it still shows the forums in "flat" mode.
All the other users have the same problem, old and new users.
Is there anyway I can modify the php file or change it in the database because I really don't want it flat...

Appreciate the help guys/girls



3
znaxx
Re: Can't set forum to 'thread' for default.
  • 2003/11/27 23:19

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


I try to edit the users (including myself) and it still shows flat as default.
I have the text in the forum where I can choose flat or threaded but it still reverts back to flat every time...
Other users get the same result...



4
znaxx
Re: Can't set forum to 'thread' for default.
  • 2003/11/27 23:02

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


Thx for a fast reply but I don't get it... I can't change it for the already registred users... they still get the "flat" view...



5
znaxx
Can't set forum to 'thread' for default.
  • 2003/11/27 22:47

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


How and where can I set the default view in the forums to be threaded instead of the flat view? Can't find it anywhere and I'm no php guru...

Appreciate any help.



6
znaxx
Re: Problems uploading avatars and images
  • 2003/11/21 16:04

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


Ok. My webhost ishttp://www.1go.dk and according to them this php script will work for uploading files:

<?php 

// general configuration 

$upload_path "docs/";  // path to your upload directory 
$extval_use 1// turns on/off extension validation 
// forbidden extensions 
$extval = array("php""php3""php4""asp""bat""exe",  
                
"com""jsp""cfml""shtml""dtcl"); 
$filesize_limit_use 1// turns on/off size check 
$filesize_limit 200// file size limit (in kB) 

// language customization 
$message["fileisbig"] = "Filen er større end den tilladte størrelse på (" 
                        
$filesize_limit "kB)"
$message["invext"] = "Filer af denne type kan ikke uploades!"
$message["incomplete"] = "Upload lykkedes ikke."
$message["complete"] = "Upload er fuldført."
$message["uploadbutton"] = "Upload"
$message["uploadtxt"] = "Fil, der skal uploades: "
$message["fileexists"] = "Filen findes i forvejen!"

$rc 0

if ( isset(
$HTTP_POST_VARS["upload"]) ) { 

   
$orig_name $HTTP_POST_FILES['userfile']['name']; 

   
$filename ereg_replace("[^a-z0-9._]""",  
                
ereg_replace (" ""_",  
                 
ereg_replace("%20""_",  
                  
strtolower($orig_name)))); 

   
// <filesize> 
   
if($filesize_limit_use=1) { 

      
$filesize $HTTP_POST_FILES['userfile']['name'] / 1024//filesize in kB 

      
if($filesize_limit $filesize) { 
         echo 
"<p><font color='red'><center>" 
              
$message["fileisbig"]."</font></center></p>"
         
$rc 1
      } 
   } 
   
// </filesize> 

   
if ( $rc == ) { 
      
// <extension_validate> 
      
if($extval_use=1) { 

         
$extget substrstrrchr($filename"."), 1); 

         
$found in_array($extget$extval); 

         if ( 
$found ) { 
            echo 
"<p><font color='red'><center>" 
               
$message["invext"]."</font></center></p>"

            
$rc 2
         } 
      } 
      
// </extension_validate> 
   


   if ( 
$rc == ) { 
      
// <file exists verification> 
      
echo "<p><center>Trying to upload to: "  
         
$upload_path $filename "</center></p>n"

      if ( 
file_exists($upload_path.$filename) ) { 
         echo 
"<p><font color='red'><center>" 
            
$message["fileexists"]."</font></center></p>"

      } else { 
         if( 
move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'],  
                   
$upload_path.$filename) ) { 
            echo 
"<p><center>" $message["complete"]."</center></p>"
         } else { 
            echo 
"<p><font color='red'><center>" 
               
$message["incomplete"]."</font></center></p>"
         } 

      } 
      
// </file exists verification> 
   




echo 

<html><head></head><title>Upload-script</title><body> 
<h3>Upload filer</h3><br><br> 
<form enctype='multipart/form-data' method='post' action=''> 
<input type='hidden' name='action' value='upload'> 
<table frame=box rules=none border=0 cellpadding=2 
       cellspacing=0 align='center'> 
   <tr> 
      <td>"
.$message["uploadtxt"]."</td> 
      <td><input type='file' name='userfile'> <input type='submit' name ='upload' 
                 value='"
.$message["uploadbutton"]."'></td> 
   </tr> 
   <tr> 
      <td></td> 
      <td></td> 
   <tr> 
</table> 
</form>"


?>



Is there anyway I can modify the upload script in XOOPS so that it will work like this one?




7
znaxx
Re: Problems uploading avatars and images
  • 2003/11/20 18:16

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


When I try to upload an image the php debug gives me this msg:

Warning [PHP]: getimagesize(): open_basedir restriction in effectFile(/tmp/phpL19NoJis not within the allowed path(s): (/var/www/hotels/) in file class/uploader.php line 183


I'm no php guru so I have no idea what to do...
Appreciate any help I can get....



8
znaxx
Re: Problems uploading avatars and images
  • 2003/11/20 13:53

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


Anyone know the answer to this ?
Still haven't figured it out and any help would be greatly appreciated.



9
znaxx
Problems uploading avatars and images
  • 2003/11/17 12:06

  • znaxx

  • Just popping in

  • Posts: 9

  • Since: 2003/11/17


I can't upload images to my server.
When I try yto upload an avatar I get an error msg saying that it's an invalid file format. I've hecked and the avatar is in .gif and wel whitin the required size.
I can however upload avatars through the admin module.
I also have the same problem with the cdbase module. I can't upload an images at all.
I've checked and the upload dir is chmod 777.
Appriciate any help...

Other then this, thanks alot for a kick ass product.




TopTop



Login

Who's Online

244 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 244


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits