Ranma2k |
04-11-2006 05:54 AM |
Quote:
Originally Posted by Jake25
Nice, works great.
Cant wait for the next version though (ability to upload multiple images at once, and for an Admin to view all private images)
I do have a question though..
Would it be possible to make it so the default of the images is set at "public view", and not "private"? So, the user would have to make it private, instead of public. Thanks.
/clicks install
|
yes in vbimghost.php
go to line 404 & 405
find the code
Code:
$sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` )
VALUES ('', '".$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')";
replace it to
Code:
$sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` )
VALUES ('', '".$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '0')";
this will make all uploaded images public by default
if you want to remove the link that set it private remove the link from the templates
|