PDA

View Full Version : Oak´s vGallery 1.0


Bergman
28 Jan 2003, 09:46
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
28 Jan 2003, 10:12
I will be having a look at installing that a bit later, i do need a gallery :p

Matthew

thefreestyler
28 Jan 2003, 10:13
WOW thank you for sharing with us click install

Floris
28 Jan 2003, 12:05
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
28 Jan 2003, 12:34
Xiphoid, yes only the User/Pass is used. Separate DB and directory on the webserver.

colicab-d
28 Jan 2003, 14:03
installed :D

Bergman
28 Jan 2003, 15:08
Colicab-d, can you post the url ? What do you think about it ?

Sebastian
28 Jan 2003, 16:51
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
28 Jan 2003, 17:03
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
28 Jan 2003, 17:04
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
28 Jan 2003, 18:40
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
28 Jan 2003, 20:48
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
28 Jan 2003, 21:06
id guess its a mis config in your settings i.e your pointing it to a non-existant dir :p

ranger2kxlt
28 Jan 2003, 22:26
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
28 Jan 2003, 22:56
There is definitely an issue here, I can replicate it as well.

alkatraz
29 Jan 2003, 04:20
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
29 Jan 2003, 08:11
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
29 Jan 2003, 09:15
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
29 Jan 2003, 10:14
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
29 Jan 2003, 11:51
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
29 Jan 2003, 13:21
yeah the whole image magik is bloody confusing :p

gopherhockey
29 Jan 2003, 13:27
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
29 Jan 2003, 13:49
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
29 Jan 2003, 14:04
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
29 Jan 2003, 14:27
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
29 Jan 2003, 16:06
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
29 Jan 2003, 17:09
Thanks for the help. Once I get back to the office, I will send it over :)

rrnolan
29 Jan 2003, 18:52
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
29 Jan 2003, 19:03
Just put the link to a thread that contains the attachment in the description of the photo.

SpeedStreet
29 Jan 2003, 19:15
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
29 Jan 2003, 20:00
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
29 Jan 2003, 20:47
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
29 Jan 2003, 20:48
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
29 Jan 2003, 20:55
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
29 Jan 2003, 20:56
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
29 Jan 2003, 21:05
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
29 Jan 2003, 21:13
Me too ;)

ranger2kxlt
29 Jan 2003, 21:19
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
29 Jan 2003, 22:32
Now we figured it out ... there were blank rows in there 3 files. Sorry for the problems but it should work now. :)

SpeedStreet
29 Jan 2003, 22:34
Here is a link to an English working demo:

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

Jadelit
30 Jan 2003, 08:21
A great feature would be if the photos were viewed like this also..

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

thedvs
30 Jan 2003, 09:29
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
30 Jan 2003, 09:58
thedvs, what did you do to get that error ? I think i need more details to help you out ...

colicab-d
30 Jan 2003, 10:10
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
30 Jan 2003, 13:45
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
30 Jan 2003, 14:23
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
31 Jan 2003, 01:13
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
31 Jan 2003, 03:52
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
31 Jan 2003, 10:10
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
31 Jan 2003, 16:23
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
31 Jan 2003, 19:47
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
31 Jan 2003, 19:54
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
31 Jan 2003, 19:58
The one on page 1 is the full download,

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

cinq
31 Jan 2003, 23:44
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
31 Jan 2003, 23:51
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 Feb 2003, 00:04
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 Feb 2003, 00:11
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 Feb 2003, 00:14
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 Feb 2003, 00:19
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 Feb 2003, 00:27
Many thanks , some of my paths were wrong.
Kinda works now i think , will try it out and feedback soon

Willard Reece
01 Feb 2003, 00:29
Let me know,,,,

cinq
01 Feb 2003, 00:52
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 Feb 2003, 00:55
You'll have to ask you host or maybeyou can find out from your cpanel.

Willard Reece
01 Feb 2003, 02:14
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
01 Feb 2003, 12:54
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
01 Feb 2003, 13:14
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
01 Feb 2003, 14:02
ask your host to install it

Willard Reece
01 Feb 2003, 14:13
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
01 Feb 2003, 14:17
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
01 Feb 2003, 14:34
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
01 Feb 2003, 15:41
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
01 Feb 2003, 15:55
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
01 Feb 2003, 16:02
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
01 Feb 2003, 16:08
also did you use the 3files fix in thread 3? I don't know if it will make a difference tho

SharkMatt
01 Feb 2003, 16:28
all my paths are correct
yes, i've use the 3 files fix

Willard Reece
01 Feb 2003, 16:32
whats the url to the gallery

SharkMatt
01 Feb 2003, 16:34
http://www.sbhacsupport.ca/gallery

Willard Reece
01 Feb 2003, 16:37
Do you have all dirs chmoded and the files under them

SharkMatt
01 Feb 2003, 16:40
yes

Willard Reece
01 Feb 2003, 16:40
open your board for a sec and lets se if that helps

SharkMatt
01 Feb 2003, 16:43
it's open now and it doesnt seem to be doing any good

Willard Reece
01 Feb 2003, 16:43
in your config on line 46,, is mostlikey blank... Take out the blank line

Willard Reece
01 Feb 2003, 16:45
and ck getuser.php to see if those lines 4 and 5 are blank

SharkMatt
01 Feb 2003, 16:52
i check, remove all the blanks and still not working

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

thru your forums database name?

SharkMatt
01 Feb 2003, 16:57
i upload the sql file through phpmyadmin to my vb database

Willard Reece
01 Feb 2003, 16:58
you did edit the sql.php and put in your database name and password?

Just making sure so stay with with me.

SharkMatt
01 Feb 2003, 17:02
yes

Willard Reece
01 Feb 2003, 17:03
whats your vb database name?

SharkMatt
01 Feb 2003, 17:05
sbhacsupport

Willard Reece
01 Feb 2003, 17:08
Did you ck this?

register_globals" in php.ini turned to "On

SharkMatt
01 Feb 2003, 17:09
register_globals is on

Willard Reece
01 Feb 2003, 17:11
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
01 Feb 2003, 17:13
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
01 Feb 2003, 17:17
try this config

SharkMatt
01 Feb 2003, 17:21
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
01 Feb 2003, 17:22
wait a minute.....my fault in this new config

SharkMatt
01 Feb 2003, 17:25
nope, still have the 2 errors from above

Willard Reece
01 Feb 2003, 17:28
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
01 Feb 2003, 17:33
no good

Willard Reece
01 Feb 2003, 17:33
I still show the .ca when I refresh

SharkMatt
01 Feb 2003, 17:34
i know
i removed them all tho

Willard Reece
01 Feb 2003, 17:38
try this one

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

SharkMatt
01 Feb 2003, 17:41
nope, no change

SharkMatt
01 Feb 2003, 17:44
i did

Willard Reece
01 Feb 2003, 17:46
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
01 Feb 2003, 17:49
ok thanks for your help

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

Thanks again

Willard Reece
01 Feb 2003, 17:52
np
Anytime.

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

On the safe mode.

Bergman
02 Feb 2003, 20:42
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 Feb 2003, 20:48
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 Feb 2003, 20:54
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 Feb 2003, 21:01
My adress is anbem@wmdata.com

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

SpeedStreet
03 Feb 2003, 01:45
Safe mode is off on mine and it is running great...

Willard Reece
03 Feb 2003, 22:15
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
03 Feb 2003, 23:48
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
05 Feb 2003, 00:44
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
05 Feb 2003, 13:57
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
05 Feb 2003, 16:53
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
05 Feb 2003, 18:28
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
05 Feb 2003, 22:11
Here is my code:

speedway
09 Feb 2003, 11:37
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
09 Feb 2003, 20:21
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
10 Feb 2003, 18:03
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
10 Feb 2003, 18:32
Check out my subcat hack to this program. it allows users to create their own subcategories.

Bergman
10 Feb 2003, 19:45
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
11 Feb 2003, 17:00
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
12 Feb 2003, 08:40
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
12 Feb 2003, 15:26
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
13 Feb 2003, 05:13
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
13 Feb 2003, 22:16
Here's Yet another hack from me:

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

SpeedStreet
13 Feb 2003, 22:19
Here's Another to allow special characters in comments posted by users:

Willard Reece
13 Feb 2003, 22:29
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
13 Feb 2003, 22:31
how do I password protect the gallery so only certain groups can use it?

oh gallery linkage

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

SpeedStreet
14 Feb 2003, 13:39
whoops :) Damned cut and paste.


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

msimplay
22 Feb 2003, 22:55
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
25 Feb 2003, 03:01
is there anyway to show the newest pic (thumb) on forum home page?

Id like to intergrate it with the welcome panel.

SpeedStreet
25 Feb 2003, 04:50
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
25 Feb 2003, 04:51
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
25 Feb 2003, 04:51
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
25 Feb 2003, 06:38
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
25 Feb 2003, 13:22
The only way I have been able to do it is through the database manually.

Aaow AnD wHiTe
03 Mar 2003, 03:50
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
04 Mar 2003, 21:52
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
05 Mar 2003, 13:44
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
05 Mar 2003, 13:46
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
07 Mar 2003, 19:31
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
08 Mar 2003, 00:27
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,sFile,sTitle,dateAdded) VALUES (5, 0, 20, ':: LiNuX ::', '20-jackson.jpg', 'My Picture...don't laugh please.',NOW());

SpeedStreet
08 Mar 2003, 04:21
It happens when you put an ' into one of the fields.

I have a fix I will post Monday.

SideFX
08 Mar 2003, 04:39
http://sytedesigns.com/vGallery/index.php


here is my working one

Bergman
10 Mar 2003, 12:29
SpeedStreet, can you post the hack for sending PM upon comment ?

SpeedStreet
10 Mar 2003, 14:03
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
10 Mar 2003, 14:18
SpeedStreet, great ! Lookin on it ...

Remnant
10 Mar 2003, 15:59
Would it be possible to add the database to the VB search engine?

Bergman
11 Mar 2003, 08:02
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
11 Mar 2003, 14:27
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
13 Mar 2003, 04:43
Bergman, please, could you take a look at our previous post (page 10) :) Thanx in advance :D

Bergman
13 Mar 2003, 08:49
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
18 Mar 2003, 02:57
just a quick question- does this mod allow sub directories?

Bergman
18 Mar 2003, 07:50
Zim, Yes it does.

GoTTi
26 Mar 2003, 07:26
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
26 Mar 2003, 10:19
Just ask your isp what the local path to Image Magick´s "convert" is and put it in the galleryconfig.php

:Judge:
26 Mar 2003, 11:53
How much longer for the new version :D

I am looking forward to this myself.

Bergman
26 Mar 2003, 14:13
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
26 Mar 2003, 14:29
Uhh....I don't understand the need for supporting MS SQL, since vBulletin only comes in MySQL flavors ;)

Bergman
26 Mar 2003, 20:29
SpeedStreet, Åke plans to get it working with other forums to ... even stand alone without forum. ;)

hidjra
27 Mar 2003, 17:46
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
27 Mar 2003, 18:16
Today at 12:46 PM hidjra said this in Post #168 (http://www.vbulletin.org/forum/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
27 Mar 2003, 18:55
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
27 Mar 2003, 20:37
oh yeah...thanks.

I had already done this :)

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

Bergman
02 Apr 2003, 11:19
Å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
05 Apr 2003, 15:44
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. :)