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)

mojotim 07-01-2001 11:45 PM

All fixed, great job man!:p

Zamtil 07-01-2001 11:52 PM

<a href="http://www.vbulletin.com/forum/showthread.php?s=&postid=133145#post133145" target="_blank">http://www.vbulletin.com/forum/showt...145#post133145</a>

jarvis 07-02-2001 12:17 AM

Here is the error I get when uploading a file to my board. The upload works fine, but the convert appears not to...

Also, the program appears to work somewhat, but my thumbs are missing from the page...

I'm going to try the latest zip to see if that helps... Thanks!

GTW, this is Win2k, so I'll keep plugging away...

Sarge 07-02-2001 01:01 AM

almost

The thumbnails will not work

http://www.dlrarmy.com/forums/gallery.php

I have imagemagic installed BTW

Sarge 07-02-2001 01:03 AM

<a href="http://www.dlrarmy.com/forums/gallerydebug.php" target="_blank">http://www.dlrarmy.com/forums/gallerydebug.php</a>

Zamtil 07-02-2001 01:28 AM

Quote:

Originally posted by Sarge
almost

The thumbnails will not work

http://www.dlrarmy.com/forums/gallery.php

I have imagemagic installed BTW

Is the path to convert set correctly in the config?

Are you running in safe mode?

Sarge 07-02-2001 03:08 AM

it si the bsic red hat linux install and it works cause I use imagefolio

HOw could I tell if the path is incorrect?

Zamtil 07-02-2001 03:18 AM

Quote:

Originally posted by Sarge
it si the bsic red hat linux install and it works cause I use imagefolio


HOw could I tell if the path is incorrect?

At a shell prompt:
rpm -ql ImageMagick | grep convert

The setting I use by default is:
/usr/X11R6/bin/convert

Sarge 07-02-2001 03:39 AM

do you have a prompt for telnet?

TechTalk 07-02-2001 08:23 AM

My thumbs arent making their way into the thumbs table but im getting the processing messages.

http://www.iguanaland.com/vbforums/gallerydebug.php

Can anyone help?

Sarge 07-02-2001 11:51 AM

/usr/X11R6/bin/convert

Is my path....

It is right in the options.. still looking at broken thumbd.

HELP!

mojotim 07-02-2001 12:19 PM

Quote:

Originally posted by mojotim
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 thumb 120x120 of filename.jpg


You say you have ImageMagick but no thumbs to prove it.:confused: Try to do this telnet operation and see if it works.

Zamtil 07-02-2001 03:14 PM

Please check to see if you're running in safe mode.

An easy way to do this is to create a file called phpinfo.php. It should contain these 3 lines:

<?php
phpinfo();
?>

Put it in your forums directory and point your web browser at it. If you search for 'safe_mode', you should find 2 lines. safe_mode and safe_mode_exec_dir. If safe_mode is on, then safe_mode_exec_dir HAS to contain your a copy of convert. If you don't have shell access/admin access to your server, I doubt you will be able to make this change.

Sarge 07-02-2001 03:51 PM

safe_mode
Off Off

http://www.dlrarmy.com/forums/phpinfo.php

TechTalk 07-02-2001 06:15 PM

Safe mode off/off here too and images still not making it into the table.

http://www.glidetech.com/phpinfo.php

Zamtil 07-02-2001 06:39 PM

Quote:

Originally posted by TechTalk
Safe mode off/off here too and images still not making it into the table.

Is the filedata field in the thumb table blank? Trying to figure out if the error is in making the thumbs or just displaying them.

You can also try remarking out this line in functions.php:

unlink($thumbname);

Just put a // at the start of the line.

Then make a dumby post, with a BMP/JPG/GIF attachment. If ImageMagick part is working, it'll create a file:
/tmppath/th_[randomstuff].

/tmppath is most likely /tmp, but may vary.

TechTalk 07-02-2001 06:49 PM

My problem is with it being added to the DB. Looking at it thru phpmyadmin there are no records there.

I guess I will try the thing you mentioned above, although im not sure what difference that will make

~Chris

TechTalk 07-02-2001 06:56 PM

OK just tried that. The th_ files are showing up each time i post an image. They are all 0kb though :confused:

TechTalk 07-02-2001 06:59 PM

Another note. Running the gallerymakethumbs.php file also puts a temp file in the tmp directory for each attachment i have (all 0KB) but still nothing in the DB

~Chris

Zamtil 07-02-2001 07:06 PM

Quote:

Originally posted by TechTalk
Another note. Running the gallerymakethumbs.php file also puts a temp file in the tmp directory for each attachment i have (all 0KB) but still nothing in the DB

~Chris

Ok, what version of ImageMagick do you have installed? If it's RedHat, should be able to just: rpm -q ImageMagick at the command prompt.

If it's older then 5.3.3-2, let's try simplifying your convert statment. In functions.php, find this line:

PHP Code:

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

and change it to
PHP Code:

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

The -flatten parameter "flattens" out animated GIFs. Otherwise, convert tries to make a JPG for each frame of the GIF. 10 frames = 10 files, makes a real mess in the /tmp directory.

TechTalk 07-02-2001 07:14 PM

That did it bro. Thanks alot ;)

I had installed ImageMagick-4.2.9-3

~Chris

TechTalk 07-03-2001 01:32 AM

Real quick question. Can you add a function to gallery.php that will generate a drop down box with all the users names in it so that you can view the gallery by user ?

It sounds easy but im not sure how to go about it.

Thanks
~Chris

Zamtil 07-03-2001 02:27 AM

Quote:

Originally posted by TechTalk
Real quick question. Can you add a function to gallery.php that will generate a drop down box with all the users names in it so that you can view the gallery by user ?

It sounds easy but im not sure how to go about it.

Thanks
~Chris

I thought about it, but ... my site has 900+ users and growing, I guess it could be an option. Check my membership list, simple template editing lets you add links from each individual user to their gallery.

TechTalk 07-03-2001 02:29 AM

Yea i can do the template thing. But i was hoping to have another dropdown on the actual gallery page with all the members names :cool:

~Chris

ToraTora! 07-03-2001 02:48 AM

a guy should be able to do that simular to the way the forums work in the "jump box". each new forum added, shows up in the jumpbox automatically, meaning, that each new member that posted a pic to the gallery, could be automatically entered in the "drop down" simular to the jump box using a "last post by(?)" type of command.

TechTalk 07-03-2001 05:46 PM

Also while im thinking about it...... Do i have to run the makethumbs every time new files are added?

The reason i ask is i can run it now and each time i do i get this:
Processing attachment #1: iguana-1.gif.
Processing attachment #23: mov00010.mpg.
Processing attachment #24: mov00012.mpg.
Processing attachment #68: caresheetniad.zip.
Processing attachment #103: tarzan2.zip.
Processing attachment #104: iguanas.scr.
Processing attachment #158: swish-ig.gif.

I can see it not processing the zip scr or mpg files but is it having a problem with the images with a dash (-) in the name? Seems like they stay in this list.

Thanks
~Chris

Zamtil 07-03-2001 06:10 PM

Quote:

Originally posted by TechTalk
Also while im thinking about it...... Do i have to run the makethumbs every time new files are added?

The reason i ask is i can run it now and each time i do i get this:
Processing attachment #1: iguana-1.gif.
Processing attachment #23: mov00010.mpg.
Processing attachment #24: mov00012.mpg.
Processing attachment #68: caresheetniad.zip.
Processing attachment #103: tarzan2.zip.
Processing attachment #104: iguanas.scr.
Processing attachment #158: swish-ig.gif.


I can see it not processing the zip scr or mpg files but is it having a problem with the images with a dash (-) in the name? Seems like they stay in this list.

As long as you made the necessary changes to functions.php - adding makeThumb and modifying acceptupload, new attachments will be inserted automatically.

As for the gifs, are they animated? If so, thumbnails aren't gonna be generated with your older version of ImageMagick.

Sarge 07-11-2001 07:18 AM

It Worked!

Question
how can I change it so that the poulldown only selects forums that are active?
I have a few inactive forums I use with the webblog and it shows them.,,.. and I don't want them to

RobAC 07-13-2001 02:32 AM

quick question, do you have to have the latest version of ImageMagick installed or will the code change that was suggested for TechTalk work on the older version. TechTalk?

Sarge 07-13-2001 04:29 AM

The code change works. Apparently i have an older version

I cannot use this till I can change the dropdown to show only active forums!

Chris

White Knight 07-13-2001 04:43 PM

Ok, I know a lot of people got this to work but I need to say a couple things since I had a lot of problems

First, The instructions are kinda slippy. It didnt really point to where things should go. There are line numbers but that doesnt do any good with notepad.

It doesnt have everything in order. Should you upload all the files first? which goes next. In order would be nice.

I have installed UBB hacks. Vb hacks and custimized some of the hacks. This one I just couldnt figure out.

I think the dox needs a bit of a updating. Step by step instructions. I know there a pain in the butt to write but its helpful for other people to do the hack then trying to figure out what you ment.

Great hack idea. It looks great on boards I see it on. But docs could use some help.

This is only a suggestion. If the dox do get updated can you please reply that you updated them. Then I will take a third steb at it.

mojotim 07-13-2001 05:51 PM

I added a little more to Zamtil's instruction in the hopes to make the install easier for everyone. It's a great hack and works great as well. You just have to know how to install it.

This is how I did it just this morning on a new site. It might help someone out.
This should go without saying, but as with any hack Zamtil nor I take any responsibilty if you screw up your site. I have used the hack on 4 seperate boards and have not run into any problems. That being said, be careful and backup anyway.

RobAC 07-13-2001 05:52 PM

mojotim, thanks. I'll be installing this hack shortly so this will come in handy.

RobAC 07-13-2001 09:58 PM

I just went into my change options in the Admin CP and the options to change for the gallery have been added three separate times.

mojotim 07-13-2001 10:06 PM

Everytime you run galleryinstall.php it adds the templates and options again. The ones at the top are the new active ones. I tried to peek at your site but it was down for maintenance.

RobAC 07-13-2001 10:19 PM

Quote:

Originally posted by mojotim
Everytime you run galleryinstall.php it adds the templates and options again. The ones at the top are the new active ones. I tried to peek at your site but it was down for maintenance.
So how do you delete the others?

mojotim 07-13-2001 10:25 PM

i think you'd have to go through the style to take out the ones in the options. I left'em, screw it...I've got a lot more to worry about than that :p
You can remove the templates easy enough from the control panel. Just leave the top one of each gallery component.

Zamtil 07-13-2001 10:25 PM

Quote:

Originally posted by RobAC
I installed the hack, but this is what I get. I made the changes to the code as suggested here in the thread since I'm running the older version of ImageMagick. Any ideas what I should do?

http://corvetteactioncenter.com/forums/gallery.php

Have you run admin/gallerymakethumbs.php?

I'm not sure how you got the admin options three times, sounds like you did a couple of refreshes of galleryinstall.php. Should be able to clean those up with your favorite SQL tool.

Zamtil 07-13-2001 10:28 PM

<a href="http://your.url.com/admin/setting.php" target="_blank">http://your.url.com/admin/setting.php</a>

It ships with 2.0.1, I assume 2.0.0 as well. It's just a little utility JelSoft wrote/provides for customizing options. The Image Gallery stuff should be down near the bottom, leave one grouping of them, delete the others.

RobAC 07-13-2001 10:30 PM

When I initially ran the make thumbnails file it listed all the files that it made....282...etc. The files are listed in the database, but they are empty. If I try running it again, all I get is this:

Processing attachment #31: buyersguide.txt. Not sure what that is, but I don't think it would hamper making thumbnails for any of the others.


All times are GMT. The time now is 04:32 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.01556 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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