PDA

View Full Version : Image Hosting


Pages : 1 [2]

aggiefan
12-20-2005, 02:49 AM
I have installed this modification here: http://www.aggiefans.com/forums/image_host.php?do=uploader

And on IE (and IE only) its spanning too far over. Anybody have any ideas?

Ranma2k
12-23-2005, 12:39 AM
i installed it and it's working almost perfect except for 1 last thing which probably everyone has the same problem with...

When you set permissions to 'yes' to moderate in usergroup, then you can delete the uploaded images, however if you set to 'no' to moderation, then when you try to delete, it will bring up a 'white blank' screen... obviously, this problem needs attention... (i think it's a problem in the root .PHP files) please check into it and let us know how to fix this error...



John P.

To fix this error go to image_host.php

find the line 213 in that file

if ($permissions['imghost'] & $vbulletin->bf_ugp_imghost['canadmin']){


and change it to


if ($permissions['imghost'] || $vbulletin->bf_ugp_imghost['canadmin']){


when i first installed it i had to fix alot of errors in it to make it work ..
now everything working fine and i'm updaing on it to add more functions ..
actully i changed alot :P

but a nice hack :)

yessir
12-23-2005, 01:03 AM
when i first installed it i had to fix alot of errors in it to make it work ..
now everything working fine and i'm updaing on it to add more functions ..
actully i changed alot :P

but a nice hack :)
Care to share?

Ranma2k
12-23-2005, 01:09 AM
Care to share?

sure if the owner agree

sonata
12-24-2005, 12:53 PM
I can't get it to work with VB 3.5.1. All I see is a blank white page. Does this hack work with VB 3.5.1?

Ranma2k
12-26-2005, 05:11 PM
I can't get it to work with VB 3.5.1. All I see is a blank white page. Does this hack work with VB 3.5.1?

yes it also work with 3.5.2

ForYou
12-29-2005, 04:01 PM
Hello ,

Why i get blank page , when i need to upload there is Blank page , 3.5.2 !!

Why this problem comes

Jake25
12-31-2005, 11:02 PM
I have the strangest thing.
Run VB 3.5.2. Uploaded all correctly, created the folder/set permissions/ect..
Uploaded the product file via manage products, set correct settings via VBoptions->imagehosting, set it up so Admins/Mods/ect can upload images.

Everything is perfect, except..

There's no "imagehosting" hyperlink" on my menu bar.. There's no place to actually go and upload anything (although, there could be, but it's not showing up anywhere)

No one would no I even had the hack in place..

Any ideas on this?
I re-upped everything twice to make sure it wasnt on my end.

If I manually type in my url with the image_host.php extension, it works. Ha.
I suppose I'm going to have to somehow add it in somewhere (which I'm not exactly sure how to add to the menu bar)
Any help would be appreciated.

Cheers, Jake

Ranma2k
01-03-2006, 05:37 AM
I have the strangest thing.
Run VB 3.5.2. Uploaded all correctly, created the folder/set permissions/ect..
Uploaded the product file via manage products, set correct settings via VBoptions->imagehosting, set it up so Admins/Mods/ect can upload images.

Everything is perfect, except..

There's no "imagehosting" hyperlink" on my menu bar.. There's no place to actually go and upload anything (although, there could be, but it's not showing up anywhere)

No one would no I even had the hack in place..

Any ideas on this?
I re-upped everything twice to make sure it wasnt on my end.

If I manually type in my url with the image_host.php extension, it works. Ha.
I suppose I'm going to have to somehow add it in somewhere (which I'm not exactly sure how to add to the menu bar)
Any help would be appreciated.

Cheers, Jake

yes you have to add the code in your nav bar template

Please read the Install.txt file for instruction

Ranma2k
01-03-2006, 05:38 AM
If somone can list all the problems with the script and i'll try to fix it for everyone

ForYou
01-03-2006, 07:31 AM
Hello ,

why i got the blank page when i install the image host on vb 3.5.2 ,

Regards

Ranma2k
01-03-2006, 10:31 AM
Hello ,

why i got the blank page when i install the image host on vb 3.5.2 ,

Regards

can you tell me more about your problem ..
what url or when do you get the white page ?

ForYou
01-03-2006, 03:51 PM
Hello ,

the blank page appeare for me when i click

http://www.dardasha.net/montada/image_host.php?do=images

and here

http://www.dardasha.net/montada/image_host.php?do=uploader

but when i click here it's open easy

http://www.dardasha.net/montada/img_view_all.php?do=users

please help if you can !!

REgards

Ranma2k
01-04-2006, 07:14 AM
Hello ,

the blank page appeare for me when i click

http://www.dardasha.net/montada/image_host.php?do=images

and here

http://www.dardasha.net/montada/image_host.php?do=uploader

but when i click here it's open easy

http://www.dardasha.net/montada/img_view_all.php?do=users

please help if you can !!

REgards

make sure you have the following templates
imghost_view and imghost_upload


PS: long time no see Mobde3 :) guess who am i :) ?

ForYou
01-04-2006, 01:20 PM
:) ,

Sir Ranma ,

When i see your name , I was remeber member from years , I hope you are that member Ranma , do you remeber dardasha :) !!

any way , about my qustion ,

can you put me the temp , because i was see the temp correct ,

Regards

ForYou
01-04-2006, 01:30 PM
Hello ,

I have attmempted, for an hour, to figure this problem out but I cannot. It seems that I am not sure what the image_host.php script requires and I cannot figure out why it is blank.

What I do know is that when you attempt to call that URL it gives an error that is not seen on the screen:

# telnet 209.10.75.97 80
Trying 209.10.75.97...
Connected to 209.160.75.97.
Escape character is '^]'.
GET http://www.dardasha.net/montada/image_host.php?do=uploader
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://www.dardasha.net/montada/image_host.php?do=uploader">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.34 Server at www.dardasha.net Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

This could be coming from the montada/includes/functions.php script but I don't know why its happening

please help

Ranma2k
01-04-2006, 05:10 PM
Hello ,

I have attmempted, for an hour, to figure this problem out but I cannot. It seems that I am not sure what the image_host.php script requires and I cannot figure out why it is blank.

What I do know is that when you attempt to call that URL it gives an error that is not seen on the screen:

# telnet 209.10.75.97 80
Trying 209.10.75.97...
Connected to 209.160.75.97.
Escape character is '^]'.
GET http://www.dardasha.net/montada/image_host.php?do=uploader
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>301 Moved Permanently</TITLE>
</HEAD><BODY>
<H1>Moved Permanently</H1>
The document has moved <A HREF="http://www.dardasha.net/montada/image_host.php?do=uploader">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.34 Server at www.dardasha.net Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

This could be coming from the montada/includes/functions.php script but I don't know why its happening

please help

Yes mobd3 it's me
Did you check the templates
Cuz it appears that you site is not even generating the HTML code from the templates


if you need me to help you with the secript i can E-mail me and i'll fix it for you


enjoy

StarGame
01-04-2006, 05:29 PM
I KEEP GETTING THIS:
Warning: getimagesize(/home/username/public_html/images/Under-The-Bridge-750.jpg): failed to open stream: No such file or directory in /image_host.php on line 115
unable to get image size

What can be done???

Ranma2k
01-04-2006, 09:33 PM
Now my forums are down.. this script is FULL OF BUGS.. Thanks alot..
And thats it for the forums, coz of you i am shutting them down, to much bloody hassle. what a waste of ?90 & 7 months and 1000+ users.

o.O that's really strange

well i'm thinking of creating another one in fact i did start on one :)
will have it ready within a week or two

MissKalunji
01-04-2006, 10:33 PM
Now my forums are down.. this script is FULL OF BUGS.. Thanks alot..
And thats it for the forums, coz of you i am shutting them down, to much bloody hassle. what a waste of ?90 & 7 months and 1000+ users.

cause of who?

take it easy man...ONE mod cant mess up your forum......explain or pm me i'll help you the best i can

iTaLiAnBoY165
01-05-2006, 12:26 AM
can some one help me .i am getthing the mesaage error

Warning: getimagesize(/home2/diablo86/public_html/forums/uploads/images/AVATARDIABLO.jpg): failed to open stream: No such file or directory in /image_host.php on line 115

bkaul
01-05-2006, 01:06 AM
I'm getting the same error. From my IIS log, it looks like it's trying to get a file called function.getimagesize ...
Warning: getimagesize(/hosted/images/screenie2-upload.jpg) [function.getimagesize (http://boards.briankaul.com/boards/function.getimagesize)]: failed to open stream: No such file or directory in \image_host.php on line 115
unable to get image size
2006-01-05 03:00:29 192.168.1.1 POST /boards/image_host.php do=upload 80 - 192.168.1.254 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.8)+Gecko/20051111+Firefox/1.5 200 0 0
2006-01-05 03:00:39 192.168.1.1 GET /boards/function.getimagesize - 80 - 192.168.1.254 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.8)+Gecko/20051111+Firefox/1.5 404 0 2
I'm using IIS 6 on Windows 2003, with PHP 5.0.5 and MySQL 4.1.13-nt. Any ideas?

bkaul
01-05-2006, 01:10 AM
Ah, figured it out - have to use a Windows style path in the vBulletin setting when running on a Windows server - it's a file path, not a web path:
/hosted/images -> x:\Inetpub\wwwroot\hosted\images
Works fine now.

bkaul
01-05-2006, 01:14 AM
A possible useful enhancement would be to do a thumbnail gallery when allowing large images to be uploaded, rather than displaying them all full-sized. Nice extension even as is though :)

iTaLiAnBoY165
01-05-2006, 02:06 AM
so whould be the best option ???
to solve this problem.!!

StarGame
01-05-2006, 07:43 AM
I have finaly fixed the forums WOOOOOOOOOOOOOOOOOOOOOOO!!! sorry i got stressed i have not gone to bed in a long time LOL :) but i will not be using this script.. its has to many bugs in it to have on the new versions.

VBUsers
01-05-2006, 08:53 AM
i dont see the fix for this but i cant change the file size allowed from 0 and also my Allowed to upload doesnt change when i set a different amount. can anyone help me with these errors?

Uploading Rules:
- Max filesize: 0 KB
- Allowed extension(s): .gif, .jpg, .png, .bmp
- Max width: 500
- Max Height: 500
- No whitespace in filename.
- Allowed to upload : 100 images
- Images you have uploaded: 0 images

ForYou
01-05-2006, 09:06 AM
Hello Ranma ,

Please if you can help me don't leat , please ,

Regards

VBUsers
01-06-2006, 07:09 AM
i dont see the fix for this but i cant change the file size allowed from 0 and also my Allowed to upload doesnt change when i set a different amount. can anyone help me with these errors?


Uploading Rules:
- Max filesize: 0 KB
- Allowed extension(s): .gif, .jpg, .png, .bmp
- Max width: 500
- Max Height: 500
- No whitespace in filename.
- Allowed to upload : 100 images
- Images you have uploaded: 0 images


anybody?? please help thanks

cartooner
01-07-2006, 02:41 AM
o.O that's really strange

well i'm thinking of creating another one in fact i did start on one :)
will have it ready within a week or two


Ranma, I was thinking about installing ImageHost, but if you on have one in a week or two maybe it'd be better to wait.???

2 questions, when I go to install a hack like this, do I need to shut down Forum??

And could you explain a bit what the bitfield.rebuild.php file goes, and if that's installed to?? I'm a bit new to all this. But I did do my first upgrade last night and went good.

HBC
01-07-2006, 09:15 PM
i wish the bugs would get sorted, running vb3.5.3

i really need something like this, /me is afraid to install :disappointed:

MissKalunji
01-07-2006, 11:05 PM
i wish the bugs would get sorted, running vb3.5.3

i really need something like this, /me is afraid to install :disappointed:

get vbgallery wich does the same and much more

* MissKalunji clicks uninstall

VBUsers
01-08-2006, 06:50 AM
yea i cant upload anything cause im in a different usergroup than the standard admin ID and no one seems to know how to fix my issue above. i might have to uninstall as well. sucks its a great hack

Daniel
01-10-2006, 09:20 PM
When I uninstalled this hack, I get the following error message when I try to update usergroup permissions:

Database error in vBulletin 3.5.3:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '<span style=\"color: green;\"><b>',
`closetag` = '</span></b>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '1048575',
`attachlimit` = '0',
`pmquota` = '65535',
`pmpermissions` = '3',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions` = '205520831',
`genericoptions` = '23',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '120',
`avatarmaxheight` = '100',
`avatarmaxsize` = '20000',
`vbugpermissions` = '7',
`vbspacecomments` = '31',
`imghost` = '0',
`imghostset` = '',
`imghost_width` = '',
`imghost_height` = '',
`imghost_files` = '',
`supportpermissions` = '0'
WHERE usergroupid=6;

MySQL Error : Unknown column 'imghost' in 'field list'
Error Number : 1054
Date : Tuesday, January 10th 2006 @ 11:19:21 PM
Script : http://www.jabbatown.com/forum/admincp/usergroup.php
Referrer : http://www.jabbatown.com/forum/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : 4.36.246.248
Username : Homerun
Classname : vb_database

VBUsers
01-10-2006, 09:26 PM
yea i cant upload anything cause im in a different usergroup than the standard admin ID and no one seems to know how to fix my issue above. i might have to uninstall as well. sucks its a great hack


bump does any one have a fix for this????

also when your in the image_host.php?do=uploader page it doesnt let me choose the drop down. why? can you guys help

HBC
01-10-2006, 11:29 PM
someone needs to step up and help.. this is an awesome hack..

just very buggy.. so many coders here and nothing but posts
+++++ing and whining about it not working..
(no offense, you need to keep submitting bug reports)

why does this have to be a one person effort?

vbulletin needs something like this.. its a fact.

the vbattachment system sucks.. built in hosting should have
been included long ago as an option..

cant someone step up and lets get this thing done already..

people use free image hosts and their accounts get kicked, they delete the pics
and you are left with a bunch of red x's..

SparKeh
01-19-2006, 05:46 PM
I have to agree vbattachments do suck and this is a great hack! well done!

I do have a few notes to make though. I have noticed when using Internet Explorer and clicking Upload Image or View My Images etc. it stretches my forums page wayyyy out. It does not do this with Firefox. I will attach images.

I am using a 22" monitor in 1280x1024 res so I wouldn't expect the page to be stretched.

I also noticed that if an image is uploaded with the same filename that someone has already used then it is not allowed (I know this has already been mentioned). I thought it would be a good idea when uploading the image that it encodes a random filename somehow. I'm a coder I don't know all this but I'm suggesting if I upload mypic.jpg that it generates s98d90sdnms7d8.jpg or something. Whats the chances of it being duplicate then?

I noticed that copy to clipboard works in Internet Explorer but does not work in Firefox. So you manually have to copy and paste the link if you use Firefox.

Cheers

Ranma2k
01-20-2006, 02:33 PM
well I'm almost done with the one i make
just a few minor adjustment probably will have it ready by Monday

SparKeh
01-23-2006, 03:41 PM
hrm for some reason it is saying 13 users are hosting files (and I can see the files in ftp) but it only shows 5 users when I click view all images.. any ideas?

ForYou
01-23-2006, 04:20 PM
ranma,

for now my problem still ,

pleas help

Ranma2k
01-23-2006, 05:15 PM
ranma,

for now my problem still ,

pleas help

it's almost done i'm going to release it today

rantrave
01-26-2006, 04:23 PM
Still no word on the "0" file size......? In the image_host.php, you have an <if> condition that checks for file size, which you've set at 1024.....is this right? Here's what I'm seeing:

//Do the file already Exist?
if (file_exists("$dir/".$host_filename)) {
eval(standard_error(fetch_error('imghost_exists')) );
}
//Is it a vaild extension
if (!in_array($host_file_ext,$ext)) {
eval(standard_error(fetch_error('imghost_badtype') ));
}
//Check Filesize
if (($host_filesize/1024) > $img_filesize) {
eval(standard_error(fetch_error('imghost_toobig')) );
}
//check for whitespacers
if (strrchr($host_filename,' ')) {
eval(standard_error(fetch_error('imghost_whitespac e')));
}

kpr
01-31-2006, 06:54 PM
Nice mod thanks for sharing.

Shouzen
09-18-2006, 01:29 AM
is this compatible with 3.6.1?

jat1801
12-04-2007, 12:11 PM
alejandro, you do not have permission to access this page. This could be due to one of several reasons:

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?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
how do i fix it im a admin and im activated

cdowns
03-19-2008, 01:26 AM
Hi There i am getting this error when uploading

Warning: getimagesize(/home/mastiffb/public_html/forum/images/Sunset.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /image_host.php on line 115
unable to get image size

Can anyone help