Topic: OLD TOPIC TO DELETE
OLD TOPIC TO DELETE
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → OLD TOPIC TO DELETE
OLD TOPIC TO DELETE
Updated the PBB Gallery to 1.2, used install_mod.php to create database, and still getting the:
ERROR : The server could not record the downloaded file. Contact the administrator email@address.com
error.
-Tim
I think this could be a problem with your server : do you have all the authorizations ?
Yes; it's my server. It's a G3 box with OS X 10.3 Server that I'm looking at right now.
I can chmod the hell out of it if neccesary, but the database entries are done right there, right? So, creating a database would mean that I have the correct permissions..
-Tim
I tried to change the permissions to 666, and it still gave me the same error. Changing to 777 yielded this error:
Fatal error: Call to undefined function: imagecreatefromjpeg() in /Library/WebServer/Documents/sites/ironcurtain/forum/gallery.php on line 173
It wasn't a nice, pretty error with css and the page still rendering, but the operating stopping white page with black text kind of error, if that makes sense.
I went back and forth to 666 and 777 just to make sure, and it's a repeatable error.
I changed the perms back to the default 755 for now.
-Tim
hum...if you have your own server, and you get some error, i think you have not a good version of php. But if punbb work correctly (with the avatar upload), normaly the PBB gallery, should work correctly.
The avatar gallery works fine. But it's just image upload to a directory.
The PunBB Gallery requires some sort of image manipulation, no?
-Tim
I uncommented php_gd2.dll from php.ini and made sure the extension dir was pointed to the right spot.. and then rebooted my W2K3 Server (IIS6) and the image gallery started working!
hope that helps, great work on the mod pokemon_jojo
The PunBB Gallery requires some sort of image manipulation, no?
Nop ! No manipulation, just a limitaion about max size (see your php.ini, but normaly 2 or 3 Mo)
The avatar gallery works fine. But it's just image upload to a directory.
The PunBB Gallery requires some sort of image manipulation, no?
-Tim
yelowpunk wrote:The PunBB Gallery requires some sort of image manipulation, no?
Nop ! No manipulation, just a limitaion about max size (see your php.ini, but normaly 2 or 3 Mo)
I'm testing this on OSX 10.3.8 Client and this is the error I'm getting:
PHP Fatal error: Call to undefined function: imagecreatefromgif() in /Library/WebServer/Documents/punbb/gallery.php on line 169
Tim, check your Apache error log to see what error message you are getting.
The uploaded images are written with permission 600. The mini images are fine. How to fix the uploaded images to be 644? Thank you.
I'm getting the same error, but different line.
I believe I'm getting line 175 (the one that describes .jpg images) while 169 describes .gif images.
Working off memory, though.
-Tim
Update:
I just got my clammy little hands on Mac OS X 10.4 Server and installed PHP 5 onto it, and everything works great.
It was probably my PHP version that was incompatible with certain functions or calls or something. I won't start making believe I know what I'm talking about, but it works now, and I couldn't be happier.
Well...
Actually, I could be happier.
I think this would make for a really good update to PBB Gallery. User-made sub-albums or 'Pages'. This way, if I have a set of 4 or 5 images, and another set of 12, they won't be mixed up together but on seperate 'Pages', so to speak.
But, then again, it's already a great mod as it is, and infinitely easy to set up.
Thanks!
-Tim
I think you were missing the GD library if you were getting those imagecreatefrom errors
hahha I just visited the demo page - FireFox prevented this site from opening 5913 popups - Dude are you insane?
any way to make it a movie gallery also? or is it limited to images?
For the moment, it's limited to images.
Looks like a great plugin, though can it support sub folders rather than placing all of the images/pictures together? Cheers!
In the next version i 'll include sub-folder ^^.
it might be nice for it to look like punbb, you know so the gallery looks like index.php but instead of forums it has gallerys, btw any chance of png support?
great mod..
i added some javascript to popup images on click.
possible to add threaded comments on images soon?
tq
I added below to have the large image popup in a window. Also, if you want to show the mini images to all visitors, but disable link to the larger/original image size; add this:
1. Line 43 of gallery.php
Comment out:
//Hide Gallery from Guest
// if ($pun_user['is_guest'])
// message($lang_common['No permission']);
2. Add inside the <script> of the Livescroll () function BEFORE </script>:
PositionX = 100;
PositionY = 100;
defaultWidth = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>AF3 2005</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();
}}
* the above javascript code is not mine, it was probably pasted from some javascript sites which i have forgotten, probably by a guy named George :-) anyway thanks George!
3. Line 367, replace the <DIV> part where the mini images are shown with this (pardon my crude php, but it works for me):
<div style="width:<?php echo $largeur_max+$margin; ?>px;height:<?php echo $hauteur_max+$margin; ?>px;background-color: #F5F5F5;background-image: url(<?php echo $rep_upload; ?><?php echo $prefixe.$gal['date_ajout'].$gal['ext']; ?>);background-repeat: no-repeat;background-position: center center;text-align:center;">
<?php
$file_loc = $rep_upload;
$file_loc .= $gal['date_ajout'].$gal['ext'];
$allow = 'javascript:popImage(\'';
$allow .= $file_loc;
$allow .= '\')';
if ($pun_user['is_guest']) $allow = 'javascript:alert(\'Please login to view the picture in its original size\')';
?>
<a href="<?php echo $allow ?>" onMouseOver="LiveScroll('id_<?php echo $gal['id'] ?>')" onMouseOut="LiveScroll('id_<?php echo $gal['id'] ?>')">
<img style="width:<?php echo $largeur_max+$margin; ?>px;height:<?php echo $hauteur_max+$margin; ?>px;border:1px solid #666;" src="<?php echo $rep_upload; ?>pix.gif">
</a>
</div>
Whoops, wrong thread.
Hi,
Great Gallery! Only problem though that I do not see a "Delete Function" for the member enabling him to delete his on pics after uploading if he chooses. Will this feature be add on later?? Just wondering...
Thanks
anyway you can add a category feature?
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → OLD TOPIC TO DELETE
Powered by PunBB, supported by Informer Technologies, Inc.