Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Uploaded Files and Image Browser (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Uploaded Files and Image Browser
#22612
Uploaded Files and Image Browser 1 Year, 2 Months ago  
Hi!

Never changed / touched the upgradescript or PHP files, but I assume something is wrong:

when clicking on Uploaded Files/Browser function, it shows the following value:

www.test.eu/home/strato/www/dv/www.test....files/screenshot.zip

Correct one should be:

/strato/www/dv/www.test.eu/htdocs/images/fbfiles/files/screenshot.zip or

www.test.eu/images/fbfiles/files/screenshot.zip


or

It combines two pathes together, something must be wrong with the absolut URL.

If you want to download it in Uploaded Files/Images Browser, it shows above URL.

Something missing?
dvbshop (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#25017
Re:Uploaded Files and Image Browser 1 Year, 1 Month ago  
where can i get an image browser so that when somebody uploaded an image it goes to a browser in order for my site not to handle all images of the user.

thanks in advance
sam (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#33515
Re:Uploaded Files and Image Browser 11 Months, 3 Weeks ago  
any news about it?

I assume it's just THAT code, with has mismatches:

[code:1]function browseUploaded($database, $option, $type)
{
if ($type)
{ //we're doing images
$dir = @opendir(FB_ABSUPLOADEDPATH. '/images');
$uploaded_path = FB_ABSUPLOADEDPATH. '/images';
}
else
{ //we're doing regular files
$dir = @opendir(FB_ABSUPLOADEDPATH.'/files');
$uploaded_path = FB_ABSUPLOADEDPATH.'/files';
}

$uploaded = array ();
$uploaded_col_count = 0;

while ($file = @readdir($dir))
{
if ($file != '.' && $file != '..' && is_file($uploaded_path . '/' . $file) && !is_link($uploaded_path . '/' . $file))
{
//if( preg_match('/(.gif$|.png$|.jpg|.jpeg)$/is', $file) )
//{
$uploaded[$uploaded_col_count] = $file;
$uploaded_name[$uploaded_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)..*$/', '1', $file)));
$uploaded_col_count++;
//}
}
}

@closedir ($dir);
@ksort ($uploaded);
@reset ($uploaded);
HTML_SIMPLEBOARD::browseUploaded($option, $uploaded, $uploaded_path, $type);[/code:1]

located in admin.fireboard.php
dvbshop (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top