vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Image Gallery v1.0 (https://vborg.vbsupport.ru/showthread.php?t=21602)

06-29-2001 10:00 PM

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

Zamtil 06-30-2001 03:38 AM

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:

system("$galleryconvert -geometry '160x120>' $path GIF:$thumbname"); 

to

PHP Code:

system("$galleryconvert -geometry '160x120>' $path -quality '75' JPEG:$thumbname"); 


eva2000 06-30-2001 03:41 AM

just another thing, what font and settings did you use for the gallery button ? mind attaching the psd file for it too :D

Znaper 06-30-2001 03:42 AM

you forgot the thumb.php in the zip file! ;)

Zamtil 06-30-2001 03:45 AM

Quote:

Originally posted by eva2000
just another thing, what font and settings did you use for the gallery button ? mind attaching the psd file for it too :D
It's the exact buttons from the vBulletin 2.0 graphics development kit. I just edited one of the top_ templates and the find template. Changed the word to gallery. Actually, I didn't even save the Photoshop version, just the exported GIFs.

Zamtil 06-30-2001 03:48 AM

Quote:

Originally posted by Znaper
you forgot the thumb.php in the zip file! ;)
Yep, you're right. The ZIP is now: JPEG thumbnails + thumb.php. About 8 people got ahold of the original GIF version, I'd suggest switching to this.

Zamtil 06-30-2001 03:52 PM

Would like to see it on someone else's site, post URL please.

mojotim 06-30-2001 05:24 PM

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

Zamtil 06-30-2001 05:48 PM

Quote:

Originally posted by mojotim
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

Change line 17 to this:

PHP Code:

$DB_site->query("INSERT INTO setting VALUES (NULL,$groupid,'Pages to show in nav bar','gallerynavpages','5','','',1)"); 

Looks like there's an extra ") at the end of the line in the released file.

mojotim 06-30-2001 05:56 PM

Got a new one:

Warning: Division by zero in /usr/xxxxx/httpdocs/gallery.php on line 108

Should there be an "@" somewhere in there?


All times are GMT. The time now is 07:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01775 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete