vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   OakGallery 2.0 Released ! [Great image gallery] (https://vborg.vbsupport.ru/showthread.php?t=51255)

Bergman 04-05-2003 10:00 PM

OakGallery 2.0 Released ! [Great image gallery]
 
?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/fi...k/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

Quote:

Today at 02:21 PM Bergman said this in Post #8
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

Quote:

$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?


All times are GMT. The time now is 04:52 PM.

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

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

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

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