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)
-   -   OakGallery 2.0 Released ! [Great image gallery] (https://vborg.vbsupport.ru/showthread.php?t=51255)

Zelda-King 04-06-2003 11:58 PM

I know this isn't directly a hack question but I don't really know the procedure to install ImageMagick. The installation instructions are gobbledeegook to me. I try sticking it on the server as a .tar file and the server doesn't want to know because it's gzipped, so, I unzip it myself and upload it. Then what? and what directory should I put it in? I know it's meant to install itself into the bin directory or something. If I open configure in a browser though I just get a text screen. How's it meant to install? I can't have the thumbnails without ImageMagick.

Moyses 04-07-2003 01:33 AM

I've getting this error:

PHP Code:

WarningFailed opening 'sql-mysql.php' for inclusion (include_path=''in /home/angzone/public_html/galeria/include/sql.php on line 5

Warning
Failed opening 'getuser-vbulletin.php' for inclusion (include_path=''in /home/angzone/public_html/galeria/include/getuser.php on line 6

Warning
Failed opening 'thumb.php' for inclusion (include_path=''in /home/angzone/public_html/galeria/include/showthumbs.php on line 5

Fatal error
Call to undefined function: sqlconnect() in /home/angzone/public_html/galeria/index.php on line 10 

uuh helpme please!!!!

PHP Code:

    $cfgGalleryDirWeb '/galeria/';    // absolute web path to gallery files
    
$cfgImageDirWeb '/galeria/images/';    // absolute web path to image dir
    
$cfgImageDirLocal '/home/angzone/public_html/galeria/images/'//The local path to the image dir
    
$cfgThumbDirWeb '/galeria/thumbnails/';     // absolute web path to thumbnails dir
    
$cfgThumbDirLocal '/home/angzone/public_html/galeria/thumbnails/'// The local path to the thumbnails dir
    // Put the forums usernumbers for the OakGallery Admins here (comma separated).
    // Like this: '1,2,3,4' - NOT like this: '1, 2, 3' !!!
    
$cfgAdminList '1,3,13,15,26'
     
$cfgForumDir '/home/angzone/public_html/foros/'// The local path to the forum dir
    
$cfgGalleryDir '/home/angzone/public_html/galeria/'// The local path to the vGallery dir 


seeyou 04-07-2003 04:35 AM

Quote:

Yesterday at 09:03 PM Zelda-King said this in Post #30
I tried that. I don't think there's anything I can do until my system administrator edits the CHMOD settings.

The weird thing is I can change permissions at the database. Even by default the permissions are all checked, but on FTP it keeps reverting after it says the permissions were successfully updated. Probably because in the database both the owner and group are named 'admin'. On FTP the owner has full permissions but not 'group' or 'public'.

I check the folders on the FTP though and the files ARE uploaded to the images folder (but not the thumbnails one).

I have the same thing, exactly, I think this is the config issue of unix shell, and we don't know how to config the path and locate "convert" & 'compose", please help.

GoTTi 04-07-2003 06:08 AM

man, my server said they installed ImageMagick on it, i look inside my usr/bin area threw cPanel, what EXACTLY am i looking for to make sure i know it is installed.???

Bergman 04-07-2003 06:51 AM

colicab, yes every forum member is allowed to post images, comment, rate etc. ?ke wants that the copyright should be visible because of the script are for free. Maybe you can speak to him about it ?

unixboard, you seem to have missed the starting / in some paths
---------------------------------------------------------------------
$cfgGalleryDirWeb = '/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/home/www/web1/html/portal/forums/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/home/www/web1/html/portal/forums/gallery/thumbnails/'; // The local path to the thumbnails dir
--------------------------------------------------------------------------

Kuska, there are a lot of improvments in this one. Does not require Safe Mode, banning options in comments, copyright in the pictures, users can view latest coments on their pictures, admin can overview the comments and more ... no you will not lose anything by upgrading. Do a backup before anyway.

Mist, Koutaru, Moyses, thanks ! It?s my friend ?ke who has coded it for me. :)

Kurayami, can you post your path settings in galleryconfig.php ?

Zelda-King, you must let the server admin install it for you on the webserver.

Moyses, is the files there ? The directories security right ? The path?s in galleryconfig.php is right ?

seeyou & Da_GoTTi, ill be back about that. :)

Bergman 04-07-2003 07:58 AM

This is how to figure out the correct local path to your gallery dir:

1. Create a file called phpinfo.php in Notepad.

<?php

phpinfo();

?>

2. Upload the file to your gallery dir
3. Run the script through your browser
4. Copy the path without "phpinfo.php" in variable _SERVER["PATH_TRANSLATED"] found in section "PHP Variables"
5. Verify the path in galleryconfig.php
6. Delete the phpinfo.php on your webserver

seeyou 04-07-2003 08:32 AM

HI, I have the problem of ImageMagick, I am on Window2000+Apache Web Server, and I have installed ImageMagick, but don't know how to key in the local path, and now everything is working, except the thumbnails function, I have tried so many different method, and can't make this ImageMagick work, pls help.

Under Windows platiform, there's are no need to set chomd 777 or writeable, the exact things to do is how to find out the path for "convert" and "compose", pls help.

Bergman 04-07-2003 09:33 AM

seeyou, found this in the Image Magick documentation about Windows installation:

Found at http://www.imagemagick.org

-----------------------------------------------------------------------

PATH

This sets the default list of places were Windows looks for EXE's and
DLL's. Windows CMD shell seems to look in the "current" directory first
- no matter what, so that is why you really don't have to muck. If
you wish to run any of utilities from another location then you must
add the path to your "bin" directory in. For instance, you might add:

D:\CVS\ImageMagick\VisualMagick\bin

to do this for the default build environment like I do. One slight
problem with this is that fact that Windows has another program called
"convert". I usually rename this to something else since it is only
used to convert disks from FAT to NTFS.
--------------------------------------------------------------------------

seeyou 04-07-2003 11:59 AM

Thanks Bergman for your advice, but I am running on windows and apache, if the exact path is correct, there's no reason why ImageMagick not work. I can run the whole gallery but only convert and compose command doesn't work, file can be upload to server, no thumdnails can be make.

The only problem is the setting of ImageMagick. Help please

colicab-d 04-07-2003 12:30 PM

ok i keep getting this error :

Warning: ChDir: No such file or directory (errno 2) in /home/virtual/site4/fst/var/www/html/cupboards/gallery/include/getuser-vbulletin.php on line 8

colicab-d 04-07-2003 12:35 PM

Quote:


// FORUM INTEGRATION
//

$cfgUserAuth = 'vbulletin'; // Match this with the forum you are using.
// Can be: 'vbulletin', 'phpbb', 'ip'

//
// IMPORTANT PATH SETTINGS
//

$cfgGalleryDirWeb = '/cupboards/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/cupboards/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/var/www/html/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/cupboards/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/var/www/html/gallery/thumbnails/'; // The local path to the thumbnails dir
// Put the forums usernumbers for the OakGallery Admins here (comma separated).
// Like this: '1,2,3,4' - NOT like this: '1, 2, 3' !!!
$cfgAdminList = '2';
$cfgForumDir = '/var/www/html/cupboards/'; // The local path to the forum dir
$cfgGalleryDir = '/var/www/html/cupboards/gallery/'; // The local path to the vGallery dir
$cfgConvert = '/usr/bin/convert'; // Local path to ImageMagick's convert
$cfgComposite = '/usr/bin/composite'; // Local path to ImageMagick's composite



Bergman 04-07-2003 12:42 PM

colicab-d, it seems to be some problem with the $cfgForumDir ... have your tried with /home/virtual/site4/fst/var/www/html/cupboards/ instead of /var/www/html/cupboards/ ?

colicab-d 04-07-2003 12:48 PM

will do

colicab-d 04-07-2003 12:53 PM

nope same error

Bergman 04-07-2003 12:54 PM

colicab, your gallery works for me now ... no errors.

http://www.artorg.co.uk/cupboards/gallery/index.php

colicab-d 04-07-2003 12:59 PM

ok wtf :P

colicab-d 04-07-2003 01:12 PM

ok my next prob is that i cant access the admin area even tho i set the thing up

// Put the forums usernumbers for the OakGallery Admins here (comma separated).
// Like this: '1,2,3,4' - NOT like this: '1, 2, 3' !!!
$cfgAdminList = '1,2';

i assume it means my userd id? which is 1

Bergman 04-07-2003 01:15 PM

Yes its your user ID number from the forum. Then you must be logged in with that account in the forum also.

colicab-d 04-07-2003 01:17 PM

i am :P

ricoche 04-07-2003 01:48 PM

Hi there,

It appears I'm getting some similar errors as a few other people here and I would like to know how they got it to work, if in fact they did. It's driving me crazy at the moment as I've check my paths, database info, permissions, forum id, etc. over and over with no luck.

Thanks.

PHP Code:

Warningmain(sql-mysql.php) [function.main]: failed to create streamNo such file or directory in /home/ricochen/public_html/forums/gallery/include/sql.php on line 5

Warning
main() [function.main]: Failed opening 'sql-mysql.php' for inclusion (include_path=''in /home/ricochen/public_html/forums/gallery/include/sql.php on line 5

Warning
main(getuser-vbulletin.php) [function.main]: failed to create streamNo such file or directory in /home/ricochen/public_html/forums/gallery/include/getuser.php on line 6

Warning
main() [function.main]: Failed opening 'getuser-vbulletin.php' for inclusion (include_path=''in /home/ricochen/public_html/forums/gallery/include/getuser.php on line 6

Warning
main(thumb.php) [function.main]: failed to create streamNo such file or directory in /home/ricochen/public_html/forums/gallery/include/showthumbs.php on line 5

Warning
main() [function.main]: Failed opening 'thumb.php' for inclusion (include_path=''in /home/ricochen/public_html/forums/gallery/include/showthumbs.php on line 5

Fatal error
Call to undefined function: sqlconnect() in /home/ricochen/public_html/forums/gallery/index.php on line 10 

My Config settings are as follows:

PHP Code:

//
    // FORUM INTEGRATION
    //
    
    
$cfgUserAuth 'vbulletin';    // Match this with the forum you are using. 
                                // Can be: 'vbulletin', 'phpbb', 'ip'

    //
    // IMPORTANT PATH SETTINGS
    //
    
    
$cfgGalleryDirWeb '/forums/gallery/';    // absolute web path to gallery files
    
$cfgImageDirWeb '/forums/gallery/images/';    // absolute web path to image dir
    
$cfgImageDirLocal '/home/ricochen/public_html/forums/gallery/images/'//The local path to the image dir
    
$cfgThumbDirWeb '/forums/gallery/thumbnails/';     // absolute web path to thumbnails dir
    
$cfgThumbDirLocal '/home/ricochen/public_html/forums/gallery/thumbnails/'// The local path to the thumbnails dir
    // Put the forums usernumbers for the OakGallery Admins here (comma separated).
    // Like this: '1,2,3,4' - NOT like this: '1, 2, 3' !!!
    
$cfgAdminList '1,2'
     
$cfgForumDir '/home/ricochen/public_html/forums/'// The local path to the forum dir
    
$cfgGalleryDir '/home/ricochen/public_html/forums/gallery/'// The local path to the vGallery dir 

Thanks for the nice looking script.

Ricoche

Moyses 04-07-2003 02:54 PM

Quote:

[i]Today at 08:51 AM Bergman
Moyses, is the files there ? The directories security right ? The path?s in galleryconfig.php is right ?
[/B]

Hai!
the files, the paths in galleryconfig.php is right

The directories security???????

Bergman 04-07-2003 03:06 PM

ricoche, have you uploaded the phpinfo.php mentioned above ? Which path has it ? I want to check some things in it.

You have MSN Messenger ? My adress is anbem@wmdata.com

Bergman 04-07-2003 03:07 PM

Moyses, yes the webuser must have write access in /images/ and /thumbnails/

Bergman 04-07-2003 03:22 PM

ricoche, are you currently trying to do something with your site ? It is working sometimes when i access it ...

Kurayami 04-07-2003 04:04 PM

I've checked the directory structure again even with PHPinfo, and it's exactly the same... the files are all uploaded as well; it just can't seem to find them. The interesting thing is that my folder structure is exactly the same as the other two users who are having the issue: home/user/public_html/

I'll PM you the address to my gallery.

Moyses 04-07-2003 04:23 PM

Quote:

Today at 05:07 PM Bergman said this in Post #63
Moyses, yes the webuser must have write access in /images/ and /thumbnails/
yes, I am sure... the CHMOD for this directories are 770

Bergman 04-07-2003 05:38 PM

ricoche & Kurayami, i have spoken with Åke now and he is pretty sure that you are missing this in php.ini. Can you verify and test ?

include_path = "."

Yaxio 04-07-2003 06:26 PM

is there a way to get rid of the database error at the bottom for vb versions 2.3.0 ?

Yaxio 04-07-2003 06:26 PM

also, how do i delete a category?

Bergman 04-07-2003 06:42 PM

Yaxio, Åke is working with the problems with 2.3.0 and you cant delete categories från the gallery. We have choosen to not have that option due to security. Use PhpMyAdmin or simular to do that.

Yaxio 04-07-2003 06:54 PM

ok. when i upload an image, it renames it like: 27-1613999029-banana.gif

But the gallery calls it like: 3.jpg

How can I solve this?

Bergman 04-07-2003 06:56 PM

Colicab, i see that you get everything working now ! Great ! :)

http://www.artorg.co.uk/cupboards/gallery/index.php

Bergman 04-07-2003 06:58 PM

Yaxio, it should be that way. an you check if the script have created any thumbs in /thumbnails/ dir ?

Oak 04-07-2003 07:06 PM

Quote:

Today at 08:54 PM Yaxio said this in Post #71
ok. when i upload an image, it renames it like: 27-1613999029-banana.gif

But the gallery calls it like: 3.jpg

How can I solve this?

The 3.jpg is the thumbnail image. You can access the original 27-0913590135-banan.gif by clicking on the thumbnail (3.jpg) and then clicking on the 3-m.jpg (the image shown in the 'image view'). Then you'll access the original image! :-)

To all of you - It's really nice that you like my script. It's nice to see that my time seems to have been well spent :D

Yaxio 04-07-2003 07:30 PM

it doesnt make the thumbnails in the /thumbnails directory.
it DOES make the regular sized image though in the /images directory.

The /thumbnails dir is chmodded 777 so i know it has right permissions.

Any help?

Oak 04-07-2003 07:35 PM

Quote:

Today at 09:30 PM Yaxio said this in Post #75
it doesnt make the thumbnails in the /thumbnails directory.
it DOES make the regular sized image though in the /images directory.

The /thumbnails dir is chmodded 777 so i know it has right permissions.

Any help?

There seems to be a problem with your convert application. Make sure you have specified the correct path to convert in galleryconfig.php . If you have shell access, try to run the command manually from the shell ... like: /usr/bin/convert
and see if it outputs anything.

Or maybe the server is running in "safe mode"? Then your server admin needs to install ImageMagick in the 'safe mode binary directory' but you'll have to talk to your admin about that.

Bergman 04-07-2003 07:36 PM

Yaxio, do you recieve any error message when you upload a picture ?

Moyses 04-07-2003 07:38 PM

Quote:

Today at 09:30 PM Yaxio said this in Post #75
it doesnt make the thumbnails in the /thumbnails directory.
it DOES make the regular sized image though in the /images directory.

The /thumbnails dir is chmodded 777 so i know it has right permissions.

Any help?

Quote:

5. Make the directories 'thumbnails' and 'images' writeable by the webserver.

E.g:
chown nobody thumbnails
chmod 770 thumbnails
(In this example, the webserver is run as user nobody.)
770 or 777?? :speechless:

Oak 04-07-2003 07:41 PM

Quote:

Today at 09:38 PM Moyses said this in Post #78
770 or 777?? :speechless:
Try 770 first and see if it works, if it doesn't - try 777 _or_ you can change the ownership of the directory to the webserver user:

chown nobody images

('nobody' (e.g. Debian) or 'apache' (e.g. RedHat 8.0) )

Yaxio 04-07-2003 07:53 PM

will the prog work with GD instead of ImageMagick?


All times are GMT. The time now is 04:20 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
  • Page Generation 0.01600 seconds
  • Memory Usage 1,876KB
  • 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
  • (4)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