1 (edited by pokemon_jojo 2016-09-16 13:32)

Topic: OLD TOPIC TO DELETE

OLD TOPIC TO DELETE

Re: 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. sad

-Tim

3

Re: OLD TOPIC TO DELETE

I think this could be a problem with your server : do you have all the authorizations ?

Re: OLD TOPIC TO DELETE

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

Re: OLD TOPIC TO DELETE

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

Re: OLD TOPIC TO DELETE

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.

Re: OLD TOPIC TO DELETE

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

Re: OLD TOPIC TO DELETE

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

Re: OLD TOPIC TO DELETE

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)

Re: OLD TOPIC TO DELETE

yelowpunk wrote:

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

pokemon_jojo wrote:
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.

Re: OLD TOPIC TO DELETE

The uploaded images are written with permission 600. The mini images are fine. How to fix the uploaded images to be 644? Thank you.

Re: OLD TOPIC TO DELETE

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

Re: OLD TOPIC TO DELETE

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

Re: OLD TOPIC TO DELETE

I think you were missing the GD library if you were getting those imagecreatefrom errors

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

15

Re: OLD TOPIC TO DELETE

hahha I just visited the demo page - FireFox prevented this site from opening 5913 popups - Dude are you insane? smile

Any technology distinguishable from magic, is insufficiently advanced.
Official Danish mirror for punbb: http://mirror.ordo.dk/punbb.org/

Re: OLD TOPIC TO DELETE

any way to make it a movie gallery also? or is it limited to images?

Re: OLD TOPIC TO DELETE

For the moment, it's limited to images.

18

Re: OLD TOPIC TO DELETE

Looks like a great plugin, though can it support sub folders rather than placing all of the images/pictures together? Cheers! big_smile

Re: OLD TOPIC TO DELETE

In the next version i 'll include sub-folder ^^.

Re: OLD TOPIC TO DELETE

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?

21 (edited by af3 2005-06-15 14:46)

Re: OLD TOPIC TO DELETE

great mod..
i added some javascript to popup images on click.

possible to add threaded comments on images soon?
tq

22 (edited by af3 2005-06-16 05:11)

Re: OLD TOPIC TO DELETE

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>

23 (edited by Nuphor 2005-08-03 16:07)

Re: OLD TOPIC TO DELETE

Whoops, wrong thread.

24

Re: OLD TOPIC TO DELETE

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

25

Re: OLD TOPIC TO DELETE

anyway you can add a category feature?

Life depends on art ~Daniel Gallegos
http://zenkoashikaga.deviantart.com/