Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
OakGallery 2.0 Released ! [Great image gallery] Details »»
OakGallery 2.0 Released ! [Great image gallery]
Version: 1.00, by Bergman Bergman is offline
Developer Last Online: Aug 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-05-2003 Last Update: Never Installs: 32
 
No support by the author.

?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!)).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-06-2003, 11:58 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #43  
Old 04-07-2003, 01:33 AM
Moyses's Avatar
Moyses Moyses is offline
 
Join Date: Mar 2002
Location: El Salvador
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've getting this error:

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

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

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

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

PHP Code:
    $cfgGalleryDirWeb '/galeria/';    // absolute web path to gallery files
    
$cfgImageDirWeb '/galeria/images/';    // absolute web path to image dir
    
$cfgImageDirLocal '/home/angzone/public_html/galeria/images/'//The local path to the image dir
    
$cfgThumbDirWeb '/galeria/thumbnails/';     // absolute web path to thumbnails dir
    
$cfgThumbDirLocal '/home/angzone/public_html/galeria/thumbnails/'// The local path to the thumbnails dir
    // Put the forums usernumbers for the OakGallery Admins here (comma separated).
    // Like this: '1,2,3,4' - NOT like this: '1, 2, 3' !!!
    
$cfgAdminList '1,3,13,15,26'
     
$cfgForumDir '/home/angzone/public_html/foros/'// The local path to the forum dir
    
$cfgGalleryDir '/home/angzone/public_html/galeria/'// The local path to the vGallery dir 
Reply With Quote
  #44  
Old 04-07-2003, 04:35 AM
seeyou seeyou is offline
 
Join Date: Oct 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

I check the folders on the FTP though and the files ARE uploaded to the images folder (but not the thumbnails one).
I have the same thing, exactly, I think this is the config issue of unix shell, and we don't know how to config the path and locate "convert" & 'compose", please help.
Reply With Quote
  #45  
Old 04-07-2003, 06:08 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.???
Reply With Quote
  #46  
Old 04-07-2003, 06:51 AM
Bergman Bergman is offline
 
Join Date: Aug 2002
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #47  
Old 04-07-2003, 07:58 AM
Bergman Bergman is offline
 
Join Date: Aug 2002
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #48  
Old 04-07-2003, 08:32 AM
seeyou seeyou is offline
 
Join Date: Oct 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #49  
Old 04-07-2003, 09:33 AM
Bergman Bergman is offline
 
Join Date: Aug 2002
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
--------------------------------------------------------------------------
Reply With Quote
  #50  
Old 04-07-2003, 11:59 AM
seeyou seeyou is offline
 
Join Date: Oct 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #51  
Old 04-07-2003, 12:30 PM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 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.11359 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete