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)

Ranma2k 02-08-2006 09:02 AM

Quote:

Originally Posted by The Chief
any ideas when the next version will be released ranma?

sorry it takes me more time
but i'm really buys with the project at work and i work on it when i have free time ..
i'll try to make some time for it.

Ranma2k 02-08-2006 09:03 AM

Quote:

Originally Posted by Griffin80
One bug i get is that when i delete a image i get a white screen, but apart from that great hack ;)

A good feature to see, would be stats in the statistics box at the bottom of your forums saying how many images we have hosted :D

when you delete the pic it should use the forum redirect page to redirect you back to your images.

Ranma2k 02-08-2006 09:05 AM

Quote:

Originally Posted by Kuimera
Hey I was having the same problem, but I figured a way to remove the arrow..
Use this code in the HEADER template:

Code:

<td width="65" height="25" align="left" valign="top" id="vbimghost"><a href="#vbimghost"><img src="$stylevar[imgdir_misc]/q_links.gif" alt="" width="65" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("vbimghost" ,1); </script></td>
Now I have an issue, on the "Upload an image" template, the box "Statics" background is all in black, is there a way of changing this to white or to use my template background?

it's using the site template.
i'm using the defult alt1 and alt2 css for it
can you post the template for the static page

M1th 02-08-2006 11:58 AM

A bug with the INSERT query. When an image file contains a " ' " character, it results in a query execution error. To fix this find:

PHP Code:

            $sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` ) 
            VALUES ('', '"
.$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')"

replace with

PHP Code:

            $sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` ) 
            VALUES ('', '"
.$userid."', '".$imguname."', '"str_replace("'","",$upfilename)."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')"

Notice that I've wrapped the str_replace() function around $upfilename to strip out any 's from the file name before inserting it into database.

Sean James 02-08-2006 09:26 PM

Quote:

Originally Posted by Ranma2k
when you delete the pic it should use the forum redirect page to redirect you back to your images.

Nope not working on mine

heeeh 02-11-2006 03:23 PM

thanks!

Ranma2k 02-11-2006 07:42 PM

Quote:

Originally Posted by M1th
A bug with the INSERT query. When an image file contains a " ' " character, it results in a query execution error. To fix this find:

PHP Code:

            $sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` ) 
            VALUES ('', '"
.$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')"

replace with

PHP Code:

            $sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` ) 
            VALUES ('', '"
.$userid."', '".$imguname."', '"str_replace("'","",$upfilename)."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')"

Notice that I've wrapped the str_replace() function around $upfilename to strip out any 's from the file name before inserting it into database.

Thanks for pointing it up
i'll fix it in the next update ..

the next release will be ready by next week ..

Ranma2k 02-11-2006 07:44 PM

Quote:

Originally Posted by Griffin80
Nope not working on mine

are you sure that you are using the latest file ..
can you give PM me access to the site to see what's the problem .. ?!

Kmaster 02-17-2006 01:55 PM

Quote:

Originally Posted by Ranma2k
Thanks for pointing it up
i'll fix it in the next update ..

the next release will be ready by next week ..

when next update is out? will wait you it.

ryuji 02-25-2006 02:30 AM

i did some tweaks... first of all people who are given 'canadmin' privalages see both private and non private images

second half was a bug fix... now you can have uppercase file extensions and a lower case list and it wont deny the upload

i also changed that line that fixes the sql error as said above

sharing for anyone with similar needs


All times are GMT. The time now is 12:50 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.01693 seconds
  • Memory Usage 1,762KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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