![]() |
Instructions in the ZIP file (gallery.txt). Should explain most details of installation. I haven't done an INSTALL from scratch, so you get to beta test that part of the program.
The gallery itself seems quite stable. I added some load limiting/checking options before releasing as well. Let me know how your installs go, features you'd like to see, etc. If you want to see an example: http://www.noows.com/gallery.php?s=&forumid=88 |
Hadn't really explored the differences between JPG and GIF. I figured the files were so small, that file size wouldn't be much difference.. boy was I wrong. This is an updated copy that uses JPEG compression instead of GIF. If you've already install this hack, just replace the files, use a SQL tool to "DELETE FROM thumb" and rerun admin/gallerymakethumbs.php.
In the future I may make thumbnail type a config option, but when I saw 20k thumbnails go to 3-5k, I decided quality was a mute point. The main change is this line in functions.php: PHP Code:
PHP Code:
|
just another thing, what font and settings did you use for the gallery button ? mind attaching the psd file for it too :D
|
you forgot the thumb.php in the zip file! ;)
|
Quote:
|
Quote:
|
Would like to see it on someone else's site, post URL please.
|
Hey, great hack, but I'm having problems.
Parse error: parse error in /usr/local/xxxxxx/httpdocs/admin/galleryinstall.php on line 17 Looks ok to me, but I keep getting this. Using, Apache, RedHat Linux 7 -Tim |
Quote:
PHP Code:
|
Got a new one:
Warning: Division by zero in /usr/xxxxx/httpdocs/gallery.php on line 108 Should there be an "@" somewhere in there? |
I had the Gallery Load Limit
set to the default. I erased the value and the error does not come up now. |
Check out this attachement and tell me if something should be in the filedata, value box.
I also go to the /gallery.php and see no attachments. I see nothing but the blank template. |
Here is the entire substance of my gallery.php page.
|
Have you run yourforums.com/admin/gallerymakethumbs.php? It should spit out a list of file names for all the JPG/BMP/GIFs it finds in your existing attachment table.
|
I had to modify it a little:
makeThumb($thumb[attachmentid], $thumb[filename], $filename); unlink($filename); set_time_limit(); } ?> notice the change of set_time_limit(); I'm using safe mode php so it didn't like that. Anyhoo, I get a blank page. I have attachments, I even (just now) posted a new attachment and ran gallerymakethumbs.php. Still the blank page. |
Please Update the *.zip File!
thx |
It created the table. Then I ran gallerymakethumbs and got this:
Processing attachment #11: woodchips.jpg. Processing attachment #12: admin.gif. Processing attachment #13: 411people2.gif. Processing attachment #14: easton2.jpg. So that's good I guess. Still nothing in gallery.php Still no filedata value. I have ImageMagick, I can convert from telnet so I know it's installed correctly. What's up, Please? |
Quote:
safe_mode_exec_dir string If PHP is used in safe mode, system() and the other functions executing system programs refuse to start programs that are not in this directory. From what I saw in your database screenshot, the filedata field was blank. I'm guessing the inserts are failing. Hopefully you have rights to update your PHP.INI and add the above statement. Probably the safest thing to do is to make a copy of convert in your existing safe mode directory... pointing it at a shared bin directory kind of defeats the purpose. You may want to remove the line: PHP Code:
Obviously I didn't test in safe mode. =) |
|
Telnet in and go to a directory where you have some images.
Then type this: convert -geometry 120x120 filename.jpg new_filename.jpg this will create a thumg 120x120 of filename.jpg if you can do this than cool, your problem lies elsewhere and I can't help you because I'm too stupid to get this to work too (different problems) |
i haven't telnet access thats my problem!
|
Quote:
|
I installed it,
created the thumbs And the next step wuld be this http://www.dlrarmy.com/forums/gallery.php Warning: Division by zero in /home/dlrarmy/public_html/forums/gallery.php on line 108 And it doesn't show... yes I have ImageMagic and it is pointing to the right place What am I doing wrong? chris aol im sgtsling msn Sgtsling |
where do I set the options at?
When I ran instll it said done.. that is it. I am not runnin safe mode This stinks Chris |
Quote:
|
Here's a picture of the Image Gallery control panel with my settings. The only way I've duplicated the Div0 error is by having no values set.
I've fixed gallery.php to assign default values and do a few error checks. The new ZIP is attached to my 2nd post in this thread. Until I see some working installs, I'm not gonna hassle with versioning this. |
<a href="http://www.dlrarmy.com/forums/gallery.php" target="_blank">http://www.dlrarmy.com/forums/gallery.php</a>
IT just doesnt display the pics Yes I used your settings and i do have imagemagic Chris |
Here is the image, still does not work, but I have not made the suggested changes yet. I will let you know how it goes.
|
Still same thing, no pics. By turning off Safe mode, I have gotten my other gallery script working (not connected to MySQL or vB at all) which uses ImageMagick, so I know it works and that the location is correct.
What is up with this line: Find function acceptupload() (Line 1277): Find (Line 1347): $attachmentid=$DB_site->insert_id(); Change to: $attachmentid=$DB_site->insert_id(); How come it says nothing after that? Mistake? Should we be doing something at line 1277? |
Question: Since this gallery of images is being used on the forums which uses the PHP GZIP compression agent....if the admin has it set of course....does the PHP GZIP compress the images as well?
|
Quote:
|
Quote:
Er, that block of code reads as: Find function acceptupload() (Line 1277): Find (Line 1347): $attachmentid=$DB_site->insert_id(); Change to: $attachmentid=$DB_site->insert_id(); makeThumb($attachmentid, $attachment_name, $path); The first find function is just to get you in the correct block of code. |
For mojotim and others having problems. Just put this in your forums directory, along with gallery.php. Point your web browser at it or give me a URL. Just does a bunch of debug prints of script variables to help me track down where things are going wrong.
|
eva2000 - I tried using mod_gzip as per its instructions to gzp the images on my site...it didn't work....sometimes the images would load up broken....so there is a way but I'm not sure about PHP's gzip
|
Does this Image Gallery hack give me the ability to decide what usergroups have the right to view the gallery(s)?
|
Quote:
|
|
here is an image, I am using your templates.
|
Finally found a real problem, and it was a stupid one. I didn't escape my PHP variables in the install file, so they were interpreted as Null values and leaving blank spots in the templates.
Attached is a new galleryinstall.php, put it in your admin directory and run it. It will update the templates. I'll update the zip file after I eat dinner and mojotim confirms this works. |
Can you post one *.zip File when it will be work?
thx |
All times are GMT. The time now is 04:55 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|