vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   IMG resizing.. (https://vborg.vbsupport.ru/showthread.php?t=51278)

Blindchild02 04-06-2003 09:47 PM

IMG resizing..
 
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 [thumb][/thumb] but thats not what i want, i want it so it resizes the [ img ] one

Blindchild02 04-07-2003 12:54 AM

anyone? :(

Zzed 04-07-2003 06:43 AM

in admin/functions.php

add the following line below the global declarations:

PHP Code:

$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

Zzed 04-07-2003 10:25 AM

Right here. :D

Add your code right below this. ;)

PHP Code:

function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode)
// parses text for vB code, smilies and censoring

  
global $DB_site,$wordwrap,$allowdynimg$bbuserinfo;

  static 
$smilies,$bbcodes;
  global 
$regexcreated,$searcharray,$replacearray,$phpversionnum


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

Quote:

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?


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