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)
-   -   Oak?s vGallery 1.0 (https://vborg.vbsupport.ru/showthread.php?t=48243)

Bergman 01-27-2003 10:00 PM

Oak?s vGallery 1.0
 
The Gallery?s features:
- Forum users can add their own images
- Forum users rate/comment the images (not rate their own)
- Admin can add/delete categories/subcategories
- Admin can move images between categories/subcategories
- Admin can delete images and comments
- A toplist sortable in rating, votes, views, comments
- Automatic Thumbnail creation through ImageMagick?s Convert function
- Images info is stored in MySQL
- Images is stored in a directory of the webserver (not in MySQL)

Coming soon:
- More Admin features
- More data fields
- More sorting options

You want some new feature to the next version ?

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

What you need:
- Licenced vBulletin forum
- PhpMyAdmin to import database structure http://www.phpmyadmin.net/
- ImageMagick (Convert) installed on server http://imagemagick.sourceforge.net/
- "register_globals" in php.ini turned to "On"
- Webservers User must have write access to "images" and "thumbnails" directories

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

How to install:
- UnZip "Oak vGallery 1.0.zip"
- Import database structure from "InstallDB\Oak_vGallery.sql" with PhpMyAdmin
- Configure DB User/Pass in "Upload\sql.php"
- Configure your vGallery in "Upload\galleryconfig.php"
- Configure the text and link styles in "Upload\gallery.css"
- Upload the files from "Upload" to your vGallery directory on the webserver
- Give the webservers User write access in "images" and "thumbnails" directories
- Start your vGallery and Upload your image categories
- Please post your vGallery link here
- Finished ! :)

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

Here is some screenshots:

http://websociety.wm.net/~wmanbem/_temp/vGallery1.jpg
http://websociety.wm.net/~wmanbem/_temp/vGallery2.jpg
http://websociety.wm.net/~wmanbem/_temp/vGallery3.jpg
http://websociety.wm.net/~wmanbem/_temp/vGallery4.jpg
http://websociety.wm.net/~wmanbem/_temp/vGallery5.jpg

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

Direct link to my vGallery (This one is Swedish):
http://websociety.wm.net/~wmanbem/fi...leri/index.php

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

Please post questions, comments and suggestions here !

Automated 01-28-2003 09:12 AM

I will be having a look at installing that a bit later, i do need a gallery :p

Matthew

thefreestyler 01-28-2003 09:13 AM

WOW thank you for sharing with us click install

Floris 01-28-2003 11:05 AM

How far is this integrated with vBulletin ? On your demo site I do not see the header/footer of your site .. does it only use the user table to get the user/pass as integration (done with getuser.php?)

Bergman 01-28-2003 11:34 AM

Xiphoid, yes only the User/Pass is used. Separate DB and directory on the webserver.

colicab-d 01-28-2003 01:03 PM

installed :D

Bergman 01-28-2003 02:08 PM

Colicab-d, can you post the url ? What do you think about it ?

Sebastian 01-28-2003 03:51 PM

Quote:

Originally posted by Bergman
"register_globals" in php.ini turned to "On"
uhm, no thanks .. you should learn to code your scripts with globals off. Security comes first for me.

Bergman 01-28-2003 04:03 PM

Sebastian, it is my friend who has coded the Gallery but i can forward your comments to him. It worked with register_globals=off with older versions of PHP but not with the newest.

colicab-d 01-28-2003 04:04 PM

im gonna set it up tonite bergman i gotta install image magik first :p

Aside that i should be able to get a really cool version of it running if i can modify the templates it uses ok :D

add me on aim or msn :D

Sketch 01-28-2003 05:40 PM

yeah I've found that register_globals on software is not ALWAYS bad. Insecurity is in the programming not the build. But here's what I've discovered:

Any script that the author uses a register_globals on script with has either:
A) issued an update by now to let the user run the script with globals off, or
B) Is not security minded, in which case I won't use the script.

If they just don't know HOW to update their script or haven't had the time I can deduce one of 2 things. Either they
A) Don't know what they are doing in regards to security, or
B) don't take security seriously enough.

Either way I won't use the script.

Like I said, if a script requires register globals on it does not necessarily mean it's an insecure script, but how do I know that?

Aaron

ranger2kxlt 01-28-2003 07:48 PM

ok i get this error

Parse error: parse error, unexpected T_STRING in /www/html/vb/vbgallery/galleryconfig.php on line 49

Warning: ChDir: No such file or directory (errno 2) in /www/html/vb/vbgallery/getuser.php on line 4

anyhelp?

colicab-d 01-28-2003 08:06 PM

id guess its a mis config in your settings i.e your pointing it to a non-existant dir :p

ranger2kxlt 01-28-2003 09:26 PM

ok this is line 49
Code:

                $intRat width=\"55\" height=\"12\" src=\"icons/" . $intRating . "stars.gif\" alt=\"" . round($dblRating, 1) . "\"> (" . round($dblRating,1) . ")";
this is the line 4
Code:

        chdir($cfgForumDir);
neither of these lines were we suppose to edit, so is there something else to fix this?

SpeedStreet 01-28-2003 09:56 PM

There is definitely an issue here, I can replicate it as well.

alkatraz 01-29-2003 03:20 AM

Thanks for the script!! I've been waiting for something like this for ages.. finally an alternative to photopost!!

I'd love to see a working english version before I install this though

DarkDraco07 01-29-2003 07:11 AM

i hate stupid site like that imagemajik thingy, i can never find the link to what i want. can someone give me a direct link to the download

thedvs 01-29-2003 08:15 AM

gaaaaaah

Parse error: parse error in /usr/home/chumash/www/forums/galleries/galleryconfig.php on line 49

Warning: ChDir: No such file or directory (errno 2) in /usr/home/chumash/www/forums/galleries/getuser.php on line 4

DarkDraco07 01-29-2003 09:14 AM

ok, i downloaded ImageMagick-5.5.4-1.zip
i took a look at it and have no idea how to install it on my server :(

Bergman 01-29-2003 10:51 AM

My friend is going to fix so register_globals=on is not necessary but then you must have a late version of PHP instead.

He also thought that your error can be a missing ; somewhere. We are goint to look at it later today. Can you post your galleryconfig.php without the DB info ? It helps to find the error.

colicab-d 01-29-2003 12:21 PM

yeah the whole image magik is bloody confusing :p

gopherhockey 01-29-2003 12:27 PM

Quote:

Originally posted by Sebastian


uhm, no thanks .. you should learn to code your scripts with globals off.

Yea, thanks for completely wasting your time and ours by offering up this free module to those desparately waiting for a good gallery script. DOH! (sarcastic smile here)

What I say is, if someone has a problem with this globals thing, explain just why it should not be set the way the author has it.

Then, if someone wants to help him out in fixing this (if necessary) offer to do so... (looks like someone may have done this already)

I just think more constructive criticism is in order when someone has spent this much time working on something like this... thats all. (sorry, I've seen so many people do this lately and had to finally say something...)

I say thanks for the script. It looks like gallery 3.0 may not be delivered as promised, so perhaps this new iteration of a gallery will take off and solve the gallery blues...

SpeedStreet 01-29-2003 12:49 PM

Quote:

Originally posted by Bergman
My friend is going to fix so register_globals=on is not necessary but then you must have a late version of PHP instead.

He also thought that your error can be a missing ; somewhere. We are goint to look at it later today. Can you post your galleryconfig.php without the DB info ? It helps to find the error.

I'm using the exact same galleryconfig.php that you have in the file, save for inputting my own personal information into the file.

Bergman 01-29-2003 01:04 PM

gopherhockey, thanks ! :)

SpeedStreet, are you sure that the path to the forum and gallery is the correct local path on the server ?

Wich PHP and MySQL version do you have ?

SpeedStreet 01-29-2003 01:27 PM

PHP Version 4.2.3
Mysql Version 3.23.54

Paths are 100% correct. Imagemagick is on, register_globals are on (Host's choice, i'd prefer not to have them, but since he has them on, I might as well make the best of it).

Bergman 01-29-2003 03:06 PM

SpeedStreet, im runnig PHP 4.2.3 and MySQL 3.23.52 so that should not be the problem. Hmm ...

I can ask my friend again but he was quite sure that there must be some error in galleryconfig.php

Could you send it to me so i can have a look in it ? anbem@wmdata.com is my adress. Remove User/pass to the DB first. please send the url to the Gallery to.

My MSN-adress is anbem@wmdata.com if you have MSN

SpeedStreet 01-29-2003 04:09 PM

Thanks for the help. Once I get back to the office, I will send it over :)

rrnolan 01-29-2003 05:52 PM

Photopost doesnt do that and I need for my game site to beable to upload a pic of the map the then the map files for your server

SpeedStreet 01-29-2003 06:03 PM

Just put the link to a thread that contains the attachment in the description of the photo.

SpeedStreet 01-29-2003 06:15 PM

Bergman,

I've sent over all the files and have the test up and running...well, as up and runnig as i can get it. Thanks for your help.

Bergman 01-29-2003 07:00 PM

Aaarrrghh ... it seems that the //Functions-section is wrong in galleryconfig.php

This is the right

<?

// Functions

function createStars($dblRating) {

$intRating = round($dblRating);

$imgTag = "<img width=\"55\" height=\"12\" src=\"icons/" . $intRating . "stars.gif\" alt=\"" . round($dblRating, 1) . "\"> (" . round($dblRating,1) . ")";

return $imgTag;

}



function removeHTML($sData) {

$searchFor[0] = "<";

$searchFor[1] = ">";

return str_replace($searchFor, "", $sData);

}



function outputRowColSelector($cid, $scid, $sort) {

global $rowcol;

?>

SpeedStreet 01-29-2003 07:47 PM

Awesome!

We are one step closer to getting this to work.

Here is the newest problem that appears on the top of all my pages:

PHP Code:

WarningCannot add header information headers already sent by (output started at /home/speedstr/public_html/forums/gallery/galleryconfig.php:47in /home/speedstr/public_html/forums/gallery/create_category.php on line 75 


ranger2kxlt 01-29-2003 07:48 PM

ok question
on these lines where it asks for path to ????

Code:

$cfgForumDir = "/home/vbulletin/"; //The local path to the forum dir
what path our FULL path or just a ../vb ???

SpeedStreet 01-29-2003 07:55 PM

I'm toying around with this, and while I error out trying to upload a picture, it does in fact work...I am getting VERY excited about this.

Is you team planning on integrating this with vBulletin further? I would LOVE to see the ability for an admin to lock a certain category for their uploading only and maybe the ability for common users to add their own sub categories as well....or maybe even link their own subcategory to their profile (ala PhotoPost).

This program has HUGE potential in our community, you can sign me up as your number 1 beta tester

/me definitely installs

SpeedStreet 01-29-2003 07:56 PM

Quote:

Originally posted by ranger2kxlt
ok question
on these lines where it asks for path to ????

Code:

$cfgForumDir = "/home/vbulletin/"; //The local path to the forum dir
what path our FULL path or just a ../vb ???

Full path is prolly best.

Usually it's /home/USERNAME/public_html/vbulletin or whatever.

ranger2kxlt 01-29-2003 08:05 PM

i get this now

Code:

Warning: Cannot add header information - headers already sent by (output started at /www/html/vb/VGallery/galleryconfig.php:47) in /www/html/vb/admin/functions.php on line 1692


figured it out, was b/c i forgot to define the user groupid numbers in the config

SpeedStreet 01-29-2003 08:13 PM

Me too ;)

ranger2kxlt 01-29-2003 08:19 PM

ok new problem, got everything else working, everything uploads but i get an error when i hit upload, same for creating cat., making a comment...etc...

the code is the same on them all

Code:

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site238/fst/var/www/html/vb/VGallery/galleryconfig.php:47)
any fix for this?

Bergman 01-29-2003 09:32 PM

Now we figured it out ... there were blank rows in there 3 files. Sorry for the problems but it should work now. :)

SpeedStreet 01-29-2003 09:34 PM

Here is a link to an English working demo:

http://www.speedstreet.org/forums/gallery


All times are GMT. The time now is 12:42 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.01485 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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