PDA

View Full Version : Major Additions - VB image Hosting


Pages : [1] 2 3 4 5 6

Ranma2k
09 Aug 2006, 11:50
VB Image Hosting Version 1.0.1

This is the port for my hack to vb 3.6.x
check it for vb 3.5.x here (http://www.vbulletin.org/forum/showthread.php?t=106127)

A New installer replaced the old one so you should not face any problems with database

NOTE :
People who were using vbimghost in vb 3.5.x and moved to vb 3.6.0 MAKE sure that you have vbimghost 1.4.1 Since this port will only support upgrading from that ver only
People who do a fresh install use this ver.

Requirements:

requires GD 2.0.1 or later (2.0.28 or later is recommended).
PHP ver 4.3.x or later (newer ver is better).
Introduction:What does it do ?
VB Image Hosting is a similar feature to imageshak and photopoket and online free image hosting, but this is for your members. it will allow them to upload and host their images on your servers, you can still manage the permissions and set the number of files for each group.
Main Features:
Image hosting
Restrict # of file upload for each group
Allow/disallow group from upload
Restrict file uploaded based on file extension, dimensions and size
Users can manage their uploaded files
Users can set the view permission for each uploaded images
Admin can mange all members images
Admin can set the number of images/users per page.
Admin can mange images uploaded by the members
Admin can set the default upload permission
Thumbnail system admin can turn it on/off.
Allow multiple uploads.
Admin can set upload slots for each group
Admin can recreate thumbnails from admin cp
Fully using the phrase system.Time required to install
1- 2 min max.
Update instruction :
Just replace the old files with the new ones and import the product file don't forget to select overwrite.

History:1.0.0:

inital release contains everytverg in 1.4.1 ver.1.0.1:

Fix security bug with delete image.
fix some minor mysql problems.Download Tracking:
1.0.0 : 3886


Known Issues:no known issues.

Screen shscreenshot.zip
screenshot.zip.


NOTE:
before you post any error here :
Set that path to your forums correctly in the vbimghost options.
if you getting the error ""supplied argument is not a valid"
that's because you didn't set the path correctly

And for all the people asking when is the next release it will be in 2007 not this month .. due to some problems in real life ..



URGENT ISSUES:
you may contact me on msn id : waiel[at]waieleid.com
replace [at] with @ ok? -_-

ForYou
09 Aug 2006, 12:08
Gooooooooooooooood Job Ranma ,

This is Mobde3 my friend :)

Regards

Ranma2k
09 Aug 2006, 12:12
Gooooooooooooooood Job Ranma ,

This is Mobde3 my friend :)

Regards
Hi there my friend ..
haven't seen you around lately :) (better to switch to PM insted of writing here)

eether
09 Aug 2006, 12:24
this seems to work great. i have a question though. when trying to "View all user images" from the Nav bar, no images are showing up. Instead I get the message

"No user found"

I have uploaded a few images through my account, my account is admin and the admin usergroup "Can administrate images" button is checked

Ranma2k
09 Aug 2006, 12:27
this seems to work great. i have a question though. when trying to "View all user images" from the Nav bar, no images are showing up. Instead I get the message

"No user found"

I have uploaded a few images through my account, my account is admin and the admin usergroup "Can administrate images" button is checked
In there you can only see images set to public view only

if you want to see all the users images you have to go to the admincp
it will show you public/private images

Stromba
09 Aug 2006, 12:33
:knockedout:

Wooow nice, but i get this data "error"

Database error in vBulletin 3.6.0:

Invalid SQL:
Select * FROM vbimghost Where userid=1;

MySQL Error : Table 'XXXXXX_com.vbimghost' doesn't exist
Error Number : 1146
Date : Wednesday, August 9th 2006 @ 02:16:56 PM
Script : http://www.XXXXXXXXXX.com/forumsat/vbimghost.php?do=popup&ed=vB_Editor_001
Referrer :
IP Address : XXXXXXXXXXXX
Username : -------
Classname : vB_Database


Can you olease help me with this error,

Thanks,

eether
09 Aug 2006, 12:34
In there you can only see images set to public view only

if you want to see all the users images you have to go to the admincp
it will show you public/private images
perfect :D

Ranma2k
09 Aug 2006, 12:34
:knockedout:

Wooow nice, but i get this data "error"




Can you olease help me with this error,

Thanks,
where do you get this error ?

Ranma2k
09 Aug 2006, 12:37
perfect :D
if you use it please click install so you can get update notifications

Stromba
09 Aug 2006, 12:41
Here you see when i get this error,

ForYou
09 Aug 2006, 12:42
Hello Ranma ,

Why this error when i enter any theard ,

Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT count(*) mark
FROM vbimghost
WHERE userid='54267' and imgprivate='0';

MySQL Error : Table 'darha_vb352.vbimghost' doesn't exist
Error Number : 1146
Date : Wednesday, August 9th 2006 @ 12:39:54 PM
Script : http://www.ddasha.net/monta/showthread.php?t=95924
Referrer : http://www.ddasha.net/monta/
IP Address : 213.97
Username : ال
Classname : vb_database

Stromba
09 Aug 2006, 12:44
Same error,

Snatch
09 Aug 2006, 12:45
Very good. But I miss the Upload to FTP. I have a Board-Server and a Upload-Server.....

Can You add this?

GreeTz
Snatch

Ranma2k
09 Aug 2006, 12:48
Hello Ranma ,

Why this error when i enter any theard ,
Where you people upgrading from OLD ver the one for 3.5.0 ?!

this ver is only for fresh install
if your upgrading you have have the 1.4.1 installed as mentioned in the installation doc

Ranma2k
09 Aug 2006, 12:49
Very good. But I miss the Upload to FTP. I have a Board-Server and a Upload-Server.....

Can You add this?

GreeTz
Snatch
snatch it is in my to do list

ForYou
09 Aug 2006, 13:00
Hello Ranma ,

I was uninstall the old product then install new one ,

Please let me know what i can do now , and from where i can find the 1.4.1

Ranma2k
09 Aug 2006, 13:06
Hello Ranma ,

I was uninstall the old product then install new one ,

Please let me know what i can do now , and from where i can find the 1.4.1
well you deleted the table and old stuff was removed
you can fix it if you reimport the product xml again in the mange product setting
but the old images is lost.

if you have a backup
restore the table again and install this http://www.vbulletin.org/forum/showthread.phpt=106127

it will install 1.4.1
then uninstall it then install the one here
the port is only supported from that ver only as it says in the install.htm file

ForYou
09 Aug 2006, 13:08
Ranma ,

Now my forum use 3.0.6 , is 1.4.1 for it ,

and what about this

Ranma2k
09 Aug 2006, 13:12
Ranma ,

Now my forum use 3.0.6 , is 1.4.1 for it ,

and what about this
ForYou,

in the install.htm
Upgrade (from VB 3.5.x) :
In order to upgrade to this version Make sure that the version that the old forum using is at least 1.4.1 ( older ver won't work )



this file is for new installation and upgrading from ver 1.4.1
you had ver 1.0.2 which is very old


if you don't want the old images
Just reinstall the hack again and it will work with you.

ForYou
09 Aug 2006, 13:15
hello Ranma ,

I was install the 1.4.1 , but there is error :(

Database error in vBulletin 3.6.0:

Invalid SQL:
Select * FROM vbimghost Where userid=3;

MySQL Error : Table 'darha_vb352.vbimghost' doesn't exist
Error Number : 1146
Date : Wednesday, August 9th 2006 @ 01:12:23 PM
Script : http://www.darda.net/montada/vbimghost.php?do=myimages
Referrer :
IP Address : 213.6..97
Username : الدع
Classname : vb_database

help please :(

Ranma2k
09 Aug 2006, 13:17
hello Ranma ,

I was install the 1.4.1 , but there is error :(



help please :(
PM me access to your forum and i'll install it for you

ForYou
09 Aug 2006, 13:19
Ranma ,

sorry for that but the error still ,

Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT count(*) mark
FROM vbimghost
WHERE userid='52688' and imgprivate='0';

MySQL Error : Table 'darha_vb352.vbimghost' doesn't exist
Error Number : 1146
Date : Wednesday, August 9th 2006 @ 01:16:40 PM
Script : http://www.darsha.net/montada/showthread.php?t=92115
Referrer : http://www.darsha.net/montada/
IP Address : 213.6.138.97
Username : الدع
Classname : vb_database

Ranma2k
09 Aug 2006, 13:22
Ranma ,

sorry for that but the error still ,
Foryou

Uninstall vbimage host completely

Then install this ver.

ForYou
09 Aug 2006, 13:28
Hello Ranma ,

Please let me the steps how can i install the vbimage completely ,

I just uninstall the product ,

is there any steps ,

Regards

WeArab
09 Aug 2006, 13:36
Great mod!

Ranma2k
09 Aug 2006, 13:50
Hello Ranma ,

Please let me the steps how can i install the vbimage completely ,

I just uninstall the product ,

is there any steps ,

Regards
foryou,
i'll install it for you when i get back on my pc just send me the ifo
(i'm curently using my phone to reply)

ForYou
09 Aug 2006, 14:06
Hello Ranma ,

Evry thing is OK :) ,

But when i upload the image there is set private not public !!!

and there is no text o image i need to write some text on image when users uploade using the vbimage :) !!

Regards

tandy
09 Aug 2006, 15:13
I just installed the 3.60 version of vb and the new version of image hosting and does matter the setting i put in vb hosting i still can't see the filmstrip mode.

The Chief
09 Aug 2006, 15:44
Will you still be updating the hack for 3.5? As I won't be moving to 3.6 for a long time...

Ranma2k
09 Aug 2006, 16:04
I just installed the 3.60 version of vb and the new version of image hosting and does matter the setting i put in vb hosting i still can't see the filmstrip mode.
the film strip will show inside the display image and if you are viewing someone images it will show only the public ones

Ranma2k
09 Aug 2006, 16:19
Will you still be updating the hack for 3.5? As I won't be moving to 3.6 for a long time...
yes i will continue to update it

nix
09 Aug 2006, 16:41
Upgraded from 3.5 and its working great. Thanks!

Ranma2k
09 Aug 2006, 17:14
Upgraded from 3.5 and its working great. Thanks!
glad it worked with you :)

The Chief
09 Aug 2006, 17:27
yes i will continue to update it
Glad to hear that, continue the hard efforts :)

Kaleem
09 Aug 2006, 17:57
aaa Woking fine by now let me check more options will get back to u nice work :)

while i rebuild thmbnails it does that with some but i got this error

Warning: getimagesize(/home/***/friendskorner.com/forum/imagehanger/87448c9dc6b78ff.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

zellvnn
09 Aug 2006, 18:14
Same as someone.......Database error is one of the biggest problem of this hack. I tried again and again. I did as u told, but it didnt work . My dababase crashed like crazy...................Error and error.......

aGa
09 Aug 2006, 18:19
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@capraz.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Ranma2k
09 Aug 2006, 18:22
Same as someone.......Database error is one of the biggest problem of this hack. I tried again and again. I did as u told, but it didnt work . My dababase crashed like crazy...................Error and error.......
Fresh install or upgrading ?!

Ranma2k
09 Aug 2006, 18:27
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@capraz.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Anyone who want's help Please PM me access to your board so i can help

Ranma2k
09 Aug 2006, 18:28
aaa Woking fine by now let me check more options will get back to u nice work :)

while i rebuild thmbnails it does that with some but i got this error

Warning: getimagesize(/home/***/friendskorner.com/forum/imagehanger/87448c9dc6b78ff.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279
did you set the path in the image hosting Options ?!

Ranma2k
09 Aug 2006, 18:30
TO EVERYONE
WHO EVER FOR SOME REASON GET'S DATABASE ERROR

RUN THE FOLLOWING QUARY IN YOUR DATABASE

CREATE TABLE " . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_increment,userid int(11) NOT NULL default '0',imgfile varchar(250) NOT NULL default '',imgname varchar(250) NOT NULL default '',thumbname VARCHAR( 250 ) NOT NULL, imgfilesize int(11) NOT NULL default '0', imgwidth int(11) NOT NULL default '0', imgheight int(11) NOT NULL default '0', imgdate int(11) NOT NULL default '0', imgprivate int(1) unsigned NOT NULL default '0', PRIMARY KEY (imgid) )


replace " . TABLE_PREFIX . " with your table prefix that you set in the config.php


ALL YOUR PROBLEMS ARE BECAUSE OF THE TABLE DOESN'T EXISTS AND YOU DIDN'T READ THE INSTALLATION FILE

PEPOLE WITH FRESH INSTALL WON'T FACE ANY PROBLEM

Kaleem
09 Aug 2006, 18:30
did you set the path in the image hosting Options ?!
well i did this is why some of them were created and some give this error

Ranma2k
09 Aug 2006, 18:35
well i did this is why some of them were created and some give this error
if you check the file
it's not there

http://www.friendskorner.com/forum/imagehanger/87448c9dc6b78ff.jpg

zellvnn
09 Aug 2006, 18:47
same database problem... i run ur query....its not working.
MySQL said: Documentation
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '" . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_incr

Ranma2k
09 Aug 2006, 18:52
same database problem... i run ur query....its not working.
MySQL said: Documentation
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '" . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_incr
Man

i said replace the " . TABLE_PREFIX . " with your table prefix
if you don't have a table prefix
remove that from the sql and run it

zellvnn
09 Aug 2006, 18:59
https://www.vbulletin.org/forum/
Srry im a newbie.... 1st i have to replace my Table prefix right
I put my table prefix name is Vb
But i can't find it.......im so stupid...hichic

Can i chat with u in MSN or...Yahoo......??i want to ask directly.......hixhix

Ranma2k
09 Aug 2006, 19:04
Srry im a newbie.... 1st i have to replace my Table prefix right
I put my table prefix name is Vb
But i can't find it.......im so stupid...hichic

Can i chat with u in MSN or...Yahoo......??i want to ask directly.......hixhix
add me waiel at waieleid.com

zellvnn
09 Aug 2006, 19:08
I think ... msn is faster ... and i want to talk about anime too... Im a super big fan of anime

Kaleem
09 Aug 2006, 19:08
if you check the file
it's not there

http://www.friendskorner.com/forum/imagehanger/87448c9dc6b78ff.jpg

yea itsnot there but rebilding thumbnails y is it picking this one for it ?

Ranma2k
09 Aug 2006, 19:24
yea itsnot there but rebilding thumbnails y is it picking this one for it ?
because it's in the database

Ranma2k
09 Aug 2006, 19:26
For All People having problem with the database

A new product XML is in the ZIP file
Use that to install the product
uninstall what ever you used and use the one in the zip file



_______________________________________________________________
hopefully after that line i won't see any database errors

AGAIN BEFORE YOU DO ANYTHING BACKUP YOUR DATABASE

tandy
09 Aug 2006, 20:05
Sorry, it was my mistake.

Ranma2k
09 Aug 2006, 20:15
Sorry, it was my mistake.
? eh ?
didnt' get what you mean ?

zellvnn
09 Aug 2006, 21:10
Hey guys it works great on my website.... Plz ask him if u have ur problem with database

steadicamop
09 Aug 2006, 22:46
Not sure why but the old error message shows up:

$bbuserinfo[username], you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
3. If you are trying to post in the For Sale forum, you need to subscribe to sell - please go here.

Log Out Home

Any ideas how to get around this and use the new version?

Ranma2k
09 Aug 2006, 22:54
Not sure why but the old error message shows up:



Any ideas how to get around this and use the new version?
edit the usergroup configuration ..

since you did a fresh install .

steadicamop
09 Aug 2006, 22:57
I've edited the usergroup to use this, but I'm not allowing regular members to use this, so I only want certain usergroups to use it, but they will see the old error message, shouldn't there be a new version of that message? I remember something about it but can't quite put my finger on it.

Cheers

Jason

Ranma2k
09 Aug 2006, 23:01
I've edited the usergroup to use this, but I'm not allowing regular members to use this, so I only want certain usergroups to use it, but they will see the old error message, shouldn't there be a new version of that message? I remember something about it but can't quite put my finger on it.

Cheers

Jason
i'm using the defualt no permission error.
do you want it to display something else ?! like a custom msg ?!

steadicamop
10 Aug 2006, 07:03
It's not that, when I upgraded a while ago I kept getting the old error message (the one showing now), and I spoke to VBulltin about it and they told me how to change it to the new one - but I can't remember how to do it, I will check later on and let you know what I find out.....

Cheers,


Jason

Lost_Prophet
10 Aug 2006, 11:12
This has installed OK so far, haven't had anybody try it yet, but it's excellent if it works! :D

Ranma2k
10 Aug 2006, 12:21
It's not that, when I upgraded a while ago I kept getting the old error message (the one showing now), and I spoke to VBulltin about it and they told me how to change it to the new one - but I can't remember how to do it, I will check later on and let you know what I find out.....

Cheers,


Jason
ok can you tell me what's the error showing to you so i can help you ?

Ranma2k
10 Aug 2006, 12:22
This has installed OK so far, haven't had anybody try it yet, but it's excellent if it works! :D
then try it yourself
do some testing ..

eether
10 Aug 2006, 12:55
this has been working great so far, several of my users have already been using it, i didnt even have to explain it. the fact that they can manage their own images is nice tho, before this I just had a simple upload script that would dump all images into a single directory and output just a URL. no real way to manage them.

Gsmmind
10 Aug 2006, 16:28
bro i done all but .. still problem.. when i upload image it not show good.. i mean not show image... pls help me.

Ranma2k
10 Aug 2006, 16:39
bro i done all but .. still problem.. when i upload image it not show good.. i mean not show image... pls help me.
gsmmind,
Well if it doesn't show that means you didn't set teh direcroty where the images going to be stored

chmod the directory to 777 and set it in the vbimghost options

Gsmmind
10 Aug 2006, 16:59
gsmmind,
Well if it doesn't show that means you didn't set teh direcroty where the images going to be stored

chmod the directory to 777 and set it in the vbimghost options
sir pls explane more how what's mean of chmod. or i added u in my msn pls come online ..... please.

Ranma2k
10 Aug 2006, 17:01
sir pls explane more how what's mean of chmod. or i added u in my msn pls come online ..... please.
i'm online waiting for you

Gsmmind
10 Aug 2006, 17:02
Warning: move_uploaded_file(777/tmp_144db665e57b95): failed to open stream: No such file or directory in /vbimghost.php on line 640

Warning: move_uploaded_file(): Unable to move '/tmp/phpoxYcGu' to '777/tmp_144db665e57b95' in /vbimghost.php on line 640

Warning: imagecreatefromjpeg(777/144db665e58745.jpg): failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 53

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 56

Warning: imagejpeg(): Unable to open '777/thum_144db665e58745.jpg' for writing in /includes/vbimghost_include.php on line 61

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 86

it show me this error

Ranma2k
10 Aug 2006, 17:12
it show me this error
i said chmod the directory not renaming it

Ranma2k
10 Aug 2006, 17:39
i said chmod the directory not renaming it
Problem solved

tpzone
10 Aug 2006, 17:40
clicked install. thank you nice work!!

i'm going to test it in a few when i get a chance i have to re-save my images under the limits i set for my members to try it out...

steadicamop
10 Aug 2006, 17:40
ok can you tell me what's the error showing to you so i can help you ?

This has the image attached to it - http://www.vbulletin.com/forum/showpost.php?p=1185425&postcount=1

As it stands, this is the global no permission error, and if I remember correctly, it isn't right as it still shows $bbuserinfo[username] and this is why it's come to my attention again, to test it I disallowed my usergroup to view the arcade and got the exact same message, so it's not just the Image Hosting that causes it, I've asked at vb.com but as of yet no answer....

Thanks for your help, this is a great addition :)

Jason

/edit

This is the no permission message I thought I should see : http://www.vbulletin.com/forum/showpost.php?p=1185728&postcount=6

Gsmmind
10 Aug 2006, 18:14
i said chmod the directory not renaming it
realy thanks sir.

steadicamop
10 Aug 2006, 19:58
I've just sussed out my problem, for whatever reason my nopermission_logged_in phrase had an english translation, when that was removed, it worked fine!!

I apologise for blocking up this thread with this matter, it was a VB issue!

Thanks for a great hack, will be supporting this well.

Jason

TCooper
11 Aug 2006, 11:45
Is suppose to add a watermark to the bmp files as well as jpg? I am curious and uploaded 2 jpg files and 1 bmp and the bmp does not have the text watermark i set in the admin area.

Ranma2k
11 Aug 2006, 11:50
Is suppose to add a watermark to the bmp files as well as jpg? I am curious and uploaded 2 jpg files and 1 bmp and the bmp does not have the text watermark i set in the admin area.
unfortinatly i couldn't find a way to make a watermark on bmp files

spazz191
11 Aug 2006, 22:54
How can I get the VB Image Host link in my nav bar to look like the rest of the links. I spents the past few hours trying different things and nothing seems to work. Is it not possible?

Ranma2k
12 Aug 2006, 06:40
How can I get the VB Image Host link in my nav bar to look like the rest of the links. I spents the past few hours trying different things and nothing seems to work. Is it not possible?
can you show me your forum and i'll help you out :)

spazz191
12 Aug 2006, 14:56
my site is at http://everydayoutdoorsman.com.

It messes with the height of the navbar too, you will see a line at the top and bottom on the side of my navbar. That only happens when I install this.

Ranma2k
12 Aug 2006, 16:06
my site is at http://everydayoutdoorsman.com.

It messes with the height of the navbar too, you will see a line at the top and bottom on the side of my navbar. That only happens when I install this.
change the class of that row to your class ...
you are using vbmenu_control_header calss
while the default is vbmenu_control

so your column should be

<td style="cursor: pointer;" id="vbimghost" class="vbmenu_control_header"><a href="#vbimghost"> ..etc continue the rest of the code


This is Style issue

Please specify here only problems with the script it self not styles

spazz191
12 Aug 2006, 23:09
Thank you

medw1974
13 Aug 2006, 16:27
I'm getting this database error on a fresh install

Database error in vBulletin 3.6.0:

Invalid SQL:
INSERT INTO vbvbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `thumbname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` )
VALUES ('', '1', '144df50dbc89af.jpg', '002AEFF7.JPG','thum_144df50dbc89af.jpg' , '34.734375', '800', '600', '1155485915', '0');

MySQL Error : Out of range value adjusted for column 'imgid' at row 1
Error Number : 1264
Date : Sunday, August 13th 2006 @ 05:18:37 PM
Script : http://127.0.0.1/fb2b/forums/vbimghost.php
Referrer : http://127.0.0.1/fb2b/forums/vbimghost.php?do=upload
IP Address : 127.0.0.1
Username : michael
Classname : vB_Database

Edit - I managed to fix this, mysql on my testing server was running in safe mode, just commented this out of my.ini and all was ok.

Ranma2k
13 Aug 2006, 18:27
I'm getting this database error on a fresh install

Database error in vBulletin 3.6.0:

Invalid SQL:
INSERT INTO vbvbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `thumbname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` )
VALUES ('', '1', '144df50dbc89af.jpg', '002AEFF7.JPG','thum_144df50dbc89af.jpg' , '34.734375', '800', '600', '1155485915', '0');

MySQL Error : Out of range value adjusted for column 'imgid' at row 1
Error Number : 1264
Date : Sunday, August 13th 2006 @ 05:18:37 PM
Script : http://127.0.0.1/fb2b/forums/vbimghost.php
Referrer : http://127.0.0.1/fb2b/forums/vbimghost.php?do=upload
IP Address : 127.0.0.1
Username : michael
Classname : vB_Database

Edit - I managed to fix this, mysql on my testing server was running in safe mode, just commented this out of my.ini and all was ok.
even if it's in safe mode why it's out of range !?

WeArab
15 Aug 2006, 08:38
Waiel Great job Bro!

One of the best add-ons here!

Installed!

KevNJ
16 Aug 2006, 04:46
*clicks install*

Fresh install, upgraded from 3.5.1 to 3.6 a few hours ago along with cmps 2.2.0 and a few other hacks. This installed and is working perfectly with out a single error. w00t!!


is there a future plan to add a "this picture has been viewed X amount of times" ?? and/ or a "whos viewed this image"

Ranma2k
16 Aug 2006, 10:19
*clicks install*

Fresh install, upgraded from 3.5.1 to 3.6 a few hours ago along with cmps 2.2.0 and a few other hacks. This installed and is working perfectly with out a single error. w00t!!


is there a future plan to add a "this picture has been viewed X amount of times" ?? and/ or a "whos viewed this image"
yes next release will include this in it

Sarthek
16 Aug 2006, 13:04
This hack is so great! realy! (clicked install), however I must write down some hopefully future option. It would be nice if hack would also have option:

- users can set fotos for view to specific user(s), usergroups... (now is only public and private)

c0rupted
17 Aug 2006, 09:26
TO EVERYONE

ALL YOUR PROBLEMS ARE BECAUSE OF THE TABLE DOESN'T EXISTS AND YOU DIDN'T READ THE INSTALLATION FILE

PEPOLE WITH FRESH INSTALL WON'T FACE ANY PROBLEM
fresh install on a fresh vb3.6 ... heh ...

it does this on .jpg
Warning: imagecreatefromjpeg(/public_html/forum/imagehosting/imagehosting/144e42de04b356.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177
Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196
Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201
Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209
Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210

This on .png ...
Warning: imagecreatefrompng(/public_html/forum/imagehosting/imagehosting/144e43b354b6e7.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 170
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196
Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201
Warning: imagepng(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 204

and this on rebuilding thumbnails ...
Warning: getimagesize(/public_html/forum/imagehosting/imagehosting/144e43a8640ba2.gif) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

And it seems not to apply the watermark :confused::dead:

Ranma2k
17 Aug 2006, 11:51
fresh install on a fresh vb3.6 ... heh ...

it does this on .jpg
Warning: imagecreatefromjpeg(/public_html/forum/imagehosting/imagehosting/144e42de04b356.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177
Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196
Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201
Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209
Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210

This on .png ...
Warning: imagecreatefrompng(/public_html/forum/imagehosting/imagehosting/144e43b354b6e7.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 170
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189
Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195
Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196
Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201
Warning: imagepng(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 204

and this on rebuilding thumbnails ...
Warning: getimagesize(/public_html/forum/imagehosting/imagehosting/144e43a8640ba2.gif) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

And it seems not to apply the watermark :confused::dead:
Did you setup the path correctly ?!
it doesn't look like you did
it should be something like this

/home/yoursiteusername/public_html/forums

all the errors are becase the path is not set correctly in the options

tEChniiQue
17 Aug 2006, 16:22
Is there a way I can set this up so that a random image from what my members have uploaded appears on my home page, vbAdvanced. Kinda like the thumbnails from Photoplog but with these (which will be used for signatures, avatars, and userbars).

Thanks in adavance!

c0rupted
18 Aug 2006, 03:21
Did you setup the path correctly ?!
it doesn't look like you did
it should be something like this

/home/yoursiteusername/public_html/forums

all the errors are becase the path is not set correctly in the options

That is the correct path for my server. ;)

Ranma2k
19 Aug 2006, 06:32
That is the correct path for my server. ;)

upload the attached file into your forum and run it
it will tell you the path to your forums

Ranma2k
19 Aug 2006, 06:38
Is there a way I can set this up so that a random image from what my members have uploaded appears on my home page, vbAdvanced. Kinda like the thumbnails from Photoplog but with these (which will be used for signatures, avatars, and userbars).

Thanks in adavance!
yes
check this post
http://www.vbulletin.org/forum/showpost.php?p=1050361&postcount=667
if you want to set it up as a module
copy the code of the blugin into a php file and put it into the module folder
and set it up in the vbadvanced

vibe
19 Aug 2006, 08:50
I get this error, how do I fix it? Other then that everything works fine. Great mod.

Parse error: syntax error, unexpected T_STRING in xxx\forum\vbimghost.php(131) : eval()'d code on line 1

Ranma2k
19 Aug 2006, 17:18
I get this error, how do I fix it? Other then that everything works fine. Great mod.
You removed the copyright of the script ... !
that's why you getting the error ..

why your doing this ?!

vibe
19 Aug 2006, 21:57
I didnot remove it, I translated it
On my forum I didn't call VBimghost, I called it User album, I change it to that and translate it into my language. If that is now allow I'll change it back.

djcaseanova
20 Aug 2006, 02:07
Will this allow users to hot link photos using [img] tags in their posts??? Just curious.. didn't read all the replies/questions in this thread yet.

payamix1
22 Aug 2006, 11:53
Bug : There is no way to Remove an image from database when it is not exist (physicaly removed from images folder.)

upsetter
22 Aug 2006, 15:21
i uploaded and did every thing as it it says in the install file, but it will still not work, here is a link to what I uploaded...

http://www.boostconcept.com/forum/vbimghost.php?do=myimages&pp=9&page=1

and its blank and while it was uploading it gave me an error...

this is the error:


Warning: move_uploaded_file(imagehosting/tmp_144eb210e836b0) [function.move-uploaded-file]: failed to open stream: Permission denied in /vbimghost.php on line 640

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpQtnLBP' to 'imagehosting/tmp_144eb210e836b0' in /vbimghost.php on line 640

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/http://boostconcept.com/forum/images/watermark.png) is not within the allowed path(s): (/home/alex:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vbimghost_include.php on line 221

Warning: getimagesize(/home/user/public_html/forums/imagehosting/http://boostconcept.com/forum/images/watermark.png) [function.getimagesize]: failed to open stream: Operation not permitted in /includes/vbimghost_include.php on line 221

Warning: imagecreatefromjpeg(imagehosting/144eb210e84653.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 53

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 56

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'imagehosting/thum_144eb210e84653.jpg' for writing in /includes/vbimghost_include.php on line 61

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 86


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

the only thing I dont know how to do is change the permission for the upload directory to 777, how would I do this?... :(

c0rupted
22 Aug 2006, 16:34
the only thing I dont know how to do is change the permission for the upload directory to 777, how would I do this?... :(

You do this with an FTP client or in a control panel or if you telnet ssh in, you can do this. (but the easiest way is with an FTP client like SmartFTP {Free Software} and you just right click on the folder and select "Change CHMOD")

upsetter
22 Aug 2006, 22:17
You do this with an FTP client or in a control panel or if you telnet ssh in, you can do this. (but the easiest way is with an FTP client like SmartFTP {Free Software} and you just right click on the folder and select "Change CHMOD")

Okay I did that it's 777 now, so the images upload fine and they show up now, but I am still getting an error:


Warning: getimagesize(/home/alex/public_html/forum/imagehosting/http://boostconcept.com/forum/images/watermark.png) [function.getimagesize]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 221


what could this be now?

ForYou
23 Aug 2006, 12:38
Hello Ranma ,

What about Last 5 images uploaded that appear in member profile , I don't want 5 images and i need just 2 image show in members profile , from where can i edit this ,

Regards

Ranma2k
23 Aug 2006, 16:13
Okay I did that it's 777 now, so the images upload fine and they show up now, but I am still getting an error:


Warning: getimagesize(/home/alex/public_html/forum/imagehosting/http://boostconcept.com/forum/images/watermark.png) [function.getimagesize]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 221


what could this be now?
you set the path incorrectly

/home/alex/public_html/forum/imagehosting/http://boostconcept.com/forum/images/watermark.png) <-- that is wrong

for watermark just put hte name of the watermark file in the filed

and in the path set the just the path NOT the url

Ranma2k
23 Aug 2006, 16:15
Hello Ranma ,

What about Last 5 images uploaded that appear in member profile , I don't want 5 images and i need just 2 image show in members profile , from where can i edit this ,

Regards
You have to modify the plugin
and set the limit to 2 in the SQL there

y2krazy
24 Aug 2006, 14:29
Error found when uploading an image. Looks like it is referring to the watermarking feature. The image is uploaded fine, despite the error, so maybe it's just not able to apply the watermark?

Warning: imagecreatefromjpeg(/home/ijgrpcym/public_html/goclubbing/imagehosting/244edb60044eb5.jpg): failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor(): Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210




Redirecting...


image uploaded

Click here if your browser does not automatically redirect you.

Lines 175-177:

$img2 = imagecreatefromjpeg($img);
$tempimage = imagecreatetruecolor(imagesx($img2), imagesy($img2));
imagecopy($tempimage, $img2, 0, 0, 0, 0, imagesx($img2), imagesy($img2));

Line 189:

$text_color = imagecolorallocate($img2, $red, $green, $blue);

Line 195-196:

$pos_x=(int)(imagesx($img2) / 2) - ($text_width / 2);
$pos_y= (int)(imagesy($img2) / 2) - ($text_height / 2);
Line 201:

imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);

Line 209-210:

imagejpeg($img2,$img,100);
imagedestroy($tempimage);

Ranma2k
24 Aug 2006, 14:37
Error found when uploading an image. Looks like it is referring to the watermarking feature. The image is uploaded fine, despite the error, so maybe it's just not able to apply the watermark?



Lines 175-177:

$img2 = imagecreatefromjpeg($img);
$tempimage = imagecreatetruecolor(imagesx($img2), imagesy($img2));
imagecopy($tempimage, $img2, 0, 0, 0, 0, imagesx($img2), imagesy($img2));

Line 189:

$text_color = imagecolorallocate($img2, $red, $green, $blue);

Line 195-196:

$pos_x=(int)(imagesx($img2) / 2) - ($text_width / 2);
$pos_y= (int)(imagesy($img2) / 2) - ($text_height / 2);
Line 201:

imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);

Line 209-210:

imagejpeg($img2,$img,100);
imagedestroy($tempimage);
that's because your PATH are wrong ...

MAKE SSURE YOU SET THE PATH CORRECTLY !!

y2krazy
24 Aug 2006, 15:23
EDIT: Nevermind. I have one of the letters backwards. Thanks for the help. ;)

Also, I'm making a tons of changes to make it more "pleasing" to the eye, so if you don't mind, I'll be posting some changes that I would like to see in the next release (template and phrase fixes).

One more thing, is there a method to deleting the images from the "imagehosting" directory when it is deleted from the database (like when you click Delete Image from the forums)?

Ranma2k
24 Aug 2006, 15:58
EDIT: Nevermind. I have one of the letters backwards. Thanks for the help. ;)

Also, I'm making a tons of changes to make it more "pleasing" to the eye, so if you don't mind, I'll be posting some changes that I would like to see in the next release (template and phrase fixes).

One more thing, is there a method to deleting the images from the "imagehosting" directory when it is deleted from the database (like when you click Delete Image from the forums)?
when you delete it
it will delete the file from the folder and the database
but if you removed it from the database you'll have to delete it manually
as for the modification i don't mind i'm already working on some of the request i received

y2krazy
24 Aug 2006, 16:14
Alright, I got the templates and phrases all worked out. I have attached my fixes and modifications to make them look as close to the default look vB gives as possible. I would really love to see these changes in the next update as they make it look more professional and more like it was integrated into the existing vB styles.

Only problem that remains is the $pages command in the templates.

Template: vbimghost_main

Find:

$pages

Question:

Is there a way to make this not show unless pages actually exist? When viewing the VB Image Host pages, it shows this as a break and gives it a weird look. View the attached screenshot (vbimghost_main_pages.jpg).

y2krazy
24 Aug 2006, 16:30
Here are screenshots of the changes to the phrases and templates. Please let me know if you will make these changes for the next version as I think they look like they fit more with the rest of vBulletin. :)

DigitalDesktops
25 Aug 2006, 02:34
installed, thanks

DigitalDesktops
25 Aug 2006, 02:58
is it possible to have an option for indivual user groups to be denied access to the hosting.

for example if a person visits the site and is not logged in they have to register/log in before they can see images?

y2krazy
25 Aug 2006, 03:05
Usergroups > Usergroup Manager > X Usergroup > Scroll to Bottom > Help VB Image Hosting > Can upload images ? > Select No

:)

DigitalDesktops
25 Aug 2006, 03:08
no thats not what I mean.

I am meaning so that if you go to my site http://skindev.jmfemedia.com and click on the memberslist it blocks you saying you dont have permission, I am looking for the same kind of thing for the vbimghost.php page.

ForYou
25 Aug 2006, 07:35
Hello Ranma ,

Database error in vBulletin 3.6.0:

Invalid SQL:

SELECT count(*) mark
FROM vbimghost
WHERE userid='21779' and imgprivate='0';

MySQL Error : Lost connection to MySQL server during query Error Number : 2013
Date : Friday, August 25th 2006 @ 07:28:53 AM
Script : http://www.darda.net/mada/showthread.php?t=49026
Referrer :
IP Address : 209.10.75.97
Username : ضيف
Classname : vb_database



I recive this error alot , I don't know what is the resons of this error and why it come , how can i solve it :(

Regards

Ranma2k
25 Aug 2006, 11:45
Hello Ranma ,



I recive this error alot , I don't know what is the resons of this error and why it come , how can i solve it :(

Regards
that's not a problem with the script
it's a problem with MySQL connection
as the error says it says that it lost connection to your Database

contact your host and see what caused the connection to be lost

Ranma2k
25 Aug 2006, 11:45
no thats not what I mean.

I am meaning so that if you go to my site http://skindev.jmfemedia.com and click on the memberslist it blocks you saying you dont have permission, I am looking for the same kind of thing for the vbimghost.php page.
no curently it's not avilable
but i'll add it in the next ver

Ranma2k
25 Aug 2006, 11:46
Here are screenshots of the changes to the phrases and templates. Please let me know if you will make these changes for the next version as I think they look like they fit more with the rest of vBulletin. :)
thanks man :)
i'll add it to the next ver

y2krazy
25 Aug 2006, 12:38
It'll look much nicer and this way, with the next version I won't have to go back and edit them all again. ;)

Only one I couldn't really upgrade to a better look was this one:

http://www.vbulletin.org/forum/attachment.php?attachmentid=52597&d=1156437019

The Row version looks ok and fits the whole table, but the Column version seems to be aligned to the left always. If you could possibly improve this as well, I would (and so would a lot of others) very much appreciate it and it would make the whole system look like it was built right into vB. Keep up the great work, Ranma!! :)

Snake
25 Aug 2006, 13:42
Thank you! Works like a charm.

dirtycrow
25 Aug 2006, 15:17
TO EVERYONE
WHO EVER FOR SOME REASON GET'S DATABASE ERROR

RUN THE FOLLOWING QUARY IN YOUR DATABASE

CREATE TABLE " . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_increment,userid int(11) NOT NULL default '0',imgfile varchar(250) NOT NULL default '',imgname varchar(250) NOT NULL default '',thumbname VARCHAR( 250 ) NOT NULL, imgfilesize int(11) NOT NULL default '0', imgwidth int(11) NOT NULL default '0', imgheight int(11) NOT NULL default '0', imgdate int(11) NOT NULL default '0', imgprivate int(1) unsigned NOT NULL default '0', PRIMARY KEY (imgid) )


replace " . TABLE_PREFIX . " with your table prefix that you set in the config.php


ALL YOUR PROBLEMS ARE BECAUSE OF THE TABLE DOESN'T EXISTS AND YOU DIDN'T READ THE INSTALLATION FILE

PEPOLE WITH FRESH INSTALL WON'T FACE ANY PROBLEM


i tried that and i get this error -

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '" . TABLE_PREFIX . "vbimghost (imgid int(11) NOT NULL auto_increment,userid int(' at line 1

in my config.php file i have this set $config['Database']['tableprefix'] = ''

Ranma2k
25 Aug 2006, 22:39
i tried that and i get this error -



in my config.php file i have this set $config['Database']['tableprefix'] = ''
then use this code
....

CREATE TABLE vbimghost (imgid int(11) NOT NULL auto_increment,userid int(11) NOT NULL default '0',imgfile varchar(250) NOT NULL default '',imgname varchar(250) NOT NULL default '',thumbname VARCHAR( 250 ) NOT NULL, imgfilesize int(11) NOT NULL default '0', imgwidth int(11) NOT NULL default '0', imgheight int(11) NOT NULL default '0', imgdate int(11) NOT NULL default '0', imgprivate int(1) unsigned NOT NULL default '0', PRIMARY KEY (imgid) )


you don't need to run this manualy
just import the product xml and it should work fine with you

Derekclarke
26 Aug 2006, 14:27
how about a branding free option, where we could pay to have our name at the bottom.

I would like to change VB IMAGE HOST VER 1.0.0 By Waiel Eid

to

South West Scoobies, Advanced Members Hosting.

I know i could do it, but, you created the hack, and i will not modify it without your permission, hence asking for a Branding free option. ?

Ranma2k
26 Aug 2006, 15:04
how about a branding free option, where we could pay to have our name at the bottom.

I would like to change VB IMAGE HOST VER 1.0.0 By Waiel Eid

to

South West Scoobies, Advanced Members Hosting.

I know i could do it, but, you created the hack, and i will not modify it without your permission, hence asking for a Branding free option. ?
PM me for this :)

JompaMP
27 Aug 2006, 01:20
hey i have install this and its working to upload images but i get this line in the head when its uploading:

Warning: imagecreatefrompng(): Unable to access /home/user/public_html/forums/imagehosting/144f0f30b0612e.png in /includes/vbimghost_include.php on line 170

Warning: imagecreatefrompng(/home/user/public_html/forums/imagehosting/144f0f30b0612e.png): failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 170

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 198

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 199

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagepng(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 204


EDIT:

i fixed it

karlm
27 Aug 2006, 01:32
Can someone elaborate on the slots permission in group settings? I have it installed on my test board and it seems ok, just i'm not sure what the slot is.

Thanks :)

a squared
27 Aug 2006, 17:23
I've got this installed on mytest board and I m getting the same error message as JompaMP. JompaMP, could you elaborate on youre fix?

a squared
27 Aug 2006, 17:44
Also, is it possible to set the thumbnail images to a particular width?

Ranma2k
27 Aug 2006, 17:59
Can someone elaborate on the slots permission in group settings? I have it installed on my test board and it seems ok, just i'm not sure what the slot is.

Thanks :)
it's the number of upload slots ( upload files slot )

Ranma2k
27 Aug 2006, 18:00
I've got this installed on mytest board and I m getting the same error message as JompaMP. JompaMP, could you elaborate on youre fix?
He set the path correctly
Make sure you set the path correctly

Ranma2k
27 Aug 2006, 18:02
Also, is it possible to set the thumbnail images to a particular width?
yes you can set it in the vbimghost options

DigitalDesktops
27 Aug 2006, 18:37
is it possible to have the option of storing thumbnails in a different directory (for example: main image = root/imagehosting/imagename.jpg thumbnail image = root/imagehosting/thumbs/thumb_imagename.jpg)

Ranma2k
27 Aug 2006, 18:58
is it possible to have the option of storing thumbnails in a different directory (for example: main image = root/imagehosting/imagename.jpg thumbnail image = root/imagehosting/thumbs/thumb_imagename.jpg)
will add it in the next ver

simon.
27 Aug 2006, 23:58
Hi great work on this addon. I love it.

However on my forums I can't get it working. When I upload a file I get:-

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/144f23d5db9934.jpg) is not within the allowed path(s): (/home/echat:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vbimghost_include.php on line 175

Warning: imagecreatefromjpeg(/home/user/public_html/forums/imagehosting/144f23d5db9934.jpg) [function.imagecreatefromjpeg]: failed to open stream: Operation not permitted in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 198

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 199

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210


When I rebuild Thumbnails I get:

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/144f23af77edbe.jpg) is not within the allowed path(s): (/home/echat:/usr/lib/php:/usr/local/lib/php:/tmp) in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forums/imagehosting/144f23af77edbe.jpg) [function.getimagesize]: failed to open stream: Operation not permitted in /admincp/vbimghost.php on line 279

a squared
28 Aug 2006, 05:14
Hello Ranma2k,

Thanks for the help. I should have read previous posts on the same issue.

I've made the corrections. However I am now getting the same error message as Simon above. My instance is quoted below and it occurs in IE as well as FF. If it helps any; my sever is running mysql v4.0.18, PHP v4.4.1, gd v2.0.28 and an unknown version of Zend Optimizer.

BTW you've done a great job with this project. One thing that I would like to see added is that instead of limiting the amount of images a member can have. Limit the amount of storage space a member can have, editable in the AdminCP by MBs.





Warning: imagecreatefromjpeg(/home/user/public_html/Testing/portal/forums/imagehosting/144f2713647d15.jpg): failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor(): Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210




Redirecting...


image uploaded

Click here if your browser does not automatically redirect you.

Ranma2k
28 Aug 2006, 07:55
Hi great work on this addon. I love it.

However on my forums I can't get it working. When I upload a file I get:-

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/144f23d5db9934.jpg) is not within the allowed path(s): (/home/echat:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/vbimghost_include.php on line 175

Warning: imagecreatefromjpeg(/home/user/public_html/forums/imagehosting/144f23d5db9934.jpg) [function.imagecreatefromjpeg]: failed to open stream: Operation not permitted in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 198

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 199

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210


When I rebuild Thumbnails I get:

Warning: getimagesize() [function.getimagesize]: open_basedir restriction in effect. File(/home/user/public_html/forums/imagehosting/144f23af77edbe.jpg) is not within the allowed path(s): (/home/echat:/usr/lib/php:/usr/local/lib/php:/tmp) in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forums/imagehosting/144f23af77edbe.jpg) [function.getimagesize]: failed to open stream: Operation not permitted in /admincp/vbimghost.php on line 279
ok
your have open_basedir restriction in your setting ..
i'm guessing your runing it localy on your machine
..
the public_html directoy should be in allowed path setting. ( system wise )

if it's in your server contact the server admin and ask him to add the path to your home directory to your allowed list.

Ranma2k
28 Aug 2006, 08:00
Hello Ranma2k,

Thanks for the help. I should have read previous posts on the same issue.

I've made the corrections. However I am now getting the same error message as Simon above. My instance is quoted below and it occurs in IE as well as FF. If it helps any; my sever is running mysql v4.0.18, PHP v4.4.1, gd v2.0.28 and an unknown version of Zend Optimizer.

BTW you've done a great job with this project. One thing that I would like to see added is that instead of limiting the amount of images a member can have. Limit the amount of storage space a member can have, editable in the AdminCP by MBs.
then you have the same issue as simon,
your web home directory should be in allowed path
if you have shell access run the command

echo $path

and you should see the path to your public_html direcoty in the path list
if not add it ( or ask the system admin to add it )

if you need any help just PM me

as for the size limit i will try to add it

simon.
29 Aug 2006, 11:29
ok
your have open_basedir restriction in your setting ..
i'm guessing your runing it localy on your machine
..
the public_html directoy should be in allowed path setting. ( system wise )

if it's in your server contact the server admin and ask him to add the path to your home directory to your allowed list.

Ok, first off I would like to thank you on your timely responce.

Second; Its running live. I have had to disable Thumbnails and Watermark for now. But I really need it enabled. I have sent a support request to my host.

Third; Is there a way that watermark can be turned on for FREE users and off for VIP members (Paying Users)?

Forth; When I tried modifing the phrase "VB Image Host" to "Gallery" it wouldn't let me and came up with errors. Is there a way of doing this safely? Becuase my Nav Bar(s) are full and I have no room for something that long.


Thanks Renma2K,

Simon

Ranma2k
29 Aug 2006, 15:43
Ok, first off I would like to thank you on your timely responce.

Second; Its running live. I have had to disable Thumbnails and Watermark for now. But I really need it enabled. I have sent a support request to my host.

Third; Is there a way that watermark can be turned on for FREE users and off for VIP members (Paying Users)?

Forth; When I tried modifing the phrase "VB Image Host" to "Gallery" it wouldn't let me and came up with errors. Is there a way of doing this safely? Becuase my Nav Bar(s) are full and I have no room for something that long.


Thanks Renma2K,

Simon
hopefully the host will solve it

as for the water mark the next ver will have the permissions based on the groups not global setting
so you can set the vip group to not to use any water mark

as for the phrase it shouldn't give you any problem just make sure that if there any variable in it it should be there ..

if it didnt work try translation ( it did change it and it worked )

what phrase you were trying to change ?

a squared
29 Aug 2006, 16:48
Hi Ranma2k, thanks for the help. I currently do not have SSH access. However, through a little trial and error I was able to figure out the correct path. No more error messages are occuring. Not seeing a watermark though. Might be the same thing as Simon again. I hope to have time to look at it tonight.



Looking forward to the evolution of this mod.

Cheertobi
29 Aug 2006, 17:49
@Ranma2k

When will you release the next version? It seems to get some nice new feature ;)

Tobi

Ranma2k
30 Aug 2006, 08:08
@Ranma2k

When will you release the next version? It seems to get some nice new feature ;)

Tobi
well that depends on how much free time i'll get ..
curently i'm working on alot of projects and trying to give some time ..
so i can't give a date for the next release but you'll find it here XD

lanc3lot
30 Aug 2006, 12:19
Hello, great product mate, with so much capabilities.

When u say in the admincp Max file size, u mean the max upload size per upload or the uploads all together? If its the first, how we can strict the max uploads ?:)

Also, when u say in the usergroups that the group can Administer images, u mean his images or overall?

Finally, i added the addon to have it display the imagecount on posts. Can i put there a conditional in which will not be displayed if its not enabled through the admincp, for this usergroup? (and also dont show the navbar link too) Can u feed me the code?

Ps

No Comments when u look the other pictures? Shame on you, it a must one feature:P

Ps2

Can i alter the code of the 5 last images, to 2 last images? What code i change?

Ty:)

simon.
30 Aug 2006, 19:42
Ok thank you very much. I have some suggestions for the next version...

Here goes:-


That user watermark/ VIP no watermark one (;
Users (not guests) have the ability to add coments to other peoples Public Photos
Something fixed for the PM system, I noticed that in the postbit I put in My Photos: (*) (* been a number of photos they have uploaded) I noticed in a PM it says "My Photos: ()" attached is a screen shot, that better explains it.EDIT 1:
what phrase you were trying to change ?

vbimghost_title: From VB Image Host to Gallery.


EDIT 2:
I have solved my first issues, I forgot to replace "user" with my Cpanel Username. (Silly me!) This has solved my Re-build thumbnail issue, at the cost of this error when uploading:

Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in /home/echat/public_html/forums/includes/vbimghost_include.php on line 204

Hornstar
03 Sep 2006, 05:30
Looking forward to the next eddition ^^ just wondering does each member also have a gallery for pics they upload, or do they only get a link to there pic and if they forget that link then they have to upload again, if it is a gallery, who can view it etc.

Thanks.

zahrani
03 Sep 2006, 05:39
Installed and working fine.. But
Any news about activating Thumbnail and Watermark ?

libertylounge
03 Sep 2006, 19:27
Looking forward to the next version of this

When it's released I believe we'll be installing :)

Triggerhappy
03 Sep 2006, 19:47
Fantastic mod, at least on other forums my users or me wont have to use imageshack.

phpdevrus
04 Sep 2006, 01:47
i installed this fine but for some reason it didnt up keep all of my member's images. The images still exist in the same directory but it doesnt show up when i look in the vbimghost.php?do=userlist.

Did I do something wrong? How can I correct this issue?

E.Blackadder
04 Sep 2006, 12:27
What a fantastic amount of time and effort you have put into this mod....and your tireless efforts in helping those who have had installation problems is superb.

I congratulate you.:)

As soon as the next version is released with all the improvements I will definately be installing it!

great work Ranma

Ranma2k
05 Sep 2006, 09:41
Hello, great product mate, with so much capabilities.

When u say in the admincp Max file size, u mean the max upload size per upload or the uploads all together? If its the first, how we can strict the max uploads ?:)

Also, when u say in the usergroups that the group can Administer images, u mean his images or overall?

Finally, i added the addon to have it display the imagecount on posts. Can i put there a conditional in which will not be displayed if its not enabled through the admincp, for this usergroup? (and also dont show the navbar link too) Can u feed me the code?

Ps

No Comments when u look the other pictures? Shame on you, it a must one feature:P

Ps2

Can i alter the code of the 5 last images, to 2 last images? What code i change?

Ty:)
max file size / upload

as for administration ( overall)

and yes you can put a condition in the template to do that ..

As for comment system it will be add hopefully with the next release

Ranma2k
05 Sep 2006, 09:42
Ok thank you very much. I have some suggestions for the next version...

Here goes:-


That user watermark/ VIP no watermark one (;
Users (not guests) have the ability to add coments to other peoples Public Photos
Something fixed for the PM system, I noticed that in the postbit I put in My Photos: (*) (* been a number of photos they have uploaded) I noticed in a PM it says "My Photos: ()" attached is a screen shot, that better explains it.EDIT 1:


vbimghost_title: From VB Image Host to Gallery.


EDIT 2:
I have solved my first issues, I forgot to replace "user" with my Cpanel Username. (Silly me!) This has solved my Re-build thumbnail issue, at the cost of this error when uploading:

Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in /home/echat/public_html/forums/includes/vbimghost_include.php on line 204
yah there is a missing plugin for the pm system so i'll fix that in the next release
the next release will have many fixes and modifed stuff based on the members requests

Ranma2k
05 Sep 2006, 09:43
Looking forward to the next eddition ^^ just wondering does each member also have a gallery for pics they upload, or do they only get a link to there pic and if they forget that link then they have to upload again, if it is a gallery, who can view it etc.

Thanks.
no each have his own gallery and he can get the link from there if he forgot it .

Ranma2k
05 Sep 2006, 09:44
Installed and working fine.. But
Any news about activating Thumbnail and Watermark ?
there is a thumbnail / watermark in it

Ranma2k
05 Sep 2006, 09:45
i installed this fine but for some reason it didnt up keep all of my member's images. The images still exist in the same directory but it doesnt show up when i look in the vbimghost.php?do=userlist.

Did I do something wrong? How can I correct this issue?
in order to view the pics the owner of the image have to set it to public view
if it's privat you won't be able to see it

only admins from the admin cp can view all images public / private

lanc3lot
05 Sep 2006, 11:07
and yes you can put a condition in the template to do that ..



Ty for the other comments, and your overall support.

Can u please tell me what is the code i have to add and where? I use a fixed forum so i have removed for now this entry on the code, so it wont change my look.

Ty again, waiting for the new version:P

JGM007
06 Sep 2006, 03:33
Hello,
I was wondering if there will there be an option down the road that users can catergorize and organize their images instead of just uploading them with no organization?

Hornstar
06 Sep 2006, 06:09
I just uploaded a pic and got this error, i think it kind of still worked but wondering how to fix this error


Warning: imagecreatefromjpeg(/home/user/public_html/forums/imagehosting/144fe65a8b34f4.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 198

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 199

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210



i got that error after uploading a pic, and it was shown on the redirection screen.





I disabled watermark and I dont get the error anymore, so how do i fix this because I really want to watermark.

also I got a request.

Make it so we can set how big the file the usergroup can upload instead of only 1 setting for everyone.

Because I will probably want to make it so guests can only upload smaller pics but then members can upload a bit begger etc.

And also to make the watermark always happen for certain usergroups and as an option for others.
Thanks.

Kmurray
06 Sep 2006, 15:35
I dont get that watermark to work at all. I tried both text and a PNG image but none of them show after upload a pic. Is there something im missing?

HtK MLG
06 Sep 2006, 22:37
why is it in a differnt language?

jfreels
07 Sep 2006, 02:48
dude, awesome work!

I was just about to shell out for the photopost or whatever thing. Good job!

e7lew
07 Sep 2006, 04:30
cant display the pic
path dir is correct and 777
any idea?

jfreels
07 Sep 2006, 13:47
Any chance a "random" function exists? I'm making a box for my homepage that will show some random pics from the hosting.

If it already exists, please save me the time! Or if you can offer any help! Thanks!

phpdevrus
07 Sep 2006, 23:03
nice works well.

i use it on 2 sites. 1 site i lost the previous hosting data in the db and forgot to backup. the 2nd site upgraded fine.

dsotmoon
07 Sep 2006, 23:25
can the watermark be set per usergroup?

jailer
08 Sep 2006, 13:12
Installed, running great - thanks.
Can someone tell me what the query to run would be to remove the watermarks?
Images that have been added to the gallery after the watermark was switched off are fine, but images added before still bear the watermark.
Thanks.

zahrani
08 Sep 2006, 16:35
there is a thumbnail / watermark in it

Thanks alot. It's working smoothly.

Is there a way to limit the host size for each usergroup?

Hornstar
09 Sep 2006, 10:18
I upgraded to the latest version of GD but am still get errors when i have watermark enabled.

Any ideas why?

Ranma2k
09 Sep 2006, 15:24
I upgraded to the latest version of GD but am still get errors when i have watermark enabled.

Any ideas why?
can you post the errors
or pm me access to your forum and i'll help you

libertylounge
09 Sep 2006, 17:04
Any idea when the next version will be released? I'm eagerly awaiting it!

jailer
09 Sep 2006, 19:31
Installed, running great - thanks.
Can someone tell me what the query to run would be to remove the watermarks?
Images that have been added to the gallery after the watermark was switched off are fine, but images added before still bear the watermark.
Thanks.


Any idea on this problem mate?

Cheers.

Ranma2k
09 Sep 2006, 19:42
Any idea on this problem mate?

Cheers.
old images that have water mark ..

you can't remove the water mark from it .. unless you re upload the images again.

Ranma2k
09 Sep 2006, 19:42
Any idea when the next version will be released? I'm eagerly awaiting it!
can't set a date but hopefully within 2 weeks

jailer
09 Sep 2006, 19:43
OK, thanks.

Hornstar
10 Sep 2006, 10:44
That is the error I got here http://www.vbulletin.org/forum/showpost.php?p=1069045&postcount=158

If you need any specific detail let me know.

Thanks.

Ranma2k
10 Sep 2006, 12:28
That is the error I got here http://www.vbulletin.org/forum/showpost.php?p=1069045&postcount=158

If you need any specific detail let me know.

Thanks.
are you sure this is your forum path ?

/home/user/public_html/forums


if your not sure .. use the attached file

put it in the forum direcoty and call it usin the browser you have

it will display the correct path that you should put in the vbimghost setting .

tweakmonkey
10 Sep 2006, 12:57
Great plugin!
We installed it on our test forums and after making some minor tweaks we're going to put it live.

Here are a few suggestions, and I saw from your replies you're planning on some of them already:
1) Allow images to be uploaded to a different server or subdomain
2) Show how many times an image was viewed
3) Allow users to comment on images

I may have more suggestions but just started playing with it. Thanks again for this excellent mod.

Goodspeed
10 Sep 2006, 18:45
I have a question. Is it possible to make a link for full sized image to actual image location, not into vbimage hosting script?

For example when I'm entering images into a thread I get this url by clicking on thumbail image:
http://www.someforum.com/forum/vbimghost.php?do=displayimg&imgid=3

But I need to open image from actual location, for example:
http://www.someforum.com/forum/imagehosting/14503f43b8b4c3.jpg

Thank you!

Ranma2k
10 Sep 2006, 20:41
Great plugin!
We installed it on our test forums and after making some minor tweaks we're going to put it live.

Here are a few suggestions, and I saw from your replies you're planning on some of them already:
1) Allow images to be uploaded to a different server or subdomain
2) Show how many times an image was viewed
3) Allow users to comment on images

I may have more suggestions but just started playing with it. Thanks again for this excellent mod.
glad you liked it,
yes I'm currently working on the new ver with what everyone suggested
if you have any more suggestions please let me know

Ranma2k
10 Sep 2006, 20:48
I have a question. Is it possible to make a link for full sized image to actual image location, not into vbimage hosting script?

For example when I'm entering images into a thread I get this url by clicking on thumbail image:
http://www.someforum.com/forum/vbimghost.php?do=displayimg&imgid=3

But I need to open image from actual location, for example:
http://www.someforum.com/forum/imagehosting/14503f43b8b4c3.jpg

Thank you!
yes you can do that

in the template vbimghost_imgbits_poprow

replace the template with this code


<if condition="$counter==$vbimghost['imgperrow']">
</tr>
<tr>
</if>
<td width="25%" align="center" valign="middle" class="alt1">
<if condition="$thump">
<a href="javascript:void(0)" onclick="sendLink('$vbimghost[thumbpath]','$vbimghost[path]', '$vbimghost[imgwidth]')">
<img <if condition="$vbimghost[thumbsize]"> width="$vbimghost[thumbsize]"</if> src="$vbimghost[thumbpath]" border="0"></a>
<else />
&nbsp;
</if>
</td>



and it should work with you :)

Goodspeed
11 Sep 2006, 07:10
Ranma2k
Thank you! It works just G-R-E-A-T!

Ranma2k
11 Sep 2006, 12:05
Ranma2k
Thank you! It works just G-R-E-A-T!
glad it worked with you :)

tweakmonkey
12 Sep 2006, 07:58
I had a couple more questions. They may have been answered in the last few pages but I didn't see them.

1) Users can either delete everyone's images, or nobody's images, correct? It seems if I enable the Administration option, they can delete anyone's instead of just their own.

2) The filmstrip seems to do sort of wacky stuff for me. Maybe it's because the user has only 3 or 4 images, but it shows 2 of 3 as thumbnails, then when one's clicked it seems to show a random number of thumbnails the next time. I might just not understand how it's supposed to work, maybe someone could explain it to me.

Ranma2k
12 Sep 2006, 19:01
I had a couple more questions. They may have been answered in the last few pages but I didn't see them.

1) Users can either delete everyone's images, or nobody's images, correct? It seems if I enable the Administration option, they can delete anyone's instead of just their own.

2) The filmstrip seems to do sort of wacky stuff for me. Maybe it's because the user has only 3 or 4 images, but it shows 2 of 3 as thumbnails, then when one's clicked it seems to show a random number of thumbnails the next time. I might just not understand how it's supposed to work, maybe someone could explain it to me.
admin is for Administrators ( if you enable a group to admin then that group would modify all the image)
any member can delete his image by default.

the filmstrip should show only the images before / after the curent image (based on the number of fields you set in the option) it's recomended to make that number an odd number so it can display correctly

Gerakus
14 Sep 2006, 13:39
I have the problem when a user tries to download an avi, IE 6 tries to open the file without asking the user if he wish to download, save or open the file.

Anyone know how to fix this?

Kmurray
14 Sep 2006, 13:57
The mod works great so thanks for making it!

i got one weird problem that occures when people use the quick upload tool within a topic. After uploading an image it places the image on top of the board header instead of in the topic, it doesnt stay after you hit the post new topic button but it doesn't appear in the topic content either.

Sometimes it works though so i dont know what it is. It always works when i go back to edit the topic and try again.

woody200456
14 Sep 2006, 15:17
for some reason i get this error:

Fatal error: Call to undefined function: imagecreatefrompng() in /home/gxdesig/public_html/forum/includes/vbimghost_include.php on line 170

RichieBoy67
14 Sep 2006, 17:07
sorry---posted on the wrong forum...

Greek76
15 Sep 2006, 00:06
Hey Ranma I ran into a problem. One when ever I click on any link having to do with Vbimage the screen reloads and all of my forum icons are gone... Any ideas?

ComputerVitals
15 Sep 2006, 04:14
Is there a way users can make "folders" or albums to seperate the photos?

dholt
15 Sep 2006, 19:11
MY VBCP keep telling me this mod is out of date is there a VB image hosting 1.2.3

Ranma2k
16 Sep 2006, 06:34
I have the problem when a user tries to download an avi, IE 6 tries to open the file without asking the user if he wish to download, save or open the file.

Anyone know how to fix this?
the mod is for images i didn't set it for avi files ..

Ranma2k
16 Sep 2006, 06:38
The mod works great so thanks for making it!

i got one weird problem that occures when people use the quick upload tool within a topic. After uploading an image it places the image on top of the board header instead of in the topic, it doesnt stay after you hit the post new topic button but it doesn't appear in the topic content either.

Sometimes it works though so i dont know what it is. It always works when i go back to edit the topic and try again.
That's weird
Are you sure that the Curser in the edit box ?!

can you give me access to see what's the problem

Ranma2k
16 Sep 2006, 06:39
for some reason i get this error:

Fatal error: Call to undefined function: imagecreatefrompng() in /home/gxdesig/public_html/forum/includes/vbimghost_include.php on line 170
Is the GD library installed ..
cuz it's one of the requirements

Ranma2k
16 Sep 2006, 06:40
Hey Ranma I ran into a problem. One when ever I click on any link having to do with Vbimage the screen reloads and all of my forum icons are gone... Any ideas?
i didn't get what you mean..
can you post some images to the problem your having ..

Ranma2k
16 Sep 2006, 06:42
MY VBCP keep telling me this mod is out of date is there a VB image hosting 1.2.3
sorry my bad i changed the file ver by mistake it's fixed now

Greek76
16 Sep 2006, 15:41
i didn't get what you mean..
can you post some images to the problem your having ..

I uninstalled id does not seem to work with my forum. When ever I would click to upload an image the screen would refresh and all my forum icons and buttons are not their. After I removed the gallery everything works fine. I believe I followed the proper instructions as well.

Neo_Angelo
16 Sep 2006, 19:03
i get the following error when trying to delete an image i've uploaded:

Warning: unlink(): open_basedir restriction in effect. File(/imagehosting/1450c473cbd836.gif) is not within the allowed path(s): (/tmp:/usr/share/pear:/home/fhlinux185/r/*******.net/user) in /vbimghost.php on line 896

any idea how to fix this...it will not let me delete an image

also when a user click a username in "view all images" they get taken to their images not the user they clicked ons images....strange.

Ranma2k
17 Sep 2006, 06:48
i get the following error when trying to delete an image i've uploaded:



any idea how to fix this...it will not let me delete an image

also when a user click a username in "view all images" they get taken to their images not the user they clicked ons images....strange.
Neo,
Please Pm me your forum url

dougk
17 Sep 2006, 09:33
hi, i am stuck with a problem.

When i install and use the programs it keeps looking for the files under (my url)/upload/(whatever file). i need to change this so it is just (my URL)/(whatever file)

can anyone explain how?

dougk
17 Sep 2006, 09:47
also the upload an inamge function doenst appear?

all i have are the buttons of host it and reset

Morrus
17 Sep 2006, 18:35
Seems to work, but when I try to upload an image I get the following page full of errors (screenshot attached).

Any ideas?

simon.
17 Sep 2006, 19:00
yah there is a missing plugin for the pm system so i'll fix that in the next release
the next release will have many fixes and modifed stuff based on the members requests

So we will be able to change what it says on the Nav Bar?

VB Image Host ----> Gallery

Morrus
17 Sep 2006, 19:04
So we will be able to change what it says on the Nav Bar?

VB Image Host ----> Gallery

Just change the phrase. I changed it to "Image Hosting".

Ranma2k
17 Sep 2006, 19:48
Seems to work, but when I try to upload an image I get the following page full of errors (screenshot attached).

Any ideas?
what did you set the path and the image directory ?!

Ranma2k
17 Sep 2006, 19:49
hi, i am stuck with a problem.

When i install and use the programs it keeps looking for the files under (my url)/upload/(whatever file). i need to change this so it is just (my URL)/(whatever file)

can anyone explain how?
so you want to remove the image host directory...?

Morrus
17 Sep 2006, 20:12
what did you set the path and the image directory ?!

To clarify, the system is working (the images ARE uploading and displaying), but those erros are appearing in addition.

Reviewing the install instructions, where do I set a path an image directory? There's no mentin here - I quote them here in full (leaving out the template mod bit):

Step 1 ( Backup):
Always Always backup you database . I'll not be held responsible for any data lose .

Step 2 ( Upload Files ):
upload the files that in the folder forum into your forum directory overwriting the old ones.
(./ ) is your forum home directory.
./ vbimghost.php
./ admincp / vbimghost.php
./ includes / xml / bitfield_ao_vbimghost.xml
./ includes / xml / cpnav_ao_vbimghost.xml
./ includes / vbimghost_include.php

Step 2a ( CHMOD DIRECTORY ):
Change the permission for the upload directory to 777.
Note: The upload direcotry is where your files are going to be uploaded to [in the folder here it's called imagehosting]
step 3 (Upload the product):
Go to your admincp under Plugin System -> Manage Products : click [Add/Import Product] and select the file product-ao_vbimghost.xml and make suer that you set Allow Overwrite to YES
Step 4 ( template modification ):

...

step 4a:
If you want some additional stuf you can check section D ( Addons ) such as ( show last 5 images in the profile, number of photos in the postbit ..etc ).
step 5 :
Go to the Admincp and reconfigure the usergroup and the option

Step 6:
Go to Vbulliten.org and click install :)

The only thing I can think you might be refering to is the directory mentined in the AdminCP under the ImageHosting Options - which is entered, as indicated, as "imagehosting" with no trailing slash.

But, to repeat - the system does seem to work, it just throws ugly errors up as well.

Ranma2k
17 Sep 2006, 22:17
To clarify, the system is working (the images ARE uploading and displaying), but those erros are appearing in addition.

Reviewing the install instructions, where do I set a path an image directory? There's no mentin here - I quote them here in full (leaving out the template mod bit):



The only thing I can think you might be refering to is the directory mentined in the AdminCP under the ImageHosting Options - which is entered, as indicated, as "imagehosting" with no trailing slash.

But, to repeat - the system does seem to work, it just throws ugly errors up as well.
you set up the path to the forums in the vbimghost options
is it set there correctly ?!

Morrus
17 Sep 2006, 22:32
you set up the path to the forums in the vbimghost options
is it set there correctly ?!

It is set as indicated in the post you quoted.

Ranma2k
18 Sep 2006, 08:20
It is set as indicated in the post you quoted.
morrus : in order to help you give me access ot the admin cp and i'll solve it for you

Please PM me the info

dougk
18 Sep 2006, 09:56
so you want to remove the image host directory...?

you have lost me...

lol.

When using the program every time it looks for the files under url/upload/file. I want it to be url/file.

Also the problem of no boxes for uploading...

Ranma2k
18 Sep 2006, 11:49
you have lost me...

lol.

When using the program every time it looks for the files under url/upload/file. I want it to be url/file.

Also the problem of no boxes for uploading...
ok pm me with your fourm info and i'll help you out ..

Morrus
18 Sep 2006, 14:22
morrus : in order to help you give me access ot the admin cp and i'll solve it for you

Please PM me the info

Thanks, Ranma2k. PM on its way.

Morrus
18 Sep 2006, 19:03
That solved that - thank you Ranma2k!

Incidentally, I don't know if you're accepting suggestions for the mod, but if you are - an image title and image description field would be very useful. Showing the file name as the title is kinda ugly! :)

Thanks again for your help.

Ranma2k
18 Sep 2006, 19:14
That solved that - thank you Ranma2k!

Incidentally, I don't know if you're accepting suggestions for the mod, but if you are - an image title and image description field would be very useful. Showing the file name as the title is kinda ugly! :)

Thanks again for your help.
Yah i'm taking that in my next ver
everyone will be able to edit all aspects of the image :)

Derekclarke
18 Sep 2006, 19:21
it would also be good if the images displayed in My Images were in a Thumbnail size, rather than full size.

maybee an admin option to set the size of images in the users image folder.

Morrus
18 Sep 2006, 19:22
Yah i'm taking that in my next ver
everyone will be able to edit all aspects of the image :)

Cool! Any idea on when that'll be available?

Ranma2k
18 Sep 2006, 19:55
it would also be good if the images displayed in My Images were in a Thumbnail size, rather than full size.

maybee an admin option to set the size of images in the users image folder.
the images is shown in the tumbnail size by defualt ..
if there is no thumbnail it will show the image as uploaded
if there is no thumbnails rebuild it from the admincp

Derekclarke
18 Sep 2006, 20:12
i have already done this, and just tried again after reading your reply, yet i have most images in Thumbnail size others full size.

it is a little annoying when browsing my images.

dholt
19 Sep 2006, 01:21
vBulletin Message
Unable to delete the image

Great mod just can not delete what I uploaded not sure checked user groups

Warning: unlink(/imagehosting/2450b6f35eb8b6.gif) [function.unlink]: No such file or directory in /vbimghost.php on line 896

this is what is there
if(!unlink($imgfile)){
eval(standard_error(fetch_error('vbimghost_imgnotdeleted')));
}

dholt
19 Sep 2006, 03:06
/imagehosting Remove the forword slash if you added it.

Thanks dholt that worked

memomemo
19 Sep 2006, 20:16
Hello

I am web site www.forumsitesi.info/forum > CMPS portal setup = ok
But
This page index how vbimage random to show?

memomemo
19 Sep 2006, 21:26
Open Template :
adv_portal_randomprofile

clear in all and paste :

Code :


<tr>
<td class="alt2" valign="top">
<table>
<tr valign="top">


<td class="alt2" valign="top" align="center">
<img src="$profilepiclink" alt="$vbphrase[vbaCmps_randomprofile]" border="0" /></td>
</tr>
<tr valign="top">


<td class="alt2" valign="top">
<table>
<tr>
<td class="smallfont">
<div>
<img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" />
$vbphrase[vbaCmps_randomusername]
</div>
</td>
<td>
:
</td>
<td class="smallfont">
$randomusername
</td>
</tr>
<tr>
<td class="smallfont">
<div>
<img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" />
$vbphrase[vbaCmps_randomtitle]
</div>
</td>
<td>
:
</td>
<td class="smallfont">
$randomusernametitle
</td>
</tr>
<tr>
<td class="smallfont">
<div>
<img src="$stylevar[imgdir_misc]/arrow.gif" alt="" class="inlineimg" />
$vbphrase[vbaCmps_randomjoindate]
</div>
</td>
<td>
:
</td>
<td class="smallfont">
$randomusernamejoindate
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>

memomemo
19 Sep 2006, 21:27
Sorry mistake post :(

toolblast
19 Sep 2006, 21:57
Suggestion:
I would like there to be comments and rating added to the images when you view them in 'full view' only. This would be great!

IMPROVEMENT:
I have edited the imagebit somewhat. In the original script... all users always see that bbcode, permissions, and other stuff that for the user who owns the photos may be useful, but for other users it just seems to clutter up the photo gallery page in my opinion.

I was wanting something more like Facebook... where if they go to view their friend's gallery... it simply shows a gallery page with a bunch of thumbnails only... no details or stuff underneath. However, I didn't want to remove this stuff, so what I did was edited the template and added an extra condition so that:

1) When viewing photos, if the photos belong to the user that is logged in... they see all that extra bbcode and permission stuff underneath the photo.

2) For OTHER users viewing photos that belong to their friends... they will just see the gallery page with only the photo thumbnails listed.

3) In either case... clicking the thumbnail will open up the main view page and will have the large photo, and will have all the bbcode stuff showing.. but only when the image is viewed in the fullscreen size page.


CODE CHANGES:

OPEN template called "vbimghost_imgbits"

Delete everything in that template, and replace it with this:

<td>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
<td class="alt1" align="center" valign="center"><a href="$vbimghost[dispath]"><img src="$vbimghost[thumbpath]" <if condition="$vbimghost[thumbsize]!=0"> width="$vbimghost[thumbsize]"</if> border="0"></a></td>
</tr>

<if condition="$vbimghost[private]!=None">
<tr>
<td class="alt2" align="center" valign="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<thead>




<tr>
<td class="thead" colspan="2">$vbimghost</td>
</tr>
</thead>
<tbody>
<tr>
<td class="alt1">$vbphrase[vbimghost_filesize]</td>
<td class="alt2">$vbimghost[filesize] </td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imgdime]</td>
<td class="alt2">$vbimghost[width] x $vbimghost[height] </td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_update]</td>
<td class="alt2">$vbimghost[date] </td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imgdlink]</td>
<td class="alt2"><input type="text" value="[img]$vbimghost[path]"></td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imgflink]</td>
<td class="alt2"><input type="text" value="']https://www.vbulletin.org/forum/ ('$vbimghost[dispath)"></td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imglink]</td>
<td class="alt2"><input type="text" value="<a href='$vbimghost[dispath]' border=0><img src='$vbimghost[thumbpath]'></a>"></td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_perm] </td>
<td class="alt2">$vbimghost[private]</td>
</tr>
</tbody>

</table>
</td>
</tr></if>
</table>
</td>


VIEW THIS IN ACTION: http://www.undrgrads.com/vbimghost.php?do=viewimages&id=3

ryuji
19 Sep 2006, 23:12
just a heads up, you use mysql_num_rows() in your script, which causes breakage when using it on a forum that uses msqli, changing every case of this command to mysqli_num_rows() fixed it on my forum... i dont know if theres a better way other then to manualy edit it tho, ill leave that to you ranma2k

edit: also you use mysql_fetch_array() which has same problem and solution

ryuji
20 Sep 2006, 00:51
i've modified the code to automatically use the correct method, attached the fixed copy, can be used on any forum since i've added in the conditional, heres a example of that i've added
if($vbulletin->config['Database']['dbtype']=='mysqli' OR $vbulletin->config['Database']['dbtype']=='mysqli_slave')
$usercount = mysqli_num_rows($result);
else
$usercount = mysql_num_rows($result);

Morrus
20 Sep 2006, 01:02
I have edited the imagebit somewhat. In the original script... all users always see that bbcode, permissions, and other stuff that for the user who owns the photos may be useful, but for other users it just seems to clutter up the photo gallery page in my opinion.

Looks good on your site. But using that as the template gives this result:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_PRIVATE, expecting ']' in /http/circvs/includes/adminfunctions_template.php(3593) : eval()'d code on line 7

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

ryuji
20 Sep 2006, 01:49
Looks good on your site. But using that as the template gives this result:
<td>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
<td class="alt1" align="center" valign="center"><a href="$vbimghost[dispath]"><img src="$vbimghost[thumbpath]" <if condition="$vbimghost[thumbsize]!=0"> width="$vbimghost[thumbsize]"</if> border="0"></a></td>
</tr>

<if condition="$vbulletin->GPC['do']=='myimages'">
<tr>
<td class="alt2" align="center" valign="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<thead>




<tr>
<td class="thead" colspan="2">$vbimghost</td>
</tr>
</thead>
<tbody>
<tr>
<td class="alt1">$vbphrase[vbimghost_filesize]</td>
<td class="alt2">$vbimghost[filesize] </td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imgdime]</td>
<td class="alt2">$vbimghost[width] x $vbimghost[height] </td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_update]</td>
<td class="alt2">$vbimghost[date] </td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imgdlink]</td>
<td class="alt2"><input type="text" value="[img]$vbimghost[path]"></td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imgflink]</td>
<td class="alt2"><input type="text" value="https://www.vbulletin.org/forum/"></td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_imglink]</td>
<td class="alt2"><input type="text" value="<a href='$vbimghost[dispath]' border=0><img src='$vbimghost[thumbpath]'></a>"></td>
</tr>
<tr>
<td class="alt1">$vbphrase[vbimghost_perm] </td>
<td class="alt2">$vbimghost[private]</td>
</tr>
</tbody>

</table>
</td>
</tr></if>
</table>
</td>

made a modification that makes it both better and work, only shows the urls if you click on the images or your viewing your images through 'view my images'

Morrus
20 Sep 2006, 01:57
made a modification that makes it both better and work, only shows the urls if you click on the images or your viewing your images through 'view my images'

That worked - thanks! Although it only works if you select "Columns (new view)" and not "Rows (old view)".

ryuji
20 Sep 2006, 02:04
That worked - thanks! Although it only works if you select "Columns (new view)" and not "Rows (old view)".
i only fixed the error, i dont have the time to make both views work

Morrus
20 Sep 2006, 02:07
i only fixed the error, i dont have the time to make both views work

No worries. It wasn't clear to me whether the original suggestion was supposed to apply to both view or just one.

memomemo
20 Sep 2006, 12:25
Please HELP

Hello

I am web site www.forumsitesi.info/forum > CMPS portal setup = ok
But
This page index how vbimage random to show?

Ranma2k
20 Sep 2006, 12:45
i managed to fix most of the stuff
the next ver is a complete rewrite for the hack . so it's taking a lot of time

the new ver will support both db and it will cover all the requests
starting next week I'll have a lot of free time to work on it so ver 2.0 will be available in the next few weeks

i appreciate everyone help please if you think there is something need to be added / or to be fixed please let me know

fly
20 Sep 2006, 18:43
A question that may have been covered, but why doesn't the uninstall remove the database stuff? How does one remove it then?

edit: I see we have to manually remove the DB. May I make the suggestion that the uninstall actually uninstall the whole thing? Otherwise, with all due respect, why have it?

toolblast
20 Sep 2006, 19:38
No worries. It wasn't clear to me whether the original suggestion was supposed to apply to both view or just one.


Hi guys. Glad you liked my little mod. I forgot to meantion that yes, it only works in the 'column' view. The row view is a different template I believe.

But if you only have the images and not the 'detail' stuff, then it is probably best to have it in column view since I personally like the look of it better. But it is your preference, if you want it in the row view, on a site with a lot of images and smaller thumbnails it makes the page very large and a lot of scrolling.

Thanks Ryuji for your enhancement of the template, I'll give it a try :)

toolblast
20 Sep 2006, 19:48
*update:

Also, I see what someone would want the 'my images' to be in 'row view' or at least not have as many columns.

On my site for example, when I use my template mod imgbit... it just shows the image thumbnails.. nothing else. My thumbnails are set to be small (200x200) about that size... so I can end up fitting 4 images per row.

However... once the user goes to 'my images' and the permission occurs to show all the bbcode and other bits below the thumbnail... it ends up being too wide for each image and 4 columns of images ends up getting too wide and goes off the screen.

My request:

It would be nice to integrate my mod into the product and separate the settings to be for MY IMAGES and PUBLIC GALLERY VIEW. Something like this in the settings:

Public Gallery View:
- show image properties/bbcode, etc? YES/NO
- columns: x

My Images view:
- show image properties/bbcode, etc? YES/NO
- columns or rows?
- columns?: x number of columns.

That way I can set it so that if the user is in 'my images' he/she sees all the extra properties below his/her thumbnails, and there are only 2 columns of images so that it fits my layout. But when OTHER users are viewing that user's public gallery... none of the properties display under the thumbnails, allowing me to set it up to have 4 columns of thumbnails.

Make sense?

|oR|Greg
21 Sep 2006, 14:59
How come on my individual image pages, I get the word Array at the top?
Obviously it has to do with the addition of the code in the .php script:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');...but why only on the Image Host pages, and only on individual picture pages.
Example (http://www.amacny.com/vb/vbimghost.php?do=displayimg&imgid=12)

transitbus
21 Sep 2006, 18:06
yes
check this post
http://www.vbulletin.org/forum/showpost.php?p=1050361&postcount=667
if you want to set it up as a module
copy the code of the blugin into a php file and put it into the module folder
and set it up in the vbadvanced

Ok so I tried this and got nothing. Is there a module made by someone to use on CMPS?? I would really love to have a random pic shown. Would especially love if it had a time of once per day.

dholt
21 Sep 2006, 18:22
Just change the phrase. I changed it to "Image Hosting".

I can seem to find were it changes it to i must have changed everything in that nav code

|oR|Greg
21 Sep 2006, 20:28
I can seem to find were it changes it to i must have changed everything in that nav code

Languages & Phrases => Search in Phrases

Search for text: vbimghost_title
Search in ... : Phrase Variable Name Only

Once it comes up, EDIT it to say what you want.

turfy
21 Sep 2006, 21:05
Hello,

How to set photo "public" by default and not "private".

Thanks.

juan71287
22 Sep 2006, 01:27
Id tell you.. LOVE THIS F************** HACK!

ryuji
22 Sep 2006, 16:33
i might play with the code a bit, but by request would be to set it up so the number of rows/columns is dependant on screen resolution and not a static variable, it should be simple enough, run some javascript to get the browsers size, offset by x pixels and then have it pass the number of rows/columns to the url in the menu bar

Gizmo5h1t3
22 Sep 2006, 19:56
is there any way it can be adapted to show random images on the forumhome?

like vbgallery?

they have a "5 random image" add on....

transitbus
22 Sep 2006, 19:56
Ok here is what I did to try and get random pictures to show for my CMPS homepage:

Copied out the following code from vbimghost_last5forumhome-plugins.xml:

$rec = $vbulletin->db->query_read("
SELECT imgid,imgfile,thumbname,imgwidth,imgheight,imgdate
FROM ".TABLE_PREFIX."vbimghost
WHERE imgprivate='0'
order by imgdate DESC
LIMIT 5
");

$vbimghost['count'] = $db->num_rows($rec);


if ($vbimghost['count']){
while ($row = $vbulletin->db->fetch_array($rec)) {
$vbimghost['id']=$row['imgid'];
$vbimghost['path']=$vbulletin->options['bburl']."/".$vbulletin->options['imgdir']."/".$row['imgfile'];
$vbimghost['dispath']=$vbulletin->options['bburl']."/vbimghost.php?do=displayimg&imgid=".$row['imgid'];
$vbimghost['width']=$row['imgwidth'];
$vbimghost['height']=$row['imgheight'];
$vbimghost['date']=date('Y-m-d', $row['imgdate']);
if (file_exists($vbulletin->options['imgdir']."/".$row['thumbname'])){
$vbimghost['thumbpath']=$vbulletin->options['bburl']."/".$vbulletin->options['imgdir']."/".$row['thumbname'];
$vbimghost['thumbsize']=0;
}else{
$vbimghost['thumbpath']=$vbimghost['path'];
if ($row['imgwidth'] <= $vbulletin->options['imgthumw'])
$vbimghost['thumbsize']=$row['imgwidth'];
else
$vbimghost['thumbsize']=$vbimghost['imgthumw'];
}
eval('$mimghost .= "'.fetch_template('vbimghost_memberbit') . '";');
}
}else{
$vbimghost['more'] = "";
eval('$mimghost ="'.fetch_template('vbimghost_memberbit_noimg') . '";');
}

$vbimghost['last5'] = $mimghost;

I then added pphp tags to enclose it:

<?php and ?>

I then saved it as vbimagehostpics.php and placed it in my modules folder.

Then I made a template and called it vbimage

<tr>
<td>
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<thead>
<tr>
<td class="tcat" colspan='$vbimghost[count]' align="center">$vbphrase[vbimghost_last5img] </td>
</tr>
</thead>
<tbody>
<tr align="center">
$vbimghost[last5]
</tr>
</tbody>
</table>
</td>
</tr>

I then went back and added a modulee as a php file

Module Title: Random Pix
Column: Center
Display Order: 2
Active: Yes
Update All Pages: Yes
File to Include: vbimagehostpics.php
Identifier: blank
Template used: adv_portal_vbimage
Use Module Shell Template: No

everything saved ok but nothing shows on the main page. What am I doing wrong?!?

Ranma2k
22 Sep 2006, 20:22
thx for sharing it with others :)

Ranma2k
22 Sep 2006, 20:23
Hello,

How to set photo "public" by default and not "private".

Thanks.
from the vbimghost options

transitbus
22 Sep 2006, 21:42
thx for sharing it with others :)

But it doesn't work!!!

goorgoor
24 Sep 2006, 09:04
why do i get this error?


Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: Unable to access /home/user/public_html/forum/imagehosting/1451647e8642a6.jpg in /includes/vbimghost_include.php on line 175

Warning: imagecreatefromjpeg(/home/user/public_html/forum/imagehosting/1451647e8642a6.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 198

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 199

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210