View Full Version : IMG resizing..
Blindchild02
04-06-2003, 09:47 PM
uhh, is there anyway.. that when u do the [ img ] code to make it so it will automatically resize the image to a certain size? and then when u click it, it takes u to a full size
because on my board, it stretches out all the posts, and it makes it very ugly...
filburt1
04-06-2003, 09:51 PM
Search for thumbnails: https://vborg.vbsupport.ru/search.php .
Blindchild02
04-06-2003, 09:58 PM
well there's one u do but thats not what i want, i want it so it resizes the [ img ] one
Blindchild02
04-07-2003, 12:54 AM
anyone? :(
in admin/functions.php
add the following line below the global declarations:
$bbcode = preg_replace("/img\]/i", "thumb]", $bbcode);
This will replace all your IMG tags with THUMB tags. ;)
Blindchild02
04-07-2003, 09:37 AM
wheres global declarations? o_O sorry if im sounding noobish
Right here. :D
Add your code right below this. ;)
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmi lies,$dobbcode)
{ // parses text for vB code, smilies and censoring
global $DB_site,$wordwrap,$allowdynimg, $bbuserinfo;
static $smilies,$bbcodes;
global $regexcreated,$searcharray,$replacearray,$phpversi onnum;
Blindchild02
04-07-2003, 11:01 AM
didnt work :( just messed my functions up...
edit: what i want is so u can use the [img] code, but have it make a thumb.. do u know how i would do that?
and... is there a way to get rid of that big black outline for the thumbs?
Boofo
04-07-2003, 12:30 PM
Use border="0"
Blindchild02
04-07-2003, 12:56 PM
thanks alot boofo :)
but i still need help with..
edit: what i want is so u can use the [img] code, but have it make a thumb.. do u know how i would do that?
Blindchild02
04-07-2003, 06:10 PM
zzed? cmon help me :(
filburt1
04-07-2003, 06:20 PM
Don't be so demanding; I've seen you like this at vBT too. Just wait around a day, and then if nobody replies, you should bump. Most often people see your thread but don't have a reply.
Blindchild02
04-07-2003, 06:38 PM
im sorry, i do it cuz i really wanna get it done :( sorry
w00t i got it workin!! thnx ZZED great hack :thumbsup:
Chris Gwynne
04-07-2003, 06:42 PM
Try experimenting yourself, that's the only way you're going to learn. Zzed has given you code that should fix your problem, use it.
Blindchild02
04-07-2003, 06:45 PM
i did, i edited my post above :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.