vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   New BB tag to do image thumbnails... (https://vborg.vbsupport.ru/showthread.php?t=50882)

Zzed 04-11-2003 10:04 PM

This seems to be a common problem with certain hosts. This happens when getimagesize() is not able to obtain the length and the width of the picture as it is trying to calculate how to resize the image.

I have been asked by several people to come up with a workaround for this. :( I am going to do some research and see if there are any alternatives....

Katman 04-13-2003 04:22 PM

Is there any way to have this hack not affect linked images in member signatures? My members are revolting! RIght now this hack is resizing all images in a post including those in their signatures.

Zzed 04-13-2003 06:05 PM

One thing you can do to allow yourboard to have images that are not affected by this hack is to go to function bbcodeparse2() and see where the implementation for the IMG tag is and replace the word IMG with IMG2.

Blindchild02 04-15-2003 03:44 AM

zzed... have u fixed my problem? :(

monstergamer 05-29-2003 07:25 AM

this is one of the best hacks i have installed*
dont laught at me lol

monstergamer 05-30-2003 07:54 PM

edit** i got it working lol **edit

SVTBlackLight01 05-31-2003 06:57 PM

I installed this and tried it on a few images. The problem was that it was only working randomly on some images.

How do you adjust the resizing limits. Do they have to be the same ratio as 80x60? I had mine set at 350x350.

I would really like to be able to use this one. :classic:

ghroob 06-01-2003 08:33 AM

thank you Zzed for this nice hack
but I need to change [thumb] with [ img ]
Can you help me Zzed?

Best regards

Splitfyre 06-03-2003 09:15 PM

Some of users have the following enabled:

http://www.futurelooksforums.com/for...p?postid=63893

Is there any way to include the [thumb] tag as well so images encased in the [thumb] tag just show a URL, if they have the option turned on?

wolfgang2 07-04-2003 09:56 AM

works great on vB 2.3.0

Thank You for this excellent Hack!!!!

wolfgang2 07-04-2003 10:16 AM

no problems anymore :D

fiendnutz 07-13-2003 07:16 PM

is there anyway to make this work with attached images that were uploaded through a post made by someone. They use an img src tag rather than a {img} tag.

Tweak589 11-06-2003 05:35 AM

This works great!

Except I run into a very terrible issue with the code I think....

Zzed, if you can help possibly, please do so. I am all set with your code, and used your recomendation from this post:

https://vborg.vbsupport.ru/showthrea...ight=%5Bimg%5D

To use that line of code that will have [IMG] tags changed to [THUMB] tags. So I edited the functions.php perfectly fine, and everything works perfect.

The max estimated image size I can use for the forum dimensions is 540 x 405. Any image Higher than 540 will automatically resize to 540, no problems. But for things like signatures.... and small icons, I will always get a big thick black border around the small image. I even made the setting in your code of border="3" set to "0". So what could be the problem?

Is it looking at any image w/ [IMG] tags around it and trying to do this little equation or what?

All I am asking is for a fix that takes away those borders even though border="0" is on... Please Help!

-Tweak

ChrisSy 11-09-2003 08:18 PM

Quote:

Originally Posted by fiendnutz
is there anyway to make this work with attached images that were uploaded through a post made by someone. They use an img src tag rather than a {img} tag.

BUMP - also wanting this :l

MatrixSh0cke 11-12-2003 02:00 AM

Seems people dont want the border LOL I on the other hand DO, just want to color it? Is there any way to change it's color?

hypedave 11-12-2003 08:18 PM

Quote:

Originally Posted by MatrixSh0cke
Seems people dont want the border LOL I on the other hand DO, just want to color it? Is there any way to change it's color?


try this. Open admin/functions.php up
look for the folowing code.


PHP Code:

$code="<a href=\"$code\" target=\"_blank\"><img src=\"$code\" width=\"$xsize\" height=\"$ysize\" border=\"3\"></a>"

and change "border=\"3\ to border=\"1\

I havent tryed it, but let us know if that works

Tweak589 11-12-2003 10:54 PM

He asked how to color the border, not the thickness....

MatrixSh0cke 11-13-2003 01:21 AM

LOL, yeah I already trimmed the border down, I just wanted to color it. I tried the bordercolor= thing, but it didnt work. Is there something else I need to do?

MatrixSh0cke 11-19-2003 06:18 PM

No one can tell me how? ;_;

Prince 12-10-2003 04:40 PM

did you add the bordercolor tag to the first img line too?

this one:
$code = "<a href=\"$code\" target=\"_blank\"><img src=\"$code\"></a>";

Prince 12-10-2003 04:45 PM

what I would like is a way to have it ignore the IMG tags in signatures, or be able to set a different size limit for them.

Prince 12-10-2003 04:46 PM

the reason I say this is because I used this code to have all IMG tags changed to the THUMB tags automatically:

$bbcode = preg_replace("/img\]/i", "thumb]", $bbcode);


All times are GMT. The time now is 06:33 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.01146 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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