View Full Version : OakGallery 2.0 Released ! [Great image gallery]
Bergman
04-05-2003, 10:00 PM
?ke is finally done with version 2.0 of the OakGallery.
OakGallery home:
http://www.ake.nu/gallery/
Some live galleries:
- http://blixten.ake.nu/gallery/ (Ver 2.0)
- http://pictures.potatoesmc.com/ (Ver 2.0)
- http://websociety.wm.net/~wmanbem/fiskesnack/fotogalleri/ (Ver 2.0)
Please post a link to your installed gallery. :)
Info:
- Integrated with your existing forum software
- Easy to integrate with other methods of user authentication
- IP-based authentication included for users without forum software
- Does not need 'register_globals' to be switched on
- It's FREE of charge ;-)
- Organize images into categories and subcategories
- Lets users rate and comment on the images
- Sort the images by date, rating, views, etc.
- Languages available: English and Swedish. Easy to translate to your own language!
- Most features are configurable in some way
- The design is very configurable
- Define your own data fields
- Built with speed and security in mind
- Automatic generation of thumbnails and display images
- Can add your logo to uploaded images automatically
- Uses ImageMagick for high quality thumbnail resizing
- Ban IP's from commenting
- Show random images from the gallery on any page on your site!
(This is done simply by including random.php in your own PHP page)
...and more!
Requriments:
Database Server
- MySQL or MS SQL Server (experimental support for ODBC)
- Administration tool for the database server (e.g. phpMyAdmin)
- Support for MySQL has been tested thouroughly.
- Support for MS SQL has been tested and seems to work fine.
- Support for ODBC is currently untested.
- PhpMyAdmin to import database structure http://www.phpmyadmin.net/
- ImageMagick installed on server http://imagemagick.sourceforge.net/
- The variable include_path = "." in php.ini
- PHP 4 (PHP 3 untested, but should work)
- Tested with PHP 4.2.2
- Forum Software
- Tested with phpBB 2.0.4
- Tested with vBulletin 2.2.x
- With vBulletin 2.3.x, and error message is produced by vBulletin, but still works.
- Forum software is not really needed (but highly recommended), you can use ip-based authentication too.
Web Server
-OakGallery currently requires a web server that allows you to run shell commands from php-scripts (for ImageMagick).
Installation:
1. Create a database for the gallery (using e.g. phpMyAdmin)
(You can use the same database for OakGallery as for other things, as long as the table names don't collide)
2. Execute the complete database script found in InstallDB/<server-type>-OakGallery.sql
3. UnZip the gallery to a local folder
Edit the Upload/config/galleryconfig.php to suit your needs. The configuration options should be self-explanatory. To find where ImageMagick's convert and composite are located. Try running this from your shell (unix):
which convert or
whereis convert
4. Upload all files in the 'Upload' subdirectory to your webserver.
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.)
7. Also, you need to make the PHP temporary upload directory writable by the webserver.
(Contact your system administrator if you need help with step 6-7)
Now, try loading the gallery page in your webbrowser and start creating categories for your pictures!
8. Dont you get it working ? Please post your problem here ... include the following:
- Path to the gallery
- Path to the forum
- Path to phpinfo.php
- Path?s in the galleryconfig.php
Then it will be much easier to help you out.
Modification:
If you want to modify OakGallery to better suit your needs, the following rules must be obeyed:
- The 'PayPal-donate' link and text must be CLEARLY visible. Preferrably near the top of the page.
- The original copyright message must be CLEARLY visible near the top of ALL pages.
- Add a message saying 'Modified by xxxx' or similar near the copyright message.
- Have fun! (and yes, that is a rule!)).
Tubbie
04-06-2003, 10:01 AM
mmhhh
photopost 4 free ;)
Bergman
04-06-2003, 10:37 AM
Tubbie, something like that ! :D
Koopa
04-06-2003, 11:03 AM
Very nice :)
Trident
04-06-2003, 11:27 AM
Great Work :)
but how can i adminstraiton this script ? like add category and subcategories ?
i tried play admin_categories.php , it get me :
" You have to be an admin to do this "
but in the end of the page, this line : You are logged in as admin !
it is known me !
thank you and sory for bad english .
Bergman
04-06-2003, 11:33 AM
If you are logged in like admin just click "Categories" in the gallery.
http://www.ake.nu/gallery/screen-category.jpg
colicab-d
04-06-2003, 01:06 PM
thnx tonnes will install tonite :D
Bergman
04-06-2003, 01:21 PM
Zelda-king, you have MSN ? Add me there and i will help you out.
Must be something in galleryconfig.php
My Adress is anbem@wmdata.com
Trident
04-06-2003, 01:25 PM
Bergman,
i dont have second line ! :(
just first line only
[ Start Page ] [ Top List ] [ Upload ] [ Comments on your pictures ]
i told you it is known me as admin !
what is wrong ?
thank you again
Zelda-King
04-06-2003, 01:27 PM
Today at 02:21 PM Bergman said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=378263#post378263)
Zelda-king, you have MSN ? Add me there and i will help you out.
Must be something in galleryconfig.php
My Adress is anbem@wmdata.com Oh, it's OK. I worked it out. I was just confused because I didn't see that path in /home/, but when I edited the paths to that anyway it worked.
Thanks for the speedy response though! :)
Here's my link;
http://www.gamercrossfire.net/bb/gallery/index.php
I still get that error in admin_categories.php though.
Trident
04-06-2003, 01:36 PM
i forgot tell you , i work in local server and this is my config data :
$cfgGalleryDirWeb = 'http://localhost/forum/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = 'http://localhost/forum/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = 'C:/apache/htdocs/forum/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = 'http://localhost/forum/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = 'C:/apache/htdocs/forum/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 = 'C:/apache/htdocs/forum/'; // The local path to the forum dir
$cfgGalleryDir = 'C:/apache/htdocs/forum/gallery/'; // The local path to the vGallery dir
$cfgConvert = '/usr/bin/X11/convert'; // Local path to ImageMagick's convert
$cfgComposite = '/usr/bin/X11/composite'; // Local path to ImageMagick's composite
Bergman
04-06-2003, 01:42 PM
Trident, i dont know how it works in a local server ... sorry ...
I dont think that you should use http:// or c:
Try something like this:
$cfgGalleryDirWeb = '/forum/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/forum/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/apache/htdocs/forum/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/forum/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/apache/htdocs/forum/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 = '/apache/htdocs/forum/'; // The local path to the forum dir
$cfgGalleryDir = '/apache/htdocs/forum/gallery/'; // The local path to the vGallery dir
$cfgConvert = '/usr/bin/X11/convert'; // Local path to ImageMagick's convert
$cfgComposite = '/usr/bin/X11/composite'; // Local path to ImageMagick's composite
Zelda-King
04-06-2003, 01:46 PM
Doh! It was my fault. I hadn't added my userid. :D
Bergman
04-06-2003, 01:49 PM
Zelda-King, good that you solved it ! :)
Zelda-King
04-06-2003, 01:51 PM
I have a problem uploading though. It says Error moving file - Please contact system administrator.
Bergman
04-06-2003, 01:55 PM
The webservers user must have write access to /images and /thumbnails
That should do the trick.
Zelda-King
04-06-2003, 02:08 PM
It sort of did. I'm seeing a red-x though. Is it possible to delete corrupt images?
Bergman
04-06-2003, 02:09 PM
Just click the bad thumb the click "Delete"
Zelda-King
04-06-2003, 02:12 PM
I should have spotted that. Anyway, when I delete a picture I get;
Warning: unlink() failed (No such file or directory) in /home/virtual/site62/fst/var/www/html/bb/gallery/remove_image.php on line 67
Error deleting file(s)
1 errors.
Query or Database Error - Please contact system administrator
That's probably me though. I tried deleting from the FTP.
EDIT: Nope! Does it with other pics too.
Bergman
04-06-2003, 02:18 PM
Zelda-King, even if the picture is missing the database entry should be deleted. Or did the upload of the picture work but not the Thumb ?
Zelda-King
04-06-2003, 02:20 PM
I think it's something to do with the CHMOD. It wont stay how I set it.
Yes, the database entry is deleted OK.
Bergman
04-06-2003, 02:28 PM
Yes, im not so good at webservers but there is the servers webuser that should have write access in the directories. Dont think you can do that with the FTP clients CHMOD ... ill think you must do it from SHELL. Anyone who can help me explain ?
Zelda-King
04-06-2003, 02:30 PM
SHELL's not something I know about, and yes I use FTP. In the database all the permissions are checked.
Bergman
04-06-2003, 02:43 PM
Ok, then ill think you must ask the server support to help you put the right security on the folders. Or is it your own server ?
Zelda-King
04-06-2003, 02:44 PM
No, it's not my server.
Bergman
04-06-2003, 02:55 PM
I will ask my friend Åke how to set the correct security. But i think you must be a server administrator to fix that. Ill be back later about this.
seeyou
04-06-2003, 04:52 PM
$cfgConvert = '/usr/bin/X11/convert'; // Local path to ImageMagick's convert
$cfgComposite = '/usr/bin/X11/composite'; // Local path to ImageMagick's composite
Now everything is working, but I don't know how to config the path from above, I am running under win2000 server OS with Apache web server.
I name ImageMagick to drive D and installed as a directory "x86", any help will be appreciate, now it doesn't seems to work for convert thumbnail.
Bergman
04-06-2003, 06:27 PM
Zelda-King & seeyou, have updated the orginal installation instructions. Try to do like that. If it not solves the problem please post here again.
colicab-d
04-06-2003, 07:01 PM
bergman this allow users to add images to a categorie? and coment rate etc? as i dont wanna be the only person adding images.
Zelda-King
04-06-2003, 07:03 PM
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).
unixboard.de
04-06-2003, 07:12 PM
i have some trouble...
Warning: open_basedir restriction in effect. File is in wrong directory in /home/www/web1/html/portal/forums/gallery/include/sql.php on line 5
Warning: open_basedir restriction in effect. File is in wrong directory in /home/www/web1/html/portal/forums/gallery/include/getuser.php on line 6
Warning: Cannot add header information - headers already sent by (output started at /home/www/web1/html/portal/forums/gallery/include/sql.php:5) in /home/www/web1/html/portal/forums/admin/functions.php on line 1628
Warning: open_basedir restriction in effect. File is in wrong directory in /home/www/web1/html/portal/forums/gallery/include/showthumbs.php on line 5
but i think that the setting are ok...
###############################
$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
################################
any ideas?
many thx!
edit:
sorry...i found the bug ;-)
Zelda-King
04-06-2003, 07:25 PM
Right, I somehow managed to edit the CHMOD settings. I still have trouble with thumbnails though. I see red Xs. Nothing uploads to the thumbnails folder, and if I delete an image I still get the old error.
I've got a hunch I've messed up somewhere though. I can't seem to find the composite/convert files. Yes, that's it! I haven't got ImageMagick installed yet. Back in a few with an update. Sorry about that!
GoTTi
04-06-2003, 07:54 PM
n/m
kuska
04-06-2003, 07:55 PM
What is different in this version from the previous one?
kuska
04-06-2003, 07:56 PM
Will i lose all me data from V1.0 after updating? will it remember who posted which picture, ratings, comments?
Dean C
04-06-2003, 08:04 PM
Awesome hack buddy - people are going to love this :P
- miSt
Kurayami
04-06-2003, 09:26 PM
Eh, I'm getting this error...
Warning: main(sql-mysql.php) [function.main]: failed to create stream: No such file or directory in /home/x/public_html/gallery/include/sql.php on line 5
Warning: main() [function.main]: Failed opening 'sql-mysql.php' for inclusion (include_path='') in /home/x/public_html/gallery/include/sql.php on line 5
Warning: main(getuser-vbulletin.php) [function.main]: failed to create stream: No such file or directory in /home/x/public_html/gallery/include/getuser.php on line 6
Warning: main() [function.main]: Failed opening 'getuser-vbulletin.php' for inclusion (include_path='') in /home/x/public_html/gallery/include/getuser.php on line 6
Warning: main(thumb.php) [function.main]: failed to create stream: No such file or directory in /home/x/public_html/gallery/include/showthumbs.php on line 5
Warning: main() [function.main]: Failed opening 'thumb.php' for inclusion (include_path='') in /home/x/public_html/gallery/include/showthumbs.php on line 5
Fatal error: Call to undefined function: sqlconnect() in /home/x/public_html/gallery/index.php on line 10
It seems as though the path settings are incorrect, but I've checked them over and over, and everything seems fine--everything is uploaded correctly as well.
Could there be some sort of problem because I'm running the forum on a domain instead of a /forum subdirectory, or is there just something glaringly obvious that I'm missing? (Which is most likely the case.) :D
Koutaru
04-06-2003, 10:00 PM
Very very nice, great job *_*
Moyses
04-06-2003, 10:22 PM
Yea Great Hack!!!
*click install*
----
definitivamente.... esto es lo que esperaba.... ^____~
colicab-d
04-06-2003, 10:50 PM
also bergman woul dit be ok to remove the copy stuff and donate link and poss display it on a seperate page ( a credits page) and link to it in the bottom of all the templates, would i be allowed to do that?
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:
Warning: Failed 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!!!!
$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
Yesterday at 09:03 PM Zelda-King said this in Post #30 (https://vborg.vbsupport.ru/showthread.php?postid=378387#post378387)
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
// 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.
Warning: main(sql-mysql.php) [function.main]: failed to create stream: No 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 stream: No 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 stream: No 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:
//
// 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
[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
Today at 05:07 PM Bergman said this in Post #63 (https://vborg.vbsupport.ru/showthread.php?postid=378783#post378783)
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 ?
Today at 08:54 PM Yaxio said this in Post #71 (https://vborg.vbsupport.ru/showthread.php?postid=378890#post378890)
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?
Today at 09:30 PM Yaxio said this in Post #75 (https://vborg.vbsupport.ru/showthread.php?postid=378905#post378905)
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
Today at 09:30 PM Yaxio said this in Post #75 (https://vborg.vbsupport.ru/showthread.php?postid=378905#post378905)
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?
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:
Today at 09:38 PM Moyses said this in Post #78 (https://vborg.vbsupport.ru/showthread.php?postid=378910#post378910)
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?
Today at 09:53 PM Yaxio said this in Post #80 (https://vborg.vbsupport.ru/showthread.php?postid=378914#post378914)
will the prog work with GD instead of ImageMagick?
Sorry, not in this version. It might be done in a future version, but i think you should try getting ImageMagick installed on the server...
winky6
04-08-2003, 12:06 AM
ricoche & Kurayami,
You need to add the full server path in all the files in the include folder for the included files.
include('sql-' . $cfgDataBaseType . '.php');
should be
include('/your/server/path/forums/gallery/include/sql-' . $cfgDataBaseType . '.php');
I did this to all the files in the include folder that had the include statement & it fixed all my errors.
:banana:
ricoche
04-08-2003, 12:41 AM
Excellent Winky6! That fixed the problem perfectly. Thank you.
So far in addition to the instructions I had to do the following to get the gallery to work.
1. As Winky6 mentioned above, you have to go into the php files in your include folder and manually modify the include paths. ( Details in post above ).
2. My server paths for ImageMagick's convert and composite are as follows. You might want to try dropping the "X11" if having troubles.
$cfgConvert = '/usr/bin/convert';
$cfgComposite = '/usr/bin/composite';
3. I CHMOD'd my image and thumbnail folders to 777.
4. Used an iframe to integrate this with vbportal. If anyone has any other idea that works please let me know if possible. Thanks.
I'm still testing this, but everything seems to now work. Again thanks to winky6 for the kickstart and I hope my settings above will provide other users with some additional ideas for tweaking if needed.
Thanks again. Nice script so far.
Ricoche :bunny:
Kurayami
04-08-2003, 01:40 AM
Ah, thank you very, very much winky6!
You've saved me a great deal of trouble... the gallery's working great now. :)
Just one question, though: Is there anyway to stop the vB database error from appearing...? I really don't want to have to go through the trouble of downgrading to 2.2.9, but I'm loving the script.
kuska
04-08-2003, 05:31 AM
This is a great hack. Is there a possibility for the next upgrade to have a search included, and Nicknames in comments would be links to the comentee picture???? Or can you write a addon? :) With a large database of pictures people are getting ++++ed looking for their pictures, and looking for pictures on the people who posted a comment on them. :)
grace819
04-08-2003, 05:32 AM
Wow! Finally an alternative to Photopost! Gotta give it a try! :)
kuska
04-08-2003, 05:32 AM
Mabye a PM notification on a new comment? Or am i asking 4 too much :)
Bergman
04-08-2003, 06:40 AM
Great that you get it working guys ! But you should not need the full path?s in the include?s. Have you checked that you have this line in php.ini on your server ?
include_path = "."
Kurayami, a solution for 2.3.0 should be fixed. :)
Kuska, there is a hack for PM on Comment for ver 1.0. Maybe that work ? Now we have the "Comments on your pictures"-function instead. Any tips of improvements is apreciated ! :)
Bergman
04-08-2003, 06:50 AM
Have everyone got it working ? Otherwise please post your problem again ... include the following:
- Path to the gallery
- Path to the forum
- Path to phpinfo.php
- Path?s in the galleryconfig.php
Then it will be much easier to help you out. :)
Today at 02:06 AM winky6 said this in Post #82 (https://vborg.vbsupport.ru/showthread.php?postid=379038#post379038)
ricoche & Kurayami,
You need to add the full server path in all the files in the include folder for the included files.
include('sql-' . $cfgDataBaseType . '.php');
should be
include('/your/server/path/forums/gallery/include/sql-' . $cfgDataBaseType . '.php');
I did this to all the files in the include folder that had the include statement & it fixed all my errors.
:banana:
As Bergman said, this is not the way to go. Fix the include_path in your php.ini instead!
include_path = "."
Today at 07:31 AM kuska said this in Post #85 (https://vborg.vbsupport.ru/showthread.php?postid=379115#post379115)
This is a great hack. Is there a possibility for the next upgrade to have a search included, and Nicknames in comments would be links to the comentee picture???? Or can you write a addon? :) With a large database of pictures people are getting ++++ed looking for their pictures, and looking for pictures on the people who posted a comment on them. :)
This function is planned for a future release! :) :)
Another feature that might be considered would be for each member to have his own album that can be linked to his postbit perhaps ?
Moyses
04-08-2003, 03:25 PM
Today at 02:06 AM winky6 said this in Post #82 (https://vborg.vbsupport.ru/showthread.php?postid=379038#post379038)
ricoche & Kurayami,
You need to add the full server path in all the files in the include folder for the included files.
include('sql-' . $cfgDataBaseType . '.php');
should be
include('/your/server/path/forums/gallery/include/sql-' . $cfgDataBaseType . '.php');
I did this to all the files in the include folder that had the include statement & it fixed all my errors.
:banana:
Hai!!!
Doomo Arigatoo Gozaimasu!!!! :p
winky6
04-08-2003, 09:22 PM
Your welcome guys.
Great that you get it working guys ! But you should not need the full path?s in the include?s. Have you checked that you have this line in php.ini on your server ?
This is not an option for some of us. Being at the mercy of our ISP's, they are the ones to make the changes.
As for why the error in 2.3.0, I am scanning the diffs in the files between 229 and 230.
When I'm sure what the problem is, and find a fix, I'll let you all know.
If someone doesn't beat me to it
Zelda-King
04-09-2003, 08:22 AM
I now have ImageMagick on the server. I still have the thumbnail problem though. Here's my configuration;
$cfgGalleryDirWeb = '/bb/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/bb/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/home/virtual/site62/fst/var/www/html/bb/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/bb/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/home/virtual/site62/fst/var/www/html/bb/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,3';
$cfgForumDir = '/home/virtual/site62/fst/var/www/html/bb/'; // The local path to the forum dir
$cfgGalleryDir = '/home/virtual/site62/fst/var/www/html/bb/gallery/'; // The local path to the vGallery dir
$cfgConvert = '/usr/X11R6/bin/convert'; // Local path to ImageMagick's convert
$cfgComposite = '/usr/X11R6/bin/composite'; // Local path to ImageMagick's composite
I don't need composite and convert CHMODed to 777 as well, do I? :/
auz1111
04-09-2003, 12:38 PM
Is there another way to configure this hack to use something besides ImageMagick? my host does not have this component and will not install. :(
Bergman
04-09-2003, 03:12 PM
auz1111, not for the moment ... GD will maybe work in the next version.
winky, ok. Yes, please let us know if you solve the 2.3.0 problem. :)
Zelda-King, what is the path to phpinfo.php ? Does the webserver have write access in Thumbnails directory now ?
Zelda-King
04-09-2003, 03:54 PM
- I can't find phpinfo.php but I know I have PHP. Where 'should' it be?
- Yes, my CHMOD settings for thumbnails and images were 'finally' changed to 777. Seeing as the setting for thumbnails is the same to that of images and the images thing works OK, that isn't the problem now.
Two things in the requirements I'm unsure of;
The variable include_path = "." in php.iniI don't know where that is in order to check. If php has that by default then that should be OK as I KNOW I have PHP.
OakGallery currently requires a web server that allows you to run shell commands from php-scripts (for ImageMagick).I know nothing about that.
For the record I'm using vBulletin 2.3.0.
Current gallery status: Check here;
http://www.gamercrossfire.net/bb/gallery/index.php
Maybe you can eliminate a few problems?
Bergman
04-09-2003, 06:52 PM
Zelda, your gallery seems to work except for the thumbnails. Either there is some problem (wrong path?) with "convert" or there is som security problem with thumbnails directory. Your Php.ini is probably ok because you have no errors on your gallery.
Hopefully Åke has some good ideas about your problem.
Zelda-King
04-09-2003, 07:45 PM
Well, the folder directory thing is correct. Then again so was /home/var/www/html/bb for the forum directory but that didn't work. I had to use /home/virtual/site62/fst/var/www/html/bb even though there is no visible /virtual/site62/fst/ path there. It goes from 'home' to 'var'.. Adding the /virtual/site62/fst/ doesn't work in this usr folder though (for composite/convert).
Bergman
04-10-2003, 06:15 AM
Zelda, have you verified the local path to convert with you server admin ?
alkatraz
04-10-2003, 07:06 AM
GREAT SCRIPT!
but help! I've got a strange DB error with vbb 2.28:
There seems to have been a slight problem with the Northwest Nissans database.Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 2.2.8:
Invalid SQL: UPDATE session SET lastactivity=1049960744,location='/gallery/index.php' WHERE sessionhash='07d1e56dccb81aaa0b59751bb7f4bd82'
mysql error:
mysql error number:
Date: Thursday 10th of April 2003 03:45:44 AM
Script: http://northwestnissans.com/board/gallery/index.php
Referer: http://www.northwestnissans.com/gallery/admin_categories.php
My db settings are correct (triple checked) and here are my path settings:
$cfgGalleryDirWeb = '/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/home/alkatraz/www/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/home/alkatraz/www/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 = '3,176,349';
$cfgForumDir = '/home/alkatraz/www/board/'; // The local path to the forum dir
$cfgGalleryDir = '/home/alkatraz/www/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
Verified with phpinfo.php SERVER["PATH_TRANSLATED"] /home/alkatraz/www/gallery/phpinfo1.php
The only thing I'm not sure I've done correctly is step 7 and the imagemagic path.
BUT everything looks like it's working.. i can upload pics and it will thumbnail them.
I read through the posts talking about a db error in 2.30, but I run with vbb 2.28:
Here is my gallery URL:
http://northwestnissans.com/gallery/
Zelda-King
04-10-2003, 07:48 AM
Today at 08:09 AM Bergman said this in Post #101 (https://vborg.vbsupport.ru/showthread.php?postid=380037#post380037)
Zelda, have you verified the local path to convert with you server admin ? I checked the paths in the server email from when we joined that host. As far as I can tell it's correct but I've just emailed them about it anyway.
Where might one find "php.ini" to make the necessary change to kill a few errors? I'm having the same troubles as a few others and I'd like to fix it correctly instead of editing the full path into the includes files as recommended by Oak and Bergman.
I've searched high and low and I'm not finding the file. Any suggestions?
Also - Oak - I'd like to chat with you privately about some modifications if I might. I'm on msn at thecharmedgirl@hotmail.com or I can pm you. My site is strictly private so I'm unable to post the url in here.
winky6
04-10-2003, 08:28 PM
Where might one find "php.ini" to make the necessary change to kill a few errors? I'm having the same troubles as a few others and I'd like to fix it correctly instead of editing the full path into the includes files as recommended by Oak and Bergman.
Rose, unless you are on a dedicated server, the php.ini file is an ISP issue, and it would be up to them to change it.
One thing I have noticed with my host...
I do not have path problems untill I go 3 deep into subdirectories.
It must be a virtual server quirk of some sort. :bunny:
Today at 04:22 PM winky6 said this in Post #106 (https://vborg.vbsupport.ru/showthread.php?postid=380328#post380328)
Rose, unless you are on a dedicated server, the php.ini file is an ISP issue, and it would be up to them to change it.
One thing I have noticed with my host...
I do not have path problems untill I go 3 deep into subdirectories.
It must be a virtual server quirk of some sort. :bunny:
Gotcha. Thanks!
garoboldy
04-11-2003, 12:06 AM
ok, just tried installing this and it didnt work for some reason...here is what my index.php displays..
Warning: main(sql-mysql.php) [function.main]: failed to create stream: No such file or directory in /home/evoluti/public_html/gallery/include/sql.php on line 5
Warning: main() [function.main]: Failed opening 'sql-mysql.php' for inclusion (include_path='') in /home/evoluti/public_html/gallery/include/sql.php on line 5
Warning: main(getuser-vbulletin.php) [function.main]: failed to create stream: No such file or directory in /home/evoluti/public_html/gallery/include/getuser.php on line 6
Warning: main() [function.main]: Failed opening 'getuser-vbulletin.php' for inclusion (include_path='') in /home/evoluti/public_html/gallery/include/getuser.php on line 6
Warning: main(thumb.php) [function.main]: failed to create stream: No such file or directory in /home/evoluti/public_html/gallery/include/showthumbs.php on line 5
Warning: main() [function.main]: Failed opening 'thumb.php' for inclusion (include_path='') in /home/evoluti/public_html/gallery/include/showthumbs.php on line 5
Fatal error: Call to undefined function: sqlconnect() in /home/evoluti/public_html/gallery/index.php on line 10
garoboldy - you're having the same problems as I am. If it's not run locally, the only way (I can think of) to fix most of the errors is to hardcode all files that contain "include('" in them to the full path. But I'm still getting a sql error that I can't get quite fixed.
alkatraz
04-11-2003, 01:18 AM
Am I the only one getting the "Invalid SQL UPDATE session" error??
Splitfyre
04-11-2003, 01:19 AM
I don't know if this has been discussed but I would like to ask the following:
1. With this hack, won't storage be a major consideration with
users posting pictures in the galleries?
2. What about bandwidth, has anyone noticed any spikes using
photo galleries like this where you're running out of bandwidth?
I'm trying to consider implementing a photo gallery for my forum, but bandwidth, storage, among other things was talked about as being a problem. :(
PiotrasG
04-11-2003, 08:00 AM
Hi all this is my gallery http://www.polskieforum.com/forum2/gallery/showimage.php?iid=1&cid=1&sort=dateand i have the thumnail problem how exacly do i fix it. I dont get it. What do i have to change, something in galleryconfig or another file
Thx
Great hack cant wait to use it
Braindg
04-11-2003, 08:35 PM
yes, erm.. hmmm.. ermm.. yah.. "nice belly".. was there any need ? :laugh:
garoboldy
04-11-2003, 09:03 PM
You mean we cant run the gallery on out site if we dont physically have the server in front of us??? I am hosted with hostrocket and everything went fine except all the crazy errors...
any ideas???
alkatraz
04-13-2003, 05:17 PM
04-10-03 at 07:12 PM alkatraz said this in Post #110 (https://vborg.vbsupport.ru/showthread.php?postid=380420#post380420)
Am I the only one getting the "Invalid SQL UPDATE session" error??
TTT :dead:
kuska
04-14-2003, 02:45 AM
This php script will automaticly pick a random image from OakGallery 2.0 thumbnails section and display it on your forum homepage or any other non VB site. I use it, easy to install, just edit path to your OakGallery 2.0 Thumbnails folder and upload. It attracts more people to chceck out the gallery - worked wonders for me. Try this out, looks real nice on the home page.
Install time 1 MIN :)
***Instructions***
1) Edit the path to the thumbnails folder in randomimage.php
2) Save and upload randomimage.php and chomod it to 775
3) Open forumhome template in your Admin CP and place the call out code anywhere desired by your likes.
<img src="url/randomimage.php"height="125"width="125">
*** End Install ***
Few things you might not like.
Since the thumbnails folder contains also the Medium sized pictures this might be a bandwidth issue for some people. That is not a problem for me because i have enough bandwidth (for now)
but i did not see any sygnificant raising in bandwidth usage since the script ONLY shows a new picture on reload or opening the forum in new browser window. Constant returning to forum home in the browser does NOT refresh the picture which seems to take care the bandwidth problem. This is not the best solution for a random image script, but it works for me and i didint want to wait for the next OakGallery2.0 Update. This is a great hack and just trying to help. Make sure you have your height and width in the call out script or your going to have some problems with tables.
Hope someone will use this... Here is the randomimage.php and ill add a screenshot below.
kuska
04-14-2003, 03:11 AM
Sample pic of random image is circled in RED
kuska
04-14-2003, 03:31 AM
This hack has HOTM potential if a search engine will be added, PM on new comment, and nick as links to the comentee picture :)
Koutaru
04-14-2003, 04:34 AM
yes :) a search engine. Also maybe allow users to have a "light box"? so they can keep track of their favorite images? Also image description?
Heh heh, I'm thinking about 4images xD
alkatraz
04-14-2003, 05:28 AM
argghhh I wish I could get this to work!! I'm so happy to find an affordable alternative to photopost. As soon as I get this working 100% I'll be donating through the paypal link.
Kuska: awesome addon, thank you!
also those suggestions would be awesome... also, posting restrictions so people can't spam the gallery.
Bergman
04-14-2003, 06:09 AM
Kuska, there is a random.php included in the OakGallery already. But nice hack anyway. :)
Im going to speak to ?ke about the problems that some of you are experience. I?ll be back ! :)
winky6
04-14-2003, 04:18 PM
How many people are getting the "Session" error from vbulletin ??????
For some strange reason, I am not getting the error running 2.3, and the only thing I can find between the versions is one of the update scripts in the release canidate updated the sessionhash field to a larger field.
So if some people are getting the error in this merge, I would guess the fix is in the vbulletin database field itself....
EvilCrow
04-14-2003, 05:59 PM
ok this may sound stupid but I'm only getting a blank (White) page no errors nothing but a blank page.. Anyone Help?
$cfgGalleryDirWeb = '/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/big/dom/xcrowsworld/www/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/big/dom/xcrowsworld/www/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 = '/big/dom/xcrowsworld/www/forum/'; // The local path to the forum dir
$cfgGalleryDir = '/big/dom/xcrowsworld/www/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
alkatraz
04-15-2003, 01:28 AM
Today at 10:12 AM winky6 said this in Post #122 (https://vborg.vbsupport.ru/showthread.php?postid=382092#post382092)
How many people are getting the "Session" error from vbulletin ??????
For some strange reason, I am not getting the error running 2.3, and the only thing I can find between the versions is one of the update scripts in the release canidate updated the sessionhash field to a larger field.
So if some people are getting the error in this merge, I would guess the fix is in the vbulletin database field itself....
Thank you for helping me!! (I think i'm the only loner still running 2.28 =))
I changed the Session\sessionhash fields "Length/Values*" to 255 from 32 but it didn't fix it.
Tried to go higher then 255 but it said:
MySQL said:
Too big column length for column 'sessionhash' (max = 255). Use BLOB instead
Tried changing it to a BLOB, but it said:
MySQL said:
The used table type doesn't support BLOB/TEXT columns
I'm curious if anyone has this working correctly in 2.28
Thanks again for helping me out here!!
kuska
04-15-2003, 01:42 AM
Yesterday at 08:03 AM Bergman said this in Post #121 (https://vborg.vbsupport.ru/showthread.php?postid=381857#post381857)
Kuska, there is a random.php included in the OakGallery already. But nice hack anyway. :)
Im going to speak to ?ke about the problems that some of you are experience. I?ll be back ! :)
Doh ! :)
I guess i did that because i didint upgrade yet :)
And the reason is i dont see instructions for a upgrade : \
Do i need to create a new data base? Just over write the old files? I dont want to loose my old pictures and comments. :rambo:
GoTTi
04-15-2003, 04:26 AM
ok how do i find out if ImageMagick is installed on my server?
Yesterday at 06:12 PM winky6 said this in Post #122 (https://vborg.vbsupport.ru/showthread.php?postid=382092#post382092)
How many people are getting the "Session" error from vbulletin ??????
For some strange reason, I am not getting the error running 2.3, and the only thing I can find between the versions is one of the update scripts in the release canidate updated the sessionhash field to a larger field.
So if some people are getting the error in this merge, I would guess the fix is in the vbulletin database field itself....
This is interesting... It has to be something with the session-handling, since the first time you load a page on a site which gives the error - the error is NOT shown, but the next time you load a page - you DO get the error. Therefore, it has to be the sessions...
Does the update from 2.2.x to 2.3 (not RC1) also change the table field type? Or was it just RC1 which did that? I wonder what extra information is put into the hash value in 2.3.0 - or if it's a MySQL issue..?
I need help with this since I don't have a machine to run tests on with vBulletin.
Today at 06:20 AM Da_GoTTi said this in Post #126 (https://vborg.vbsupport.ru/showthread.php?postid=382358#post382358)
ok how do i find out if ImageMagick is installed on my server?
If you have shell-access, run "whereis convert" or "which convert"
And about the include-file errors: I'm working on an update which will fix those errors without the need to have include_path="."
alkatraz
04-15-2003, 02:32 PM
This is interesting... It has to be something with the session-handling, since the first time you load a page on a site which gives the error - the error is NOT shown, but the next time you load a page - you DO get the error. Therefore, it has to be the sessions...
I get the error every single time i hit a gallery page, even after clearing my cookies and temp files.
Does the update from 2.2.x to 2.3 (not RC1) also change the table field type? Or was it just RC1 which did that? I wonder what extra information is put into the hash value in 2.3.0 - or if it's a MySQL issue..?
I don't know, but maybe this will help:
UPGRADING:
From 2.3.0 Release Candidate 1, Release Candidate 2 or Release Candidate 3
Run http://your.site/forums/admin/upgrade23.php again, clicking the link that allows you to continue when the script alerts you that you have already run this script.
From 2.2.9
http://your.site/forums/admin/upgrade23.php
From 2.2.8
http://your.site/forums/admin/upgrade22.php
http://your.site/forums/admin/upgrade23.php
(files are available for the VB member download area)
noelmd2001
04-15-2003, 03:58 PM
hi...
i use vbulletin 2.3.0 and the gallery is working except that i get this error:
There seems to have been a slight problem with the USTExchange.com database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
------------------------------------------------------------------------
Database error in vBulletin 2.3.0:
Invalid SQL: UPDATE session SET lastactivity=1050425418,location='/~ustex/gallery/showimage.php?iid=2&cid=1&sort=date' WHERE sessionhash='d55acf994e74d84bfcd1b48471424e87'
mysql error:
mysql error number:
Date: Tuesday 15th of April 2003 11:49:56 AM
Script: http://www.blogph.com/~ustex/forumsb/~ustex/gallery/showimage.php?iid=2&cid=1&sort=date
Referer: http://www.blogph.com/~ustex/gallery/showimage.php?iid=2&cid=1&sort=date
i can upload photos, comment on them, create categories.. everything is fine except for this error...
anyone can shed a light on this please???
EvilCrow
04-15-2003, 06:31 PM
.
EvilCrow
04-15-2003, 06:38 PM
Yesterday at 02:53 PM EvilCrow said this in Post #123 (https://vborg.vbsupport.ru/showthread.php?postid=382141#post382141)
ok this may sound stupid but I'm only getting a blank (White) page no errors nothing but a blank page.. Anyone Help?
$cfgGalleryDirWeb = '/gallery/'; // absolute web path to gallery files
$cfgImageDirWeb = '/gallery/images/'; // absolute web path to image dir
$cfgImageDirLocal = '/big/dom/xcrowsworld/www/gallery/images/'; //The local path to the image dir
$cfgThumbDirWeb = '/gallery/thumbnails/'; // absolute web path to thumbnails dir
$cfgThumbDirLocal = '/big/dom/xcrowsworld/www/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 = '/big/dom/xcrowsworld/www/forum/'; // The local path to the forum dir
$cfgGalleryDir = '/big/dom/xcrowsworld/www/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
Can someone give me an idea what I can do??
EvilCrow
04-16-2003, 12:32 AM
Well thanks for all the help ppl... But I found out myself why.. my web host doesn't allow ImageMagick on there servers for some Reason :
ImageMagick is too heavily dependent on the X-Libs (security issues)...
Oh well.. Would have been a really nice hack..
alkatraz
04-16-2003, 03:26 AM
Today at 09:58 AM noelmd2001 said this in Post #131 (https://vborg.vbsupport.ru/showthread.php?postid=382540#post382540)
hi...
i use vbulletin 2.3.0 and the gallery is working except that i get this error:
i can upload photos, comment on them, create categories.. everything is fine except for this error...
anyone can shed a light on this please???
WOO-HOO! I'm not alone!! Someone has the same error as me.
PS: It's starting to become a real pain in the ass deleting 400+ Vbulletin Error Emails everyday.
noelmd2001
04-16-2003, 07:17 AM
i seem to get it working in 2.3.0
what i did was just to put the gallery tables in the same database as vbulletin.
and lo and behold, the mysql db errors (sessions) disappeared!
hope this helps anybody!
solent
04-16-2003, 10:00 AM
Today at 11:17 AM noelmd2001 said this in Post #136 (https://vborg.vbsupport.ru/showthread.php?postid=382825#post382825)
i seem to get it working in 2.3.0
what i did was just to put the gallery tables in the same database as vbulletin.
and lo and behold, the mysql db errors (sessions) disappeared!
hope this helps anybody!
thanks very much dude.
that solved my problem as well.
Great hack by the way.
excellent work
alkatraz
04-16-2003, 03:24 PM
what i did was just to put the gallery tables in the same database as vbulletin.
and lo and behold, the mysql db errors (sessions) disappeared!
OMG! That worked!!!!! Thank you!!!
winky6
04-17-2003, 12:51 AM
You guys beet me to the punch line.
I just happened to read the install instructions again last night, and saw the part about creating a seperate database for the gallery.
It would seem to be a better sollution to have the whole setup on the same database if you going to use the vbulletin user table.
Beyond that.
COOOOL Gallery :banana:
Koopa
04-17-2003, 11:29 AM
Can I install Imagemagik myself or does my host have to do it?
Bergman
04-17-2003, 12:12 PM
Great that you guys "solved" the session problem. Now we have something to go on to solve it the right way. ;)
Koopa, your server admin has to do it.
Koopa
04-17-2003, 04:02 PM
The variable include_path = "." in php.ini
Not sure what that means....
winky6
04-17-2003, 10:23 PM
Great that you guys "solved" the session problem. Now we have something to go on to solve it the right way.
:confused: :confused: :confused:
Maybe it's my defensive side, But I think the "Right way" is to have both the gallery and VB on the same database.
By having the script call 2 seperate config files, you are leaving open an area for exploits.
As for the issue in the php.ini file....
Many webhosting providers are 2nd and 3rd party resellers.
So for them to setup their "Virtual servers" properly, they leave some settings "Undefined".
I would suggest that in the next release, or in future ideas, adding in an additional variable, or use an existing one, and make the paths in the include statement to some thing like..
In gallery config -
$cfgGalleryDirLocal = '/home/user/public_html/photos/'
In the include files
include($cfgGalleryDirLocal . '/include/sql-mysql.php');
solent
04-18-2003, 05:24 AM
Yesterday at 02:29 PM Koopa said this in Post #140 (https://vborg.vbsupport.ru/showthread.php?postid=383329#post383329)
Can I install Imagemagik myself or does my host have to do it?
no you have to ask your host to install it for you. also you have to ask you host to make this change in the php.ini file
The variable include_path = "."
Bergman
04-18-2003, 07:29 AM
winky, good idea fort the path?s and the database. I will speak to ?ke about it. :)
labrador
04-18-2003, 08:47 AM
The install worked fine for me (seperate database), but I can't upload images though.
the error after pressing 'submit' is:
Error moving file - Please contact system administrator
After running phpinfo i noticed that it has no php upload path specified.
Could this be the problem?
If so, is it possible to specify a temp folder?
I am also on a virtual hosting account without access to php.ini so i would like to be sure what is wrong before requesting a modification @ my isp.
i have not checked all features yet but this hack looks great sofar.
The only features i have not read anything about is folder redirection per username (only upload in your own folder for easy management, maybe even auto-delete images when removing a user), quotas per user and a way to give permission to use the gallery on a vbb user basis.
Maybe i am to demanding, then consider this a wish-list :)
Thanks for the hard work & sharing, bergman and associates :)
[edit] The error is solved now by chmod /images and /thumbnails to 777 instead of 770.
Now i only need ImageMagick on the server...
Request to provider is made, fingers crossed :D
Splitfyre
04-20-2003, 08:15 AM
Any way to limit where people can setup galleries (i.e. can I set specific forums to have this functionality?
Splitfyre
04-20-2003, 08:15 AM
Any way to limit where people can setup galleries (i.e. can I set specific forums to have this functionality?
Splitfyre
04-20-2003, 09:38 AM
Getting the following error message:
Database error in vBulletin 2.2.8:
Invalid SQL: DELETE FROM session WHERE sessionhash=''
mysql error:
mysql error number:
Seems weird since everything else works just fine.
1. Is there a way in which I can allow registered users on my
forum to create sub-categories within a particular category?
winky6
04-20-2003, 02:10 PM
Getting the following error message:
Sometimes I wonder about people.
If you read up about 6 posts, you'll see we already addressed that issue.
Put your gallery tables in the same database as Vbulletin, and the error will go away. :confused:
garoboldy
04-20-2003, 11:47 PM
well I have yet to see any type of answer to my post earlier...am I the only one that seems to be getting this error or what??
Bergman
04-21-2003, 09:58 AM
garoboldy, your problem seems to be the the include_path in php.ini on the server not is right configured for this gallery but we are going to release av 2.01 today that fixes the path-problem.
Splitfyre
04-21-2003, 06:02 PM
In moving more towards what PhotoPost does, is there any ability within Oak Gallery to do the following:
1. Limit the function to specific forum categories?
2. In that category can people create galleries that would generate a thread
3. Once that thread is created, other users can just use the reply function to go in and add more
photos to the existing thread.
Let me know if this is possible.
Thanks :)
garoboldy
04-21-2003, 07:18 PM
glad to hear bergman. I will appreciate the new version today...thanks
garoboldy
04-21-2003, 07:26 PM
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/evoluti/public_html/gallery/include/getuser-vbulletin.php on line 13
Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in /home/evoluti/public_html/gallery/include/getuser-vbulletin.php on line 14
now I am getting this with the new version 2.01
garoboldy
04-21-2003, 07:47 PM
nevermind. I fixed it and I am testing uploads and what not now...great job guys...good work.
Splitfyre
04-21-2003, 08:28 PM
Anyone know have ideas for what I asked above?
Bergman
04-22-2003, 07:00 AM
garoboldy, how did you solve it ? With any solution from this thread ?
Splitfire, this gallery has no function to integate so much with the forum today if not someone has written a hack to it.
PiotrasG
04-23-2003, 11:30 PM
Hey nice hack got one problem. Some of my users when they try to add a picture get this message.
The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.
Some of them dont have the problem. Can some one tell me how i can fix this. Its like when u press submit it doesnt take you the uppload_handle but the browser shows the link
garoboldy
04-23-2003, 11:42 PM
I just ran the tables in the vbulletin database and it fixed it...now I am having problems with getting images to upload for some reason..not sure why.
v0nreagan
04-25-2003, 05:20 AM
Bug report:
I have reports that people with unpatched IE 6.0 (Internet Explorer v. 6.0.2600.0000) that is shipped with Win XP can't see pictures in showimage.php (OG 2.01).
They can see thumbnails, but upon clicking the whole page is displayed with no picture at all. This problem wasn't present in v.1.0, and I personally can't repeat it on any IE6 SP1 box but obviously it's not my place to force potential gallery users to upgrade their browsers....
Logikos
04-26-2003, 09:13 PM
Works good but one prob
i get this while trying to upload
Error moving file - Please contact system administrator
Bergman
04-28-2003, 09:17 AM
[]\[]emesis, the solution for your problem is already in this thread.
Ver 2.01 which solves the path-problem is done bur we are waiting with the release until some more features is included.
Logikos
04-28-2003, 11:41 AM
sorry i have already fixed that, i should have edit my post. Again sorry :)
Bergman
04-28-2003, 12:28 PM
Nemesis, no problem. Please post you gallery link also ... ;)
Logikos
04-28-2003, 02:10 PM
Its needs alot of work, ive been going back and forth with moding the php and templates and adding my own to fit with my board. Heres the link of what i have so far. http://www.thenemesis.net/Forums/gallery/
The thumbnails arn't showing up so im in the middle of fixing it.
winky6
04-28-2003, 02:52 PM
:rambo:
I tried to get your thumbs to show up by pasting the image path in the browser, and it still says page not found.
Check your paths, or perms... It may be thinking it's creating it, but it's not.
Also, for future releases.......
user permissions, or group permissions for posting of images would be nice...
Also, sub-catergories should be seperated so that only one picture in that sub shows up in the main cat.
Is anyone else having probs with the random.php. I can get it to work no matter what I do.
It keeps giving me a mysql error
Littlebit
04-28-2003, 03:00 PM
Today at 06:17 AM by Bergman
Ver 2.01 which solves the path-problem is done bur we are waiting with the release until some more features is included.
Hi Bergman, I'm interested in installing this. Will the release be out today? ALso, what exactly is the error that is happening with vB's 2.3.0?
Thanks
:bunny:
Littlebit
04-28-2003, 03:25 PM
Oops, I have a few more little questions.
*Are admin options available to set that only registered and logged in members can submit an image or make a comment?
*Will I be able to modify the code so that the image doesn't get so large that its page needs to be framed and scroll to the left or down with a frame?
Hope that last question made sense!
Oh, and
*are members having each their own gallery page in the works?
Highlander
05-02-2003, 07:37 PM
i read all 12 pages to find an answer on my question..
i dont know if i got image magic .. and i think its the problem that my thumbs are not showing up..
so.. i read many times.. to tipe "wich convert" if i have root access..but i havent root access only thing i can read is my php.info ..there are some lines named like X11R6 .. ..
what i want to aks..is..there any other wys to find out the path of image magic? or to see it in phpinfo..like an module?
Link:
http://spielplanet2.de/forum/gallery/
greets
High
Willard Reece
05-02-2003, 08:11 PM
Today at 01:37 PM Highlander said this in Post #170 (https://vborg.vbsupport.ru/showthread.php?postid=390574#post390574)
i read all 12 pages to find an answer on my question..
i dont know if i got image magic .. and i think its the problem that my thumbs are not showing up..
so.. i read many times.. to tipe "wich convert" if i have root access..but i havent root access only thing i can read is my php.info ..there are some lines named like X11R6 .. ..
what i want to aks..is..there any other wys to find out the path of image magic? or to see it in phpinfo..like an module?
Link:
http://spielplanet2.de/forum/gallery/
greets
High
try something like
/usr/bin/X11/mogrify thats the most common path to it
Highlander
05-02-2003, 08:28 PM
Today at 10:11 PM Willard Reece said this in Post #171 (https://vborg.vbsupport.ru/showthread.php?postid=390590#post390590)
try something like
/usr/bin/X11/mogrify thats the most common path to it
/usr/bin/X11/mogrify/convet <--after?
i will test.. does the path shows up in phpinfo? there i saqw somehting like this
usr/X11R6/ <--it wont work also ..but maybe i can try some path :)
Willard Reece
05-02-2003, 08:31 PM
it doesn't clearly show up in phpinfo,, but I found that path installing another program,, and thought it might help you...
It seems to be a common path link
Highlander
05-02-2003, 08:33 PM
no the "mogrifi" after wont work also.. .. damn iam in real trouble when i wont manage this to work.. i need it..really
Willard Reece
05-02-2003, 08:39 PM
ask your host for the path to it...
also did you put the real name of ImageMagick after it
Highlander
05-02-2003, 08:42 PM
no.. please.. post it here so i see it :)
i just try out these till now:
1. /usr/bin/X11/mogrify
2. /usr/bin/X11/mogrify/convert -or- composite
3. /usr/X11/convert -or- composite
4. /usr/bin/X11/convert -or- composite
5. /usr/X11R6/convert -or- composite
7. /usr/bin/X11R6/convert -or- composite
Willard Reece
05-02-2003, 08:50 PM
imagemagick is what i know the name
Willard Reece
05-02-2003, 08:52 PM
/usr/bin/X11/imagemagick
/usr/bin/imagemagick
/home/usr/bin/imagemagick
Highlander
05-02-2003, 08:52 PM
directly in the path ?
/usr/X11/imagemagick/convert ?
Highlander
05-02-2003, 09:03 PM
no i did not manage it..
muchas grazias.. i will call my server admin and ask him.. if he has installed the imagemagick :)
Guidster
05-17-2003, 03:03 AM
You can throw my site in as a production site:
www.allthingsmoto.com/gallery
Highlander
05-17-2003, 06:52 AM
many people dont have image maigc..and many of them could not install it cause they dont gt an own server .. so the standart for thumbnails and picture galleries is GD 1.0 or higher.also the most of them dont got GD2.0 ..the most providers..dont let the webmaster control the php.ini or installing new software like upgardes or imagemagik..
..so it would be nice..if there would be support for GD1.0 GD2.0 or image magik..so the users who installed this software can choose what they have istalled to show the images correctly.. and also an instant access ti php.ini inst normally for most of us .. there should be another way to include the files..cause editing the php.ini is not allowed to most of us..
are you planning to make updates for users like me?
greets Highlander
www.spieleplanet.com <- installed an alternatiove gallery, wich was written for phpBB ..this gallery supports GD1,2 and Image Magic..and as addin phpBB users can choose the correct user database to make it work like this gallery..
gmarik
05-17-2003, 07:13 AM
Highlander, I can only agree with you - I would use this hack, if it would have GD2 support, but now - it's useless. What is that phpBB hack - can you show it in action?
Stud_Muffin
05-19-2003, 10:48 AM
Can you just use a precompiled version of ImageMagick's convert and composite and point to them? This is assuming you don't have full access to install it properly.
Highlander
05-19-2003, 11:04 AM
this is it:
http://spielplanet2.de/forum/gaming/screens/index.php?cat=2
it uses only phpBB if you got this.. but it support GD1.0 GD2.0 and ImageMagik ..it goit Slideshows, e-Cards an all comfot a expensive tool Like Photo Posts meets..
the only thing i turned the user registering off..cause i got my users of vb in the forums.. so oak galerry is the same..but it only supports imageMagik..and ImageMagik only is preinstalled if you install it.. or you can get root rights.. but 90% of webmasters host their sites on some preinstalled servers without root rights..and known issues of paths to imagemagik..so most of them really did not got GD2.0 just GD1.0 support..cause many Server companies have to pay much money that their users could user things like this..
if oak gallery would dupport all 3 kinds of image compresison like GD1 and 2 and imageMagik..it would be really better than the 120$ expensive PhotoPost :)
@Muffin .. i cant install imageMagic..cause i dont got root rights..to look below my home diretories. So its unpossible for me to user THIS GREAT hack..if it would support gd it would be better than PhotoPost!..
..i really just thought to install Photopost..but a test and first look showed me it only support imageM;agic too.. so a software 120$ expensive dont works for me....till a better way coems up i have to use this version i insatlled on my site:
http://spielplanet2.de/forum/gaming/screens/index.php?cat=2
winky6
05-19-2003, 09:01 PM
Highlander,
I don't agree with you.
1st, most of the people who write hacks here at vbulletin.org do so for FREE , and share them with the public without any compensation.
They then spend the rest of their time answering, and re-answering question about installation that was covered in the install instructions.
NOW, if you want to spend some of your free time, why dont you write a hack that has all those beni's that you want in your forums.
Now, if some of you are using a host that doesn't have Imagemagick, I would suggest you switch to higher quality hosting company.
Personally, I use venturesonline.com, and they have GD 2, and Imagemagick.
Use 4images (http://www.4homepages.de) if u wish , theres a mod in their forums for vB integration too.
Supports GD and imagemagik and netbpm too.
just fyi
Rodney
05-23-2003, 07:04 PM
04-14-03 at 04:45 AM kuska said this in Post #116 (https://vborg.vbsupport.ru/showthread.php?postid=381814#post381814)
This php script will automaticly pick a random image from OakGallery 2.0 thumbnails section and display it on your forum homepage or any other non VB site. I use it, easy to install, just edit path to your OakGallery 2.0 Thumbnails folder and upload. It attracts more people to chceck out the gallery - worked wonders for me. Try this out, looks real nice on the home page.
Install time 1 MIN :)
***Instructions***
1) Edit the path to the thumbnails folder in randomimage.php
2) Save and upload randomimage.php and chomod it to 775
3) Open forumhome template in your Admin CP and place the call out code anywhere desired by your likes.
<img src="url/randomimage.php"height="125"width="125">
*** End Install ***
Hi I cant get this to work..... I did exactly as the instructions said...
all I get is this when I call the script : Parse error: parse error, unexpected '<' in /var/www/htdocs/randomimage.php on line 8
( http://cancan.mine.nu/randomimage.php )
randomimage.php
$url='http://cancan.mine.nu/gallery/thumnails';
//Stop editing, that is all. Call the image with:
<img src="http://cancan.mine.nu/randomimage.php"height="125"width
customtemplate 2
<tr><td bgcolor="$getbgrow"><smallfont>
<img src="http://cancan.mine.nu/randomimage.php"height="125"width="125">
</smallfont></td></tr></form></table></td></tr></table><p>
plz help..... I'm so bad at php
cyrus
05-27-2003, 11:47 AM
Hi,
Im getting a few errors :-
Warning: main(sql-mysql.php) [function.main]: failed to create stream: No such file or directory in /home/cyrus/public_html/forum/gallery/include/sql.php on line 5
Warning: main() [function.main]: Failed opening 'sql-mysql.php' for inclusion (include_path='') in /home/cyrus/public_html/forum/gallery/include/sql.php on line 5
Warning: main(getuser-vbulletin.php) [function.main]: failed to create stream: No such file or directory in /home/cyrus/public_html/forum/gallery/include/getuser.php on line 6
Warning: main() [function.main]: Failed opening 'getuser-vbulletin.php' for inclusion (include_path='') in /home/cyrus/public_html/forum/gallery/include/getuser.php on line 6
Warning: main(thumb.php) [function.main]: failed to create stream: No such file or directory in /home/cyrus/public_html/forum/gallery/include/showthumbs.php on line 5
Warning: main() [function.main]: Failed opening 'thumb.php' for inclusion (include_path='') in /home/cyrus/public_html/forum/gallery/include/showthumbs.php on line 5
Fatal error: Call to undefined function: sqlconnect() in /home/cyrus/public_html/forum/gallery/index.php on line 10
Also, I dont know the path to imagemagick, do I need to install it first ??
thanks
--- Everything now ok thanks to version 2.01 and imagemagick. Thanks Oakgallery satff ! ---
limey
05-28-2003, 03:48 AM
Parse error: parse error in /www/forums/gallery/config/galleryconfig.php on line 95
Fatal error: Failed opening required './include/sql-.php' (include_path='.:/usr/lib/php') in /www/forums/gallery/include/sql.php on line 10
And I've tried the fix posted on oakgallery site.
limey
05-28-2003, 04:21 AM
Ok error fixed. Stupid really. Line 126 and 95 don't write something like "Johnny's Gallery" make it "Johnnys Gallery".
My silly mistake.
cyrus
05-28-2003, 09:14 AM
Hi all,
Ive got everything in place (so I think) but I am getting "Error moving file - Please contact system administrator" when I try uploading a file. I know people have come across this problem before and I know someone will say chmod 770 to images and thumbnails (777 is 770 doesnt work) but I have done that and do not see where the problem may be.
I have a slight hunch it may be that I have not specified a tmp directory (step 7 of installation) and not chmodded it. Where do I create this directory if I need to ???
thanks
// Cyrus
limey
05-28-2003, 05:24 PM
Whats your path settings?
is your forums: http://www.foo.com/forum/gallery ?
if so you need to add forum in front of gallery in the config.
cyrus
05-28-2003, 06:57 PM
OMG !!! Limey, ur an angel in disguise ... THANNKKSSS ITS WORKED !!!
THANKS AKE AND BERGMAN for this release.
*runs off to play with gallery*
cyrus
05-30-2003, 07:42 AM
Is it possible to change the date/time for the gallery of when image is postted, because right now mine is incorrect and I dont know how to fix it.
NeilMcRae
06-25-2003, 06:23 AM
I've found the issue with missing thumbnails. If you are getting this its because imagemagick hasn't been installed correctly and has no way to process the image that you are trying to work on.
The program will be exiting with an error message like this:
convert: No decode delegate for this image format (/data/html/www.z4roadster.org.uk/gallery/images/3-1627537269-Z4_E85_RO_maincar.jpg)
Also check that your comments or messages have no spaces in them as that confuses the script.
If you want to check if this is your problem then its pretty easy, but you need system admin to the box that you are using:
do the following:
cd /usr/local/bin [or wherever your binary for convert is]
mv convert convert.old
create a script called convert [vi convert or emacs convert]
#!/bin/sh
echo $0 $1 $2 $3 $4 $5 $6 $7 > /tmp/test2
Then try to upload a file using oakgallery.
Once you have done this you can look at the file /tmp/test2:
/usr/local/bin/convert -geometry 160x120> -comment www.z4roadster.org.uk - Gallery /data/html/www.z4roadster.org.uk/gallery/images/3-1627537269-Z4_E85_RO_maincar.jpg[0] /data/html/www.z4roadster.org.uk/gallery/thumbnails/4.jpg
you should try to run that on the command line and see what happens. If you get the same error as I did above then its because that imagemagick hasn't been installed with all its components properly.
The fix that for FreeBSD is to use the imagemagick in the ports part of FreeBSD, on NetBSD I'm just about to test the imagemagick thats in that section.
hope this helps.
Neil.
Highlander
06-25-2003, 06:52 AM
why does no one includes a support for GD 1.6/1.8 or higher ? ..everyone ..really every server has this feature..but imagemagick is a feature only own server admins can include or install..so it means that we as simple webpage admins never can use this great script :(
..why no one who got the abbility works this simple feature out?..so after installation may choose GD or IM suport .. if this would be integrated it woudl be better than Photopost andevery other script.. without that a big usergroup cant use this script! and thats also the reason, whay after moth only 14 pages of answer are placed in this thread..
NeilMcRae
06-25-2003, 07:25 AM
highlander you pay for what you get!
Highlander
06-25-2003, 08:57 AM
thats no matter .. paying or not paying..but why dont using standarts like GD this is defintifely installed on 90% of all Webserver (linux and windows!) ... imagemagic is for free but is installed on a few percent of webservers..
paying is not the role of my question :)
NeilMcRae
06-25-2003, 09:08 AM
highlander yes, I think you just need to be more patient :D
Grrrrrrrrrrrrrreat script!!
Really!
allan grossman
07-09-2003, 01:27 PM
Installed on clean (well, it was clean once - now it's got all kindsa hacks in it) vB 2.3.0 installation. I installed the tables in the forum database and have no errors.
I run it in a borderless frame with my forum logo and header buttons above it and with a tiny bit of creative frame targeting it's just about a seamless integration.
Outstanding hack. I'm getting ready to pitch photopost and punch the PayPal button.
Oh, yeah - the link.
http://pointbeing.com
punch the "pics" button on any forum page.
edit: The link to the gallery alone is http://pointbeing.com/gallery
allan grossman
07-14-2003, 12:34 PM
On another note -
I asked a question in "hack requests" about integrating OakGallery and vBHome Lite so I could put a thumbnail of the last picture uploaded on my front porch. If anybody has any ideas I'd be most appreciative.
Here's the thread -
https://vborg.vbsupport.ru/showthread.php?s=&threadid=55275
tia -
nimmo
08-14-2003, 05:25 AM
Here are the errors I get when trying to access the gallery.
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/inlinep/public_html/gallery/include/getuser-vbulletin.php on line 13
Warning: main(./global.php) [function.main]: failed to create stream: No such file or directory in /home/inlinep/public_html/gallery/include/getuser-vbulletin.php on line 14
Here are the paths to my directories.
/// Absolute web path to gallery files
$cfgGalleryDirWeb = '/gallery/';
/// Absolute web path to image dir
$cfgImageDirWeb = '/gallery/images/';
/// The local path to the image dir
$cfgImageDirLocal = '/public_html/gallery/images/';
/// Absolute web path to thumbnails dir
$cfgThumbDirWeb = '/gallery/thumbnails/';
/// The local path to the thumbnails dir
$cfgThumbDirLocal = '/public_html/gallery/thumbnails/';
/// The local path to the forum dir
$cfgForumDir = '/public_html/forums/';
/// The local path to the vGallery dir
$cfgGalleryDir = '/public_html/gallery/';
nimmo
08-14-2003, 05:48 AM
how do you do that?
04-24-03 at 01:42 AM garoboldy said this in Post #160 (https://vborg.vbsupport.ru/showthread.php?postid=386175#post386175)
I just ran the tables in the vbulletin database and it fixed it...
nimmo
08-19-2003, 07:05 PM
can anyone help?
Hello Bergman,
Thank you for a great hack!
I have only one question. Is it easy to implement so only users from a certain user group would be able to add photos? I don't want users without email confirmation to be able to post pictures.
Thanks again!
nevermind, I've done it myself
nimmo
09-13-2003, 03:04 PM
pleeeeeaaaaaaaaaassssssssseeeee
nimmo, it is easy
You wrote:
Here are the paths to my directories.
/// Absolute web path to gallery files
$cfgGalleryDirWeb = '/gallery/';
Change it to real path to your file:
/home/inlinep/public_html/gallery/
Do the same with other variables.
Good luck!
Highlander
09-16-2003, 05:02 AM
Hello again,
is there jno way out of using only IMAGE MAGIK? .. is there no posibbilty to use GD support?.. i love Oak Gallery and when i see all the samples it makes me sad about the thing that i aint got root/shell accounts/rights or Image Magik intsalled on the server.
I need something like IoOak Gallery with GD support .. why is there no support for standarts like GD? .. everyone who has a PHP webserver also has GD 1.6 or 1.8 .. why is this programmed only for root server? We the simple peaople..who dont got 50$ or more for a own Server .. cant use somthing great like Oak Gallery..cause we got only shared Webspace .. so again we have to search for expensive scripts like photopost .. bzut i dont give up.. i will search again for something similar.
please.. dont tell.. "code it by yourself" i would if i get the abilities to do so!
Please some programmer: Convert support for GD :) .. and i will cklick the paypal button as many times as my mouse can do it ....
admin@spieleplanet.com
IRC: Phatnet #spiele
TLucent
09-21-2003, 09:35 PM
I would like to use random.php. But have not figured out how. Here is my site:
www.crawlclick.com
I would like to have one picture pop up under "Photo Gallery" on the left. This section is HTML coded not PHP. I edited random.php so only one picture will show.
www.crawlclick.com/gallery/random.php
I just can't figure out how to implement it into either php or html.
Any help/tips would be appreciated.
CHOW!
Hi!
I'm sorry that I haven't replied to many of the questions here. I just don't have time to browse the forums... :-S
Just wanted to tell you guys that OakGallery 2.03 now has support for libGD and libGD2.0 ! .. This means you don't have to use ImageMagick binaries anymore!
The functionality is somewhat limited though, as it cannot overlay logo, text and things like that - But thumbnails are still resized and saved to file like with ImageMagick.
E-mail me if you have any questions!
http://www.ake.nu/gallery/
gmarik
10-29-2003, 11:12 PM
If only it would have some design.
Maybe we could make it together better - I'm a designer, at all...
Gt-358
11-04-2003, 02:55 PM
Does Oak work with vB 3.0.0 Beta 7?
Reason I ask, is everytime I set it to vbulletin in the config file. I get this error
Warning: chdir(): No such file or directory (errno 2) in /home/gt358/public_html/gallery/include/getuser-vbulletin.php on line 15
If I change to IP type, it seems to work (just don't know how to admin it in IP mode and would like it to use the vb3 usernames).
// IMPORTANT PATH SETTINGS
//
/// Absolute web path to gallery files
$cfgGalleryDirWeb = '/gallery/';
/// Absolute web path to image dir
$cfgImageDirWeb = '/gallery/images/';
/// The local path to the image dir
$cfgImageDirLocal = '/var/www/html/gallery/images/';
/// Absolute web path to thumbnails dir
$cfgThumbDirWeb = '/gallery/thumbnails/';
/// The local path to the thumbnails dir
$cfgThumbDirLocal = '/var/www/html/gallery/thumbnails/';
/// The file-mode to set on the files after upload
$cfgImageFileMode = 0644;
/// 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,3';
/// The local path to the forum dir
$cfgForumDir = '/home/gt358/public_html/forum/';
/// The local path to the vGallery dir
$cfgGalleryDir = '/home/gt358/public_html/gallery/';
Dean C
11-04-2003, 04:54 PM
Does Oak work with vB 3.0.0 Beta 7?
Reason I ask, is everytime I set it to vbulletin in the config file. I get this error
Warning: chdir(): No such file or directory (errno 2) in /home/gt358/public_html/gallery/include/getuser-vbulletin.php on line 15
If I change to IP type, it seems to work (just don't know how to admin it in IP mode and would like it to use the vb3 usernames).
// IMPORTANT PATH SETTINGS
//
/// Absolute web path to gallery files
$cfgGalleryDirWeb = '/gallery/';
/// Absolute web path to image dir
$cfgImageDirWeb = '/gallery/images/';
/// The local path to the image dir
$cfgImageDirLocal = '/var/www/html/gallery/images/';
/// Absolute web path to thumbnails dir
$cfgThumbDirWeb = '/gallery/thumbnails/';
/// The local path to the thumbnails dir
$cfgThumbDirLocal = '/var/www/html/gallery/thumbnails/';
/// The file-mode to set on the files after upload
$cfgImageFileMode = 0644;
/// 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,3';
/// The local path to the forum dir
$cfgForumDir = '/home/gt358/public_html/forum/';
/// The local path to the vGallery dir
$cfgGalleryDir = '/home/gt358/public_html/gallery/';
No this hack is for vb2. No hacks here at vBulletin.org work with vb3 as practially all the code has been changed. Also hacking discussion is not currently allowed here until the RC1 is released (refer to announcements forum for more info) :)
Gt-358
11-04-2003, 04:57 PM
No this hack is for vb2. No hacks here at vBulletin.org work with vb3 as practially all the code has been changed. Also hacking discussion is not currently allowed here until the RC1 is released (refer to announcements forum for more info) :)
doh, ok thanks.
Can someone explain how to use oak in IP mode then? :)
Tony
iceman-x
11-11-2003, 05:10 PM
Hello Bergman,
Thank you for a great hack!
I have only one question. Is it easy to implement so only users from a certain user group would be able to add photos? I don't want users without email confirmation to be able to post pictures.
Thanks again!
nevermind, I've done it myself
Hey, nice script.
How did you do it Ig@r.
ScottW23
12-03-2003, 01:58 AM
mmhhh
photopost 4 free
Yeah, and a BMW 7-series is the same thing as a Ford Focus.
Yeah, and a BMW 7-series is the same thing as a Ford Focus.
I could not agree more. For an old forum that I ran I brought PhotoPost and had all kinds of problems with it. I believe that I am technically aware however the product that I downloaded, I had to install patch after patch to get it intregreated with vBulletin and then it still didn't look good. At the time (over a year ago), I expected the product I downloaded to be fully working, but it was not fit for use which was a real shame. Eventually I got it working and it was reasonable then, but it was a long and painful road.
So, this does make OakGallery the BMW 7-series of Gallery software. Something that is free and equally has support of a great community and is meant to be part of vBulletin by the add on that it is.
mlevenson
12-11-2003, 05:13 AM
Ok so I go tthis installed and I have been testing it out, so far so good except I'm getting error's on file size. It seems that when I upload a file of 603546 it fails due to the configured limit of 524288.
I have modified the galleryconfig.php $cfgMaxFormFileSize = 30720000 but there is a comment on it that it can be ignored. I even hard coded in this value in the upload.php file and I still get an error.
HELP!
Ok so I go tthis installed and I have been testing it out, so far so good except I'm getting error's on file size. It seems that when I upload a file of 603546 it fails due to the configured limit of 524288.
I have modified the galleryconfig.php $cfgMaxFormFileSize = 30720000 but there is a comment on it that it can be ignored. I even hard coded in this value in the upload.php file and I still get an error.
HELP!
You need to change the setting in your php.ini. The problem has nothing to do with the HTML being sent to the client, but is a limit set in php itself.
I think the directives you need to change are:
upload_max_filesize = 8M
post_max_size = 8M
8M can replaced with something else, like 1M or 2M ..
Regards,
?ke
mlevenson
12-11-2003, 02:07 PM
You need to change the setting in your php.ini. The problem has nothing to do with the HTML being sent to the client, but is a limit set in php itself.
I think the directives you need to change are:
upload_max_filesize = 8M
post_max_size = 8M
8M can replaced with something else, like 1M or 2M ..
Regards,
?ke
Ok they both are at 8M they where set to upload_max_filesize = 2M post_max_size = 8M prior so it shouldn't have been any big deal. I copied the exact error that I'm getting in the log file.
[Thu Dec 11 08:03:29 2003] [error] [client 209.221.185.226] Requested content-length of 610908 is larger than the configured limit of 524288, referer: http://www.r1wolfpack.com/gallery/upload.php
If I change the file and make it 65K it works just fine.
mlevenson
12-12-2003, 05:59 AM
Ok they both are at 8M they where set to upload_max_filesize = 2M post_max_size = 8M prior so it shouldn't have been any big deal. I copied the exact error that I'm getting in the log file.
[Thu Dec 11 08:03:29 2003] [error] [client 209.221.185.226] Requested content-length of 610908 is larger than the configured limit of 524288, referer: http://www.r1wolfpack.com/gallery/upload.php
If I change the file and make it 65K it works just fine.
Problem was not with the php.ini I found that the file size was being limited by the php.conf file located in httpd/conf.d directory. There is a line called limitfile size or something like that when I changed that to 6M and restared apache it worked fine.
coolmile
12-17-2003, 08:07 PM
Doh! It was my fault. I hadn't added my userid. :D
i have the same problem. i just installed the latest version 2.03, and i coudln't see the second line on the admin page.
what do you mean by "didn't add userid"? it could help me figure out the problem.
after installed, it shows i logged in as admin.. but no way to add categories.
if type in the url manually to create category, it says i need to be an admin to do that..
WeBBy
12-19-2003, 04:34 AM
First, your problem coolmile...
Search for yourself on vB (in control panel), then click on edit or something, and look at the address for userid=x. Whatever that number is, that is your userid #. Then, open your galleryconfig.php. On line 74, you will see "$cfgAdminList = '1';". Change that "1" to your userid# and it should work.
NOW MY PROBLEM...
It would appear that Oak Gallery and the small calendar hack dont get along too good. This is my error when trying to upload:
Warning: Cannot modify header information - headers already sent by (output started at /home3/www/basementsystems/dealerarea/cal.php:121) in /home3/www/basementsystems/dealerarea/gallery/upload_handle.php on line 108
Any idea how to get around this and or what the problem might be?
Thanx
EDIT: IGNORE THIS POST (I really should just delete this post but maybe someone is as stupid as I am and will be helped by it). Removing the end comment "<-- End of vbPortal calendar script" from the cal.php script solved the whole problem. What a dumb ass .. lol :O
ScottW23
01-02-2004, 02:21 AM
So, this does make OakGallery the BMW 7-series of Gallery software.
LOL sorry no, I don't think OakGallery is the BMW 7-series of Gallery software. It's silly to say that all applications that allow image uploads and user comments are automatically in the same league whatsoever. After 2-3 years of development work, maybe oakgallery will get there - who knows, but it isn't now.
PhotoPost has been developed for several years with thousands of manhours and has improved VASTLY since you installed it over a year ago. Here's an example, PhotoPost is now deeply integrated with vBulletin 3: http://www.photopostdev.com/
LOL sorry no, I don't think OakGallery is the BMW 7-series of Gallery software. It's silly to say that all applications that allow image uploads and user comments are automatically in the same league whatsoever. After 2-3 years of development work, maybe oakgallery will get there - who knows, but it isn't now.
PhotoPost has been developed for several years with thousands of manhours and has improved VASTLY since you installed it over a year ago. Here's an example, PhotoPost is now deeply integrated with vBulletin 3: http://www.photopostdev.com/
Nice to see that you obviously saw there was issues and it could have been improved. I shall certinally be taking a look when I am not at work later today. :)
phenomenon
03-19-2004, 11:02 PM
Any idea if Oak Gallery will be upgraded to vb 3 compatibility?
Keyser S?ze
03-23-2004, 12:06 AM
i relize everyone is into vb3 now but i am sticking with vb2 for a long while, and was wondering if this hack is going to be updated for vb 2.3.2
thanks alot
Datenpapst
03-29-2004, 10:49 AM
Will there be an updatefor 3.0.0 Gold?
allan grossman
03-29-2004, 11:16 AM
I spoke to Ake on this a few weeks ago and at that time he didn't have a vB license any more so he couldn't port it to vB3. Maybe that's resolved now :)
SpeedysWorld
03-29-2004, 06:43 PM
Maybe he could give someone else permisson to port it? I really would like to use this hack, it's just what I need and the 4images one has to many errors.
- SpeedysWorld
Bergman2
04-02-2004, 04:22 PM
I will speak to Åke to fix it with vb3. He can try it out on my server.
iceman-x
06-08-2004, 11:15 AM
What is hapening? Have Åke found ho to fix this problem ?. Ore is there som one else that can, modify this to work under vb 3.
thanks in advance.
mvh ice
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.