vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=106127)

fishhub 11-21-2006 05:33 PM

Quote:

Originally Posted by Ranma2k (Post 1080066)
That's becasue you Set the path incorrectly in the vbimghost option

leenster, please refer to ranma2k's above quote. It was this clue, which led me to fix it up.:)

fishhub 11-21-2006 05:36 PM

ok, after much trial and error, i found out the following not working :

-private message postbit legacy do not have link to My Photos and just below the smilies , do not have the link to open photos.

any kind sould able to advice?

TIA

leenster 11-24-2006 02:34 AM

thanx brother..... its fixed.....

leenster 11-24-2006 02:34 AM

Quote:

Originally Posted by fishhub (Post 1122372)
ok, after much trial and error, i found out the following not working :

-private message postbit legacy do not have link to My Photos and just below the smilies , do not have the link to open photos.

any kind sould able to advice?

TIA

smilies in the postbit? do u have a screen shot?

rolandogomez 11-30-2006 05:47 AM

Any updates on my original requests? Post #726. Thanks, rg.

Darat 11-30-2006 08:15 AM

Quote:

Originally Posted by fishhub (Post 1122372)
ok, after much trial and error, i found out the following not working :

-private message postbit legacy do not have link to My Photos and just below the smilies , do not have the link to open photos.

any kind sould able to advice?

TIA


I had this problem - I edited the editor_smiliebox template:

Code:

<fieldset id="vbimghostbox" title="$vbphrase[vbimghost_title]">
<legend>$vbphrase[vbimghost_myphotos]</legend>
<table cellpadding="4" cellspacing="0" border="0" align="center">
<tr>
<td class="smallfont" colspan="$vboptions[smcolumns]">
[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed=$editorid','vbimghost1','scrollbars=yes,resizable=yes,width=550,height=500'); return false" title="Pick">Pick</a>]&nbsp;[<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed=$editorid','vbimghost2','scrollbars=yes,resizable=yes,width=562,height=97'); return false" title="Upload">$vbphrase[vbimghost_quickup]</a>]</td>
</tr>
</table>
</fieldset>


FusionHosting 12-05-2006 12:31 AM

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.

FusionHosting 12-05-2006 12:46 AM

I believe I fixed the problem myself. I'm by no means a pro coder, but I did a search and discovered 2 of the functions you used in your 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 for this particular image.

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.

mmackinnon 12-05-2006 09:41 PM

Hmm

Is there no way for ppl to add comments to posts? I get this request daily.

mshmeeting 12-06-2006 11:02 AM

install very good


All times are GMT. The time now is 10:08 AM.

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.01830 seconds
  • Memory Usage 1,751KB
  • 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
  • (3)bbcode_code_printable
  • (3)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