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)

upsetter 08-22-2006 09:17 PM

Quote:

Originally Posted by c0rupted
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 08-23-2006 11:38 AM

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 08-23-2006 03:13 PM

Quote:

Originally Posted by upsetter
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 08-23-2006 03:15 PM

Quote:

Originally Posted by ForYou
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 08-24-2006 01:29 PM

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?

Quote:

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:

Code:

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

Line 189:

Code:

                  $text_color = imagecolorallocate($img2, $red, $green, $blue);
Line 195-196:

Code:

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

Line 201:

Code:

                  imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);
Line 209-210:

Code:

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


Ranma2k 08-24-2006 01:37 PM

Quote:

Originally Posted by y2krazy
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:

Code:

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

Line 189:

Code:

                  $text_color = imagecolorallocate($img2, $red, $green, $blue);
Line 195-196:

Code:

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

Line 201:

Code:

                  imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);
Line 209-210:

Code:

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


that's because your PATH are wrong ...

MAKE SSURE YOU SET THE PATH CORRECTLY !!

y2krazy 08-24-2006 02:23 PM

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 08-24-2006 02:58 PM

Quote:

Originally Posted by y2krazy
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 08-24-2006 03:14 PM

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:

Code:

$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 08-24-2006 03:30 PM

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


All times are GMT. The time now is 06:02 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.02382 seconds
  • Memory Usage 1,765KB
  • 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
  • (11)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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