vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=123481)

blogtorank 11-17-2006 10:49 PM

Perfect add-on!!! *Installed* Thanks for an outstanding add-on!!!

alawee.blawee 11-19-2006 06:28 AM

Quote:

Originally Posted by Jchen (Post 1115861)
i'm still getting a blank page whenever i try to upload.... anyone know why? My site is www.utexas-forums.com/forums



Man Did you put watermark?

i think it is the problem coz when i put it the blank page appears but when i don't it doesn't



regards

fishhub 11-19-2006 03:38 PM

Quote:

Originally Posted by tim99 (Post 1118119)
This has to do with file/directory permissions. chmod is the command to change them, 777 indicates that the dir/file in question is read/write/execute for everyone and everything.

How you go about doing this specifically depends on your host/tools. If your host uses cpanel you can use the file manager or even easier nowadays you can use many ftp programs.

Although this is a simple safe change overall file permissions (who can read/write/execute what) are instrumental to site security so in general you should not be mucking around with them if you don't understand. Beyond something simple like this get real life assistance.

peace . . .


http://www.perlfect.com/articles/chmod.shtml


Thanks tim99, ill hv to read them up.

Sparky_s 11-20-2006 12:19 AM

I'm getting the blank white page when uploading jpegs with and without any watermarks.

I edited the max res allowed and resize and still the problem happens.

I just have a feeling that any photo that has info attached to it gets the white page.

Anyone have any resolve on this issue?

Edit:

I think any image above 2000x(whatever) gives me the white page. Any image below 2000 gets uploaded perfectly.
So could it be a GD issue?

soletrader 11-21-2006 12:45 PM

I absolutely love this hack! Grea job! Works perfectly on my 3.6.0. Is there anyway to make the pictures public by default instead of private? Thanks

fly 11-21-2006 12:54 PM

Quote:

Originally Posted by soletrader (Post 1122233)
I absolutely love this hack! Grea job! Works perfectly on my 3.6.0. Is there anyway to make the pictures public by default instead of private? Thanks

Yep, check your admincp

dellow 11-22-2006 03:59 AM

I just installed the hack , but not edit the templates , i was going to test it only , then after 24 hours i find that someone uploaded a php shell file named update.php. i delete this file and change the perm to 755 , the question is how this guy upload this file ?

PondPikey 11-22-2006 10:50 AM

Welll Im still unable to generate thumb nails. The only thing I can think of thats different to any other installation is that I installed my forums to the root of the domain instead of forums directory.

Please can someone help or im going to have to uninstall this previoulsy brilliant hack.

fly 11-22-2006 11:44 AM

Quote:

Originally Posted by dellow (Post 1122741)
I just installed the hack , but not edit the templates , i was going to test it only , then after 24 hours i find that someone uploaded a php shell file named update.php. i delete this file and change the perm to 755 , the question is how this guy upload this file ?

Are you suggesting that the file was uploaded via the image host? Its been a while since I looked at it, but I think PHP files are blocked.

dellow 11-22-2006 12:12 PM

Quote:

Originally Posted by flypaper (Post 1122888)
Are you suggesting that the file was uploaded via the image host? Its been a while since I looked at it, but I think PHP files are blocked.


the hack installed for 24 hours only , and the php shell file was named update.php . i am posting here to ask is this related for this hack or not , actualy i am not devilper .

fb-guy 11-22-2006 03:28 PM

This is exactly what we are looking for. A growing # of our users are starting to post photos in Photobucket, et al, and folks are getting lost jumping off our forum, then back again.

Are there any sites out there using VM Image Hosting that I can look at for good configuration ideas?

Thanks.
FB

Dr-net 11-25-2006 04:06 AM

I am upgrading to 3.6.4 and this error showed up while click (upload an image)

Fatal error: Unknown function: print_cp_header() in /home/xxxxx/public_html/vb/vbimghost.php on line 39

Dr-net 11-28-2006 03:41 AM

HELO WHY NOBODY ANSWER :tired:

Hornstar 11-28-2006 06:51 AM

got this database error today for the first time, it only has happened once so far, it happened from something a member must have done.

Code:

Database error in vBulletin 3.6.4:

Invalid SQL:

                              SELECT usergroupid FROM vb3_icon AS icon
                              INNER JOIN vb3_imagecategorypermission USING (imagecategoryid)
                              WHERE icon.iconid = 14
                                      AND usergroupid IN ();

MySQL Error  : 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 ')' at line 4
Error Number : 1064

Any idea what caused this?

Forcemaster 11-29-2006 12:52 PM

i keep getting this error when trying to rebuild thumbnails
Code:

Warning: getimagesize(/home/user/public_html/forum/imagehosting/1456d9c4a5ebe4.gif) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forum/imagehosting/1456d9cdeb6be4.gif) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forum/imagehosting/1456d9cdeb8f0a.bmp) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forum/imagehosting/1456d9cdeba67a.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forum/imagehosting/1456d9cdeea422.bmp) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

Warning: getimagesize(/home/user/public_html/forum/imagehosting/1456d9cdeebb6a.bmp) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 279

i also keep getting this error when uploading images!
Code:

Warning: imagecreatefromjpeg(/home/user/public_html/forum/imagehosting/1456d9cdeba67a.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

PLEASE HELP XD

tschai 11-30-2006 07:08 AM

Just Wanted to say this Add-on truely kicks-ass and it’s working like a charm…locally, but I’m sure it will also on my ‘Live’-site.
Although I’m running into some watermark-error’s I’m sure I can solve them myself…I hope.

Great work…thanx again.

encryption 11-30-2006 03:18 PM

I too am getting the exact same errors..... running vb version 3.6.4

Quote:

Originally Posted by Forcemaster (Post 1128055)
Code:

Warning: imagecreatefromjpeg(/home/user/public_html/forum/imagehosting/1456d9cdeba67a.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



Ranma2k 11-30-2006 06:27 PM

People Please please please
Read the Installation file

Modify your Vbimghost Options

Set that path to your forums correctly in the vbimghost options

That's why you getting the error "supplied argument is not a valid " !!

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 ..

encryption 11-30-2006 06:47 PM

umm the path is right.... thats why the images load and are saved correctly, however the error I posted above appears for a few seconds after the image is uploaded and then goes away.

Quote:

Originally Posted by Ranma2k (Post 1128874)
People Please please please
Read the Installation file

Modify your Vbimghost Options

Set that path to your forums correctly in the vbimghost options

That's why you getting the error "supplied argument is not a valid " !!

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 ..


Ranma2k 12-01-2006 07:30 AM

Are you sure that this is your forum path :
Code:

/home/user/public_html/forum
that is the default one i set in the script .. You need to change it ..

Jchen 12-02-2006 03:46 AM

Quote:

Originally Posted by Ranma2k (Post 1129254)
Are you sure that this is your forum path :
Code:

/home/user/public_html/forum
that is the default one i set in the script .. You need to change it ..

Ramma can you help me fix my problem? I pmed you my msn information.

PossumX 12-02-2006 09:26 PM

First off, GREAT MOD !!

Is there any way (or mod out there) to view the images in a gallery format, showing multiple images from multiple users?

Just curious...

Hornstar 12-04-2006 03:26 AM

I'm pretty sure this database error is caused from this mod. please let me know if it is.

Code:

Database error in vBulletin 3.6.4:

Invalid SQL:

                              SELECT usergroupid FROM vb3_icon AS icon
                              INNER JOIN vb3_imagecategorypermission USING (imagecategoryid)
                              WHERE icon.iconid = 10
                                      AND usergroupid IN ();

MySQL Error  : 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 ')' at line 4
Error Number : 1064
Date        : Sunday, December 3rd 2006 @ 09:52:31 PM


This user is using this exploit to cause database errors on my site and crash and destroy my database.

If it is not this mod, does anyone have a clue what mod this may be from? I am fairly sure it is this one.

Vbulletin said there is a spelling mistake in my php caused from a mod that caused the database error.

Thanks.

Ranma2k 12-04-2006 01:47 PM

Quote:

Originally Posted by hornstar1337 (Post 1131380)
I'm pretty sure this database error is caused from this mod. please let me know if it is.

Code:

Database error in vBulletin 3.6.4:

Invalid SQL:

                              SELECT usergroupid FROM vb3_icon AS icon
                              INNER JOIN vb3_imagecategorypermission USING (imagecategoryid)
                              WHERE icon.iconid = 10
                                      AND usergroupid IN ();

MySQL Error  : 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 ')' at line 4
Error Number : 1064
Date        : Sunday, December 3rd 2006 @ 09:52:31 PM


This user is using this exploit to cause database errors on my site and crash and destroy my database.

If it is not this mod, does anyone have a clue what mod this may be from? I am fairly sure it is this one.

Vbulletin said there is a spelling mistake in my php caused from a mod that caused the database error.

Thanks.

no it's not from my mod

that is using icon or image catagory ..

i don't have both at all it's another mod

Ranma2k 12-04-2006 01:48 PM

Quote:

Originally Posted by Jchen (Post 1129801)
Ramma can you help me fix my problem? I pmed you my msn information.

replied

Dr-net 12-05-2006 03:37 AM

Helo Ranma2k

Quote:

Originally Posted by Dr-net (Post 1124623)
I am upgrading to 3.6.4 and this error showed up while click (upload an image)

Fatal error: Unknown function: print_cp_header() in /home/xxxxx/public_html/vb/vbimghost.php on line 39

any clue :)

tschai 12-05-2006 07:12 AM

I'm using this already locally and I've got 1 simple question...

I want to show the 'My Photos(1)' bit at the postbit(legacy) only if there are any photos at all.
Anyone any idea how exactly I can modify the code, to achieve this

It's probably something like this, but I dont know what and how the if-statement should be constructed:

<if "$post[vbimghost] > 0">
show myphotos text
</if>

Anyone any ideas?
Thanks in advance...

Adam21 12-05-2006 12:09 PM

Quote:

Originally Posted by Renes4 (Post 1132257)
I'm using this already locally and I've got 1 simple question...

I want to show the 'My Photos(1)' bit at the postbit(legacy) only if there are any photos at all.
Anyone any idea how exactly I can modify the code, to achieve this

It's probably something like this, but I dont know what and how the if-statement should be constructed:

<if "$post[vbimghost] > 0">
show myphotos text
</if>

Anyone any ideas?
Thanks in advance...

In your postbit at the place you wish
Code:

<div>
$vbphrase[vbimghost_myphotos]: (<a href="vbimghost.php?do=viewimages&id=$post[userid]">$post[vbimghost]</a>)
</div>


encryption 12-05-2006 12:12 PM

is there anyway to show the most recent X photos on the forum index ?

Ranma2k 12-05-2006 05:28 PM

Quote:

Originally Posted by Dr-net (Post 1132190)
Helo Ranma2k



any clue :)

ah that because you put the vbimghost.php that in the admincp directory in the forum directory

make sure you upload the files in the correct way it's in the folders

Ranma2k 12-05-2006 05:29 PM

Quote:

Originally Posted by encryption (Post 1132368)
is there anyway to show the most recent X photos on the forum index ?

yes it can be done ..

tschai 12-06-2006 06:21 AM

Quote:

Originally Posted by Adam21 (Post 1132366)
In your postbit at the place you wish
Code:

<div>
$vbphrase[vbimghost_myphotos]: (<a href="vbimghost.php?do=viewimages&id=$post[userid]">$post[vbimghost]</a>)
</div>


Hi Adam21,

Thanks for trying to help me out.

The code you've provided is already available as an extra with this Add-on and it works just fine.
However it also shows the text 'My photo: (0)' when a user doesn't got any (public) photos at all!
I know my user and they wil complain and they would be right since this does not add anything at all, if you don't publish the photo's.

So, the issue is:
I want this specific text/code only shown/executed when this variabel ($post[vbimghost]) is actually more then zero!
I'm just having troubles writing a decent <if>-statement with this variable...consider me a semi-noob

Thanks so far...

--edit--
Nevermind: <if condition="$post[vbimghost] > 0 "> did the trick....thanks...

PS: maybe this should be default in the add-on.. :)

beano33 12-07-2006 01:33 AM

Quote:

Originally Posted by fxs158 (Post 1098614)
Great Hack! How do I change the color of the box under statistics when we click upload images.


I have a black box and you cannot see the information as I imagine the font used for the info is black also.


Same problem here. I searched through the thread and couldn't find a fix.

Ranma2k 12-07-2006 01:39 PM

just change it from the template..

PondPikey 12-08-2006 11:56 AM

Warning: getimagesize(/home/user/public_html/carpy/imagehosting/144d4e506cf85d.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 278

Im still unable to rebuild thumbnails, Checked and double checked installation and settings. I will probably uninstall until theres better support.

Quote:

Originally Posted by encryption (Post 1132368)
is there anyway to show the most recent X photos on the forum index ?

Id be interested in this setting.

TTG 12-08-2006 12:50 PM

Great addition .. clicked install .. works well on 3.6.4

Phooey 12-08-2006 05:42 PM

Great hack! I just installed it and it's working great so far. I really love the watermark feature.

*clicks install*

FusionHosting 12-08-2006 06:04 PM

Just realized I posted a bug fix in the old 3.5.x thread, meant to post it here.

Seems to be a bug with this addon and particular .gif files when you have the 'thumbnail' option set to yes.

One of my users have been trying to upload their signature file but it keeps timing out in PHP. I am using the latest build in GD version 2.0.28. Latest version of VB.

The problem code seems to be:

Code:

switch ($imageExt){
                        case (".gif"):
                                        $srcImg = imagecreatefromgif("$imageDirectory/$imageName");
                                        $colortrans = imagecolortransparent($srcImg);
                                        $thumbImg = imagecreate($width, $height);
                                        imagepalettecopy($thumbImg,$srcImg);
                                        imagefill($thumbImg,0,0,$colortrans);
                                        imagecolortransparent($thumbImg,$colortrans);
                                        imagecopyresized($thumbImg,$srcImg,0,0,0,0,$width,$height,$imageWidth,$imageHeight);
                                        imagegif($thumbImg,"$thumbDirectory/$thumbName");

This doesn't happen with all .gifs, just this particular one at the time. Its a 330x120 pixels gif thats 17kb in size.

I've been able to upload smaller and larger gifs though.

The Fix:

I did a search and discovered 2 of the functions you used in the code were older ones meant for the original GD library.

I changed 2 lines to refer to the GD2 libraries and now the .gif thumbnailing is working correctly.
Here's the updated code:


Code:

switch ($imageExt){
                        case (".gif"):
                                        $srcImg = imagecreatefromgif("$imageDirectory/$imageName");
                                        $colortrans = imagecolortransparent($srcImg);
                                        $thumbImg = imagecreatetruecolor($width, $height);
                                        imagepalettecopy($thumbImg,$srcImg);
                                        imagefill($thumbImg,0,0,$colortrans);
                                        imagecolortransparent($thumbImg,$colortrans);
                                        imagecopyresampled($thumbImg,$srcImg,0,0,0,0,$width,$height,$imageWidth,$imageHeight);
                                        imagegif($thumbImg,"$thumbDirectory/$thumbName");
                                break;

imagecreatetruecolor, and imagecopyresampled were the two functions I swapped in.

Hope this helps anyone else with this issue.

PondPikey 12-10-2006 06:18 PM

Can someone tell me how to put the latest uploads (thumbnails) on forumhome?

PM's would be great if possible.

StarBuG 12-10-2006 08:07 PM

Hi

Thank you for this cool hack.
I have not read the full thread so I don't know if this was reported yet.

I think the add-ons should come with a permission if statement.
If a user is not allowed to upload images and clicks on "quick upload" he only gets the warning text about public images.
I think he should not see the whole quick upload thing at all.

I have tried "<if condition="$canupload">" but it does not work

Does anyone has an idea?


All times are GMT. The time now is 05:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02073 seconds
  • Memory Usage 1,873KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete