PDA

View Full Version : Oak?s vGallery 1.0


Bergman
01-27-2003, 10:00 PM
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/fiskesnack/fotogalleri/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
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
$intRat width=\"55\" height=\"12\" src=\"icons/" . $intRating . "stars.gif\" alt=\"" . round($dblRating, 1) . "\"> (" . round($dblRating,1) . ")";

this is the line 4
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
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
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:

Warning: Cannot add header information - headers already sent by (output started at /home/speedstr/public_html/forums/gallery/galleryconfig.php:47) in /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 ????

$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
Originally posted by ranger2kxlt
ok question
on these lines where it asks for path to ????

$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

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

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

Jadelit
01-30-2003, 07:21 AM
A great feature would be if the photos were viewed like this also..

http://www.overgrow.com/edge/showthread.php?threadid=233084

thedvs
01-30-2003, 08:29 AM
Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE session SET lastactivity=1043922326,location='/dvsforums/galleries/showcategory.php?cid=1' WHERE sessionhash='d32491478276a701f1302bf737973f7f'
mysql error:

mysql error number:

Bergman
01-30-2003, 08:58 AM
thedvs, what did you do to get that error ? I think i need more details to help you out ...

colicab-d
01-30-2003, 09:10 AM
id like to see it work by pulling attached images from forums (admin specified) and displaying them on an external gallery.php with say 5 latest and 5 best rated

it could work by also resizing attached images in threads to thumbnails but having a larger version of it linked underneath (like yaxay)

thats what i want to see from a gallery not seperate scripts runing off of the user/pass :p

SpeedStreet
01-30-2003, 12:45 PM
This program is meant for a different purpose. Perhaps you should try putting up a post in the Hack Requests section, and see what kind of response you get :)

For what this hack is trying to do, it is damned near perfect. I hope to customize it a bit further and put some more info into it, but as it stands, this thing rocks!

Bergman
01-30-2003, 01:23 PM
SpeedStreet, thanks for that ! :) in some days there will come a new version there you kan add your own field and even sortable in all ways. :)

For everyone, there will not be a full integration with vbulletin forum. We think it is better to have it separte. Try the requst section. ;)

cinq
01-31-2003, 12:13 AM
Created a new db for the gallery
Editted the galleryconfig file for the DBName
Editted the SQL file for the DB username and password

Created a folder in my vB root directory called 'gallery' and uploaded the files there.

CHmod my images and thumbnails folders to '777' to enable write access.

However when i go to the http://www.mydomain.com/gallery/index.php , nothing shows just a blank page.

What have i not done right ?

Pls advise , many thanks ! :)

--------------------
PHP version 4.1.1
MySQL version 3.23.54
--------------------

Willard Reece
01-31-2003, 02:52 AM
Ok I go this far and when I try to Create New Category.
It errors out and says this.

Creation Failed (Database) - Please use the back button INSERT INTO tblCategory (sName,sDescription) VALUES ('Reecefamilies Pictures','Will and Judy and Family');


http://www.reecefamilies.com/vp/forums/vgallery/index.php


Thanks
Willard

thedvs
01-31-2003, 09:10 AM
Well it was working fine, the script came up in my gallery index and then at the bottom it just had this errors...

Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE session SET lastactivity=1043922326,location='/dvsforums/galleries/showcategory.php?cid=1' WHERE sessionhash='d32491478276a701f1302bf737973f7f'
mysql error:

mysql error number:


AND THATS ALL the error said :(

Willard Reece
01-31-2003, 03:23 PM
I still havn't been able to locate the problem and fix it.
I also so see this on the index page.

Latest additions
No Database Selected

and on the showtop page aka top list ,
I see this

Database Error


Originally posted by Willard Reece
Ok I go this far and when I try to Create New Category.
It errors out and says this.

Creation Failed (Database) - Please use the back button INSERT INTO tblCategory (sName,sDescription) VALUES ('Reecefamilies Pictures','Will and Judy and Family');


http://www.reecefamilies.com/vp/forums/vgallery/index.php


Thanks
Willard

Willard Reece
01-31-2003, 06:47 PM
Did you
Import database structure from "InstallDB\Oak_vGallery.sql" with PhpMyAdmin


Originally posted by cinq
Created a new db for the gallery
Editted the galleryconfig file for the DBName
Editted the SQL file for the DB username and password

Created a folder in my vB root directory called 'gallery' and uploaded the files there.

CHmod my images and thumbnails folders to '777' to enable write access.

However when i go to the http://www.mydomain.com/gallery/index.php , nothing shows just a blank page.

What have i not done right ?

Pls advise , many thanks ! :)

--------------------
PHP version 4.1.1
MySQL version 3.23.54
--------------------

Colon33
01-31-2003, 06:54 PM
So whats the latest download for this nice loooking mod? I cant keep track through all the posts. Can someone post me the current .zip file?

Willard Reece
01-31-2003, 06:58 PM
The one on page 1 is the full download,

I have yet to get it to work completely tho,
but looks nice.

cinq
01-31-2003, 10:44 PM
Originally posted by Willard Reece
Did you
Import database structure from "InstallDB\Oak_vGallery.sql" with PhpMyAdmin


Yes i did , but into the same db as my forums.
Is that rite ? Or do i have to create a seperate db for it ?

Willard Reece
01-31-2003, 10:51 PM
I have did it both ways and havn't got it working yet,,
It shows up but I can't create anything or upload.

Maybe someone will see our posts and help out.

cinq
01-31-2003, 11:04 PM
Ok i set create the tables ( via the Oak_gallery.sql upload ) to my forum db , checked the paths again ( changed a few ) and finally got something to show.

But cant seem to do anything else.

Here's a screenie of how it looks right now:

Willard Reece
01-31-2003, 11:11 PM
I put it on my test site and got it first time,
http://www.reecefamilies.com/vportal/forums/vgallery/showcategory.php?cid=1

You are right,, I installed it under just the forums, and a dir of vgallery,,, not a new data base

cinq
01-31-2003, 11:14 PM
Willard , could you attach your current galleryconfig.php file if possible ?
Wish to view your path settings to check that i got mine right
I cant even see some of the items your page is showing.

Willard Reece
01-31-2003, 11:19 PM
heres what I used,, I still have to make it nice tho,,

I just went back to my main site and made the changes and phpamin the file and boom it works there too.

cinq
01-31-2003, 11:27 PM
Many thanks , some of my paths were wrong.
Kinda works now i think , will try it out and feedback soon

Willard Reece
01-31-2003, 11:29 PM
Let me know,,,,

cinq
01-31-2003, 11:52 PM
Ok forgive me if this is a silly question but how do i tell if Imagemagik is present on my host ?

I have emailed them but their support does not seem to bother replying my mails..

I have uploaded some pics but they do not show , just a little red X.
Check the thumbnails folder there isnt anything inside.

Willard Reece
01-31-2003, 11:55 PM
You'll have to ask you host or maybeyou can find out from your cpanel.

Willard Reece
02-01-2003, 01:14 AM
This P!!!! me off,,, I get it working and then it quits...
now I can't make new Categories

It seems to work but will not let me create Categories

Bergman
02-01-2003, 11:54 AM
Willard, only admins can add categories. Have you added your VBulletin "usernumber" as admin in galleryconfig.php ?

Cinq, unzip phpinfo.zip and upload phpinfo.php and run it through Internet Explorer. You can se PHP & MySQL-version, if ImageMagick is installed and lots of more things.

Do you guys have MSN ? Add med there so i can help you out easier. anbem@wmdata.com is my adress.

cinq
02-01-2003, 12:14 PM
Thanks Bergman :)

Did as you said , didnt find anything to do with ImageMagik in the printout....guess my host hasnt got it installed....darn.

Does this mean I cannot use this hack now ? I noticed there's GD though .. if it means anything

Willard Reece
02-01-2003, 01:02 PM
ask your host to install it

Willard Reece
02-01-2003, 01:13 PM
Thanks Bergman
Keep us updated on the new version.

and for those that want to see it working,, go to
Vgallery at Reecefamilies (http://www.reecefamilies.com/vp/forums/vgallery/index.php)

Bergman
02-01-2003, 01:17 PM
cinq, the ImageMagick is needed for the automatic Thumb-creation. We tried to use GD first but it was not good enough.

Willard, no problem. I will keep you updated in this thread. :)

Bergman
02-01-2003, 01:34 PM
We found out that the sign ' (apostrophe?) is not allowed in Categories or descriptions. If you try to create one you will recieve a strange error message. It will be fixed to the next version.

Willard Reece
02-01-2003, 02:41 PM
I just found out that in the config, on this line

$cfgPageTitle = ""; //Reecefamilies Gallery is ok
$cfgGalleryDB = ""; //wreece_OakvGallery is not what I need to be there.
But with wreece_vb or wreece_OakvGallery
The gallery still works. So this don't seem to be damanding to the working of the config.

I changed it around and it worked both ways!!!!!

SharkMatt
02-01-2003, 02:55 PM
i have been going through all the post about this hack and im still getting an error. can someone help me out thanks.

Parse error: parse error in /usr/local/psa/home/vhosts/sbhacsupport.ca/httpdocs/gallery/galleryconfig.php on line 46

Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/sbhacsupport.ca/httpdocs/gallery/getuser.php on line 4

Warning: Unable to access ./global.php in /usr/local/psa/home/vhosts/sbhacsupport.ca/httpdocs/gallery/getuser.php on line 5

Willard Reece
02-01-2003, 03:02 PM
That looks like a path error in your config.

Make sure you chmod the files to 755

Did you run phpadmin to put it in the database

Willard Reece
02-01-2003, 03:08 PM
also did you use the 3files fix in thread 3? I don't know if it will make a difference tho

SharkMatt
02-01-2003, 03:28 PM
all my paths are correct
yes, i've use the 3 files fix

Willard Reece
02-01-2003, 03:32 PM
whats the url to the gallery

SharkMatt
02-01-2003, 03:34 PM
<a href="http://www.sbhacsupport.ca/gallery" target="_blank">http://www.sbhacsupport.ca/gallery</a>

Willard Reece
02-01-2003, 03:37 PM
Do you have all dirs chmoded and the files under them

SharkMatt
02-01-2003, 03:40 PM
yes

Willard Reece
02-01-2003, 03:40 PM
open your board for a sec and lets se if that helps

SharkMatt
02-01-2003, 03:43 PM
it's open now and it doesnt seem to be doing any good

Willard Reece
02-01-2003, 03:43 PM
in your config on line 46,, is mostlikey blank... Take out the blank line

Willard Reece
02-01-2003, 03:45 PM
and ck getuser.php to see if those lines 4 and 5 are blank

SharkMatt
02-01-2003, 03:52 PM
i check, remove all the blanks and still not working

Willard Reece
02-01-2003, 03:54 PM
Its saying path error but, ?
how did you install the phpMyAdmin MySQL-Dump of the gallery?

thru your forums database name?

SharkMatt
02-01-2003, 03:57 PM
i upload the sql file through phpmyadmin to my vb database

Willard Reece
02-01-2003, 03:58 PM
you did edit the sql.php and put in your database name and password?

Just making sure so stay with with me.

SharkMatt
02-01-2003, 04:02 PM
yes

Willard Reece
02-01-2003, 04:03 PM
whats your vb database name?

SharkMatt
02-01-2003, 04:05 PM
sbhacsupport

Willard Reece
02-01-2003, 04:08 PM
Did you ck this?

register_globals" in php.ini turned to "On

SharkMatt
02-01-2003, 04:09 PM
register_globals is on

Willard Reece
02-01-2003, 04:11 PM
another ?
does your host have safe mode on????. I am not sure if that makes a difference tho.

Bergman would be the one to tell us that..
I have safe mode off

Other than that, I am back to the paths being worng somewhere

SharkMatt
02-01-2003, 04:13 PM
yes safe_mode is on
i might be able to get it turn off if i talk to the admin since i know him but i dunno

Willard Reece
02-01-2003, 04:17 PM
try this config

SharkMatt
02-01-2003, 04:21 PM
only those 2 errors are showing up now
b4 there was 3...

Warning: ChDir: No such file or directory (errno 2) in /usr/local/psa/home/vhosts/sbhacsupport.ca/httpdocs/gallery/getuser.php on line 3

Warning: Unable to access ./global.php3 in /usr/local/psa/home/vhosts/sbhacsupport.ca/httpdocs/gallery/getuser.php on line 4

SharkMatt
02-01-2003, 04:22 PM
wait a minute.....my fault in this new config

SharkMatt
02-01-2003, 04:25 PM
nope, still have the 2 errors from above

Willard Reece
02-01-2003, 04:28 PM
take out the .ca

thats like using xxxxx.com and that don't go into a home path I think
like this

/usr/local/psa/home/vhosts/sbhacsupport/httpdocs/gallery/

SharkMatt
02-01-2003, 04:33 PM
no good

Willard Reece
02-01-2003, 04:33 PM
I still show the .ca when I refresh

SharkMatt
02-01-2003, 04:34 PM
i know
i removed them all tho

Willard Reece
02-01-2003, 04:38 PM
try this one

Willard Reece
02-01-2003, 04:40 PM
I just thought of something,, Did you set your admin 1,2,3, in the config.

SharkMatt
02-01-2003, 04:41 PM
nope, no change

SharkMatt
02-01-2003, 04:44 PM
i did

Willard Reece
02-01-2003, 04:46 PM
Well If you are sure of the paths, then its has to be the safe mode.

We have went thru the whole config and file sthat might cause this error

unless Bergman comes online and see's your post,,
if your host won't turn off safe mode then PM bergman and see if he will come online and help..
He was here a while ago... and helped me,, it turned out I just was putting in the wrong command when I tried to make catigories

But anyway when you see this type of errors it useally means paths.

SharkMatt
02-01-2003, 04:49 PM
ok thanks for your help

hopefully Bergman will reply with a possible fix or anything to help.

Thanks again

Willard Reece
02-01-2003, 04:52 PM
np
Anytime.

Willard Reece
02-01-2003, 05:19 PM
Bergman says that he will consult the script writer,, his friend and will get back to you tomorrow.

On the safe mode.

Bergman
02-02-2003, 07:42 PM
SharkMatt, can you add me on MSN if you got it ? Easier to help you oyt there i think. It sounds like a misconfig in galleryconfig.php

Bergman
02-02-2003, 07:48 PM
SharkMatt, my safe_mode is off so i dont know if it is that. I have asked my friend and waiting for answer.

SharkMatt
02-02-2003, 07:54 PM
Bergman, whats your MSN address?
I need to reinstall the hack cause it was removed.
I still would like to have it running if we can get it to work.

Bergman
02-02-2003, 08:01 PM
My adress is anbem@wmdata.com

My friend did not know about safe_mode ... anyone that can test it ?

SpeedStreet
02-03-2003, 12:45 AM
Safe mode is off on mine and it is running great...

Willard Reece
02-03-2003, 09:15 PM
For thoses who want your forum buttons in your gallery page , You can use this,
You will have to edit it to show your urls to the buttons and images tho.

SpeedStreet
02-03-2003, 10:48 PM
http://www.speedstreet.org/gallery

How does everyone like mine? :)

I configured it so that my users can automatically create their own subgallery :)

More changes to come...

Willard Reece
02-04-2003, 11:44 PM
Originally posted by SpeedStreet
http://www.speedstreet.org/gallery

How does everyone like mine? :)

I configured it so that my users can automatically create their own subgallery :)

More changes to come...


I think thats a good idea, make a catorgory and then your members can make their own under that.
So like in my case I make certain ones and then my members go and make their own personal family area under that..
So gets my vote!!!!!!!!!!!!!

SpeedStreet
02-05-2003, 12:57 PM
I will release a few minor hacks to this hack once Bergman releases his next version. I was told not to hack it, but I couldn't wait :)

This program is in dire need of an Edit My Picture function. Once the information is input, the user cannot edit it in any way, shape or form.

sk187
02-05-2003, 03:53 PM
Willard Reece: have you made it so users can make there own categories. If so can you share(or anyone who knows how) becaue I really need that feature.

Willard Reece
02-05-2003, 05:28 PM
I haven't made that,,,

SpeedStreet has I think!!!!
I'm looking into incorperating it into vp.
I like the gallery and think it might turn out to be 1 of the best free ones.

SpeedStreet
02-05-2003, 09:11 PM
Here is my code:

speedway
02-09-2003, 10:37 AM
Is anyone else having problems with sorting/subcat selection in Mozilla/Netscape?

These dropdowns work fine in IE, but do not work in Mozilla/Netscape. Anyone got a fix?

Any help appreciated.
Cheers

feldon23
02-09-2003, 07:21 PM
bergman said:
My friend is going to fix so register_globals=on is not necessary but then you must have a late version of PHP instead.
This is not correct.

requires register_globals:
echo $name;

requires PHP4 but works with register_globals off:
echo $_POST['name'];

works with PHP 3+4 with register_globals off:
echo $HTTP_POST_VARS['name'];

Colon33
02-10-2003, 05:03 PM
what this hack needs, is a seperate area for each member. So each member that logs in get there own upload page. So you can have Image Gallery > Username or something. ON the main page of the gallery it could list the users who have updated there pages. Things like that. :)

SpeedStreet
02-10-2003, 05:32 PM
Check out my subcat hack to this program. it allows users to create their own subcategories.

Bergman
02-10-2003, 06:45 PM
Todays status of the next version:
- Register globals = Fixed
- More editable/sortable fields = Fixed
- A working Editfunction = Soon fixed
- A copyrightfunction to insert text in the pictures = Soon fixed

In some days the new version will arrive. My friend have some more things to do so we cant promice a day. :)

cinq
02-11-2003, 04:00 PM
Any chance to get this working with GD instead ? My host is obviously not replying to my constant emails abt installing ImageMagic....sigh :(

And i really wish to use this hack..

Bergman
02-12-2003, 07:40 AM
cinq, i dont think that my frient is going to do that again. He used GD from start but changed later because it was not good enough. But i can ask hin if he could do a setting in galleryconfig.php

cinq
02-12-2003, 02:26 PM
Ok many thanks Bergman , not expecting him to , just hoping something might work out which i can utilise
Thank him once again for this great hack even if i cant use it :)

SpeedStreet
02-13-2003, 04:13 AM
Bergman,

I'm encountering a serious issue, and I need your help with it.

I need some sort of validation code. If a sub-category already has a similar name in the database in a specific category, then the user should be sent to an error page....can we do that real quick?

Many thanks...

SpeedStreet
02-13-2003, 09:16 PM
Here's Yet another hack from me:

This one allows special characters to be inserted into picture uploads.

SpeedStreet
02-13-2003, 09:19 PM
Here's Another to allow special characters in comments posted by users:

Willard Reece
02-13-2003, 09:29 PM
SpeedStreet


Originally posted by SpeedStreet
Here is my code:
This is on users can make own cats that you put up

do a compare on the changes you show here,
I used compare and didn't see any difference

So I guess what I am saying is show me what the difference is between what you say to change.

Dominick
02-13-2003, 09:31 PM
how do I password protect the gallery so only certain groups can use it?

oh gallery linkage

http://www.tech-lounge.com/gallery

SpeedStreet
02-14-2003, 12:39 PM
whoops :) Damned cut and paste.


I'll get around to fixing that later today....sorry.

msimplay
02-22-2003, 09:55 PM
i tried to install this hack b4 but to no avail
but i really want it now
cuz its causing me problems having a seperate Photo gallery even though its very good
people don't want to register twice
and i only want members to post
but at the moment i have to let people post manually
each one comes to me with their own request to make an album just for themselves

so can u please put all the hacks and fix files in one zip and post here on this forum
cuz i gave up last nite but i found out i needed it today :o

kuska
02-25-2003, 02:01 AM
is there anyway to show the newest pic (thumb) on forum home page?

Id like to intergrate it with the welcome panel.

SpeedStreet
02-25-2003, 03:50 AM
Originally posted by msimplay
i tried to install this hack b4 but to no avail
but i really want it now
cuz its causing me problems having a seperate Photo gallery even though its very good
people don't want to register twice
and i only want members to post
but at the moment i have to let people post manually
each one comes to me with their own request to make an album just for themselves

so can u please put all the hacks and fix files in one zip and post here on this forum
cuz i gave up last nite but i found out i needed it today :o

The first posted hack will work for your needs. Use that.

SpeedStreet
02-25-2003, 03:51 AM
Originally posted by kuska
is there anyway to show the newest pic (thumb) on forum home page?

Id like to intergrate it with the welcome panel.

Yes, you would have to query the table for the most recent dated photo thumb and post it that way.

SpeedStreet
02-25-2003, 03:51 AM
Originally posted by kuska
One more question, ive made my gallery color similar to my forum, and id created a
seperate PHP page with my original forum header and footer. Id like to embed the
gallery beatween my header and footer but i cant seem to get it to work... I tried
the basic <embed src="url to gallery"> and the <object src> way...
Is there a code to embed the gallery?
The reason im doing this is to have my original forum style look with all the
trimings like the forum border for example.


Yes, simply add the header located in your style directly into the header of the vGallery format...that worked great for me.

kuska
02-25-2003, 05:38 AM
Hey thanks for the help but i just re-did the whole header and it looks pimp now .
I have a question, how do i delete categories? Or am i missing something? Can seem to find any link or page for it
And about the most recent photo on forum home page, lol can you write that in newbie language? If its not too much trouble, i understand what you mean... My question now is how ? :)

SpeedStreet
02-25-2003, 12:22 PM
The only way I have been able to do it is through the database manually.

Aaow AnD wHiTe
03-03-2003, 02:50 AM
I keep getting this error. What could be wrong? I've double checked paths and everything...

Database error in vBulletin 2.2.8:

Invalid SQL: UPDATE session SET lastactivity=1046692121,location='/foro/galeria/' WHERE sessionhash='da9b268fe73a463df8c27e4783da4329'
mysql error:

mysql error number:

Date: Monday 03rd of March 2003 05:48:41 AM
Script: http://www.xxxxxxxxxxxxxxxxxx.com/foro/foro/galeria/
Referer:

SpeedStreet
03-04-2003, 08:52 PM
OK, I need some help.

I'm working on a hack, and I need someone to give me just ONE tidbit of information, then I can release it to all of you.

I need to have $iUserID link correlate to the UserID of the owner of a picture in a gallery located in post_comment.php

I have tried a million little things, and nothing seems to be working. The quicker I get this done the better.

Bergman
03-05-2003, 12:44 PM
Originally posted by kuska
Hey thanks for the help but i just re-did the whole header and it looks pimp now .
I have a question, how do i delete categories? Or am i missing something? Can seem to find any link or page for it
And about the most recent photo on forum home page, lol can you write that in newbie language? If its not too much trouble, i understand what you mean... My question now is how ? :)

Hi,

version 1.0 does not support the Editing features. You must do it through PhpMyAdmin for now. In the next version all Cathegories and data will be editable.

Bergman
03-05-2003, 12:46 PM
Originally posted by kuska
is there anyway to show the newest pic (thumb) on forum home page?

Id like to intergrate it with the welcome panel.

In version 1.5 there is a Include-script doing this. Can you wait for next version ?

SideFX
03-07-2003, 06:31 PM
Database error in vBulletin 2.3.0:

Invalid SQL: DELETE FROM session WHERE sessionhash=''
mysql error:

mysql error number:

Date: Friday 07th of March 2003 03:23:14 PM
Script: http://www.sytedesigns.com/forumsd/vGallery/index.php
Referer: http://sytedesigns.com/vGallery/index.php

SideFX
03-07-2003, 11:27 PM
ok i fixed the other problem now i got a new one when users try to post a comment to something they get this error

Comment Failed (Database) - Please use the back button INSERT INTO tblComment (sComment,iImageID,iUserID,sUserName,dateSent) VALUES ('I really like. It's time to start teaching Steven how to do...hehe... ;-)',1,20,':: LiNuX ::',NOW());

and when they try to upload they get this

Upload Failed (Database) - Please use the back button INSERT INTO tblImage (iCategoryID,iSubCategoryID,iUserID,sUserName,sFil e,sTitle,dateAdded) VALUES (5, 0, 20, ':: LiNuX ::', '20-jackson.jpg', 'My Picture...don't laugh please.',NOW());

SpeedStreet
03-08-2003, 03:21 AM
It happens when you put an ' into one of the fields.

I have a fix I will post Monday.

SideFX
03-08-2003, 03:39 AM
<a href="http://sytedesigns.com/vGallery/index.php" target="_blank">http://sytedesigns.com/vGallery/index.php</a>

here is my working one

Bergman
03-10-2003, 11:29 AM
SpeedStreet, can you post the hack for sending PM upon comment ?

SpeedStreet
03-10-2003, 01:03 PM
New Hack

Send PM on User Comment:

If a user comments on a picture you have posted, this hack will send you a PM with the contents of that comment.

The only thing I didn't add that I still wanted to do was a link back to the original picture post. If anyone could help with that, this would be great.

Thanks, and Enjoy!

Bergman
03-10-2003, 01:18 PM
SpeedStreet, great ! Lookin on it ...

Remnant
03-10-2003, 02:59 PM
Would it be possible to add the database to the VB search engine?

Bergman
03-11-2003, 07:02 AM
Remnant, we dont have any solution for that yet

Version 1.60 och the gallery is being tested for the moment ... soon there will be a release.

http://websociety.wm.net/~wmanbem/fiskesnack/fotogalleri/index.php

SpeedStreet
03-11-2003, 01:27 PM
The easy answer to Rem's question is no.

I will look into some sort of integration with the search engine, but I really don't think it's worth the trouble.

Aaow AnD wHiTe
03-13-2003, 03:43 AM
Bergman, please, could you take a look at our previous post (page 10) :) Thanx in advance :D

Bergman
03-13-2003, 07:49 AM
Aaow, add me on MSN and i will try to help you. Or can you give me more info about the problem ?

My MSN: anbem@wmdata.com

zim119
03-18-2003, 01:57 AM
just a quick question- does this mod allow sub directories?

Bergman
03-18-2003, 06:50 AM
Zim, Yes it does.

GoTTi
03-26-2003, 06:26 AM
my webhost said they installed imagemagick on the server for me, how do i find out if it is on this server?

i have CPanel newest version.

Bergman
03-26-2003, 09:19 AM
Just ask your isp what the local path to Image Magick´s "convert" is and put it in the galleryconfig.php

:Judge:
03-26-2003, 10:53 AM
How much longer for the new version :D

I am looking forward to this myself.

Bergman
03-26-2003, 01:13 PM
The new version is Release Candidate for the moment and the only thing left is support for MS SQL. ?ke has pretty much to do but when he got some hours over it will be released. :)

SpeedStreet
03-26-2003, 01:29 PM
Uhh....I don't understand the need for supporting MS SQL, since vBulletin only comes in MySQL flavors ;)

Bergman
03-26-2003, 07:29 PM
SpeedStreet, ?ke plans to get it working with other forums to ... even stand alone without forum. ;)

hidjra
03-27-2003, 04:46 PM
in create_category.php and create_subcategory.php use this code chunck instead of the one in tha zip

// add category to database
$vars = "sName";
$values = "'" . addslashes($name) . "'";
if ($desc) {
$vars = $vars . ",sDescription";
$values = $values . ",'" . addslashes($desc) . "'";
}


// add subcategory to database
$vars = "sName,iCategoryID";
$values = "'" . addslashes($name) . "',$cid";
if ($desc) {
$vars = $vars . ",sDescription";
$values = $values . ",'" . addslashes($desc) . "'";
}

thx for the great hack :)

Hidjra

SpeedStreet
03-27-2003, 05:16 PM
Today at 12:46 PM hidjra said this in Post #168 (https://vborg.vbsupport.ru/showthread.php?postid=374117#post374117)
in create_category.php and create_subcategory.php use this code chunck instead of the one in tha zip

// add category to database
$vars = "sName";
$values = "'" . addslashes($name) . "'";
if ($desc) {
$vars = $vars . ",sDescription";
$values = $values . ",'" . addslashes($desc) . "'";
}


// add subcategory to database
$vars = "sName,iCategoryID";
$values = "'" . addslashes($name) . "',$cid";
if ($desc) {
$vars = $vars . ",sDescription";
$values = $values . ",'" . addslashes($desc) . "'";
}

thx for the great hack :)

Hidjra


What exactly does this do?

hidjra
03-27-2003, 05:55 PM
Oh, im sorry.

Adding the "addslashes()" function to the insert query makes shure it doesn't give you an error when using single quote's (') in (sub)category title's and descriptions.

Hidjra

SpeedStreet
03-27-2003, 07:37 PM
oh yeah...thanks.

I had already done this :)

cinq
03-29-2003, 02:12 AM
Just wondering how the next version is coming along ? :)

Bergman
04-02-2003, 10:19 AM
Åke has much to do in school for the moment but he will finish the next version as soon as possible. It is as Release Candidate for the moment.

Bergman
04-05-2003, 02:44 PM
Now ver 2.0 is availible downloadable at http://www.ake.nu/gallery/

There are some problems with vbulletin 2.3.0 and ?ke tries to fix that as soon as possible. :)