vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Wide image automatic resize for html and vB tags in posts - fixes template problems (https://vborg.vbsupport.ru/showthread.php?t=67743)

rodriguez 01-19-2005 09:47 PM

Fit perfectly. There is some display probleme if you are using The "Attachments Styles with Attachments in Events" but hey .. that only in Template ;)

Thanks u

BlasterT3 01-25-2005 10:08 PM

flawless install on vb 3.0.6

thanks

alfata 02-02-2005 05:04 AM

it works fine with me on 3.0.6

but i wonder is there a way to make the pic open in new window ,also adding alt var for the pic to give "Picture has been resized, click for full size pic" msg, it is better than shown below the pic....


many thax to the coder :D
*install

Steve St.Lauren 02-05-2005 01:48 AM

Quote:

Originally Posted by alfata
it works fine with me on 3.0.6

but i wonder is there a way to make the pic open in new window ,also adding alt var for the pic to give "Picture has been resized, click for full size pic" msg, it is better than shown below the pic....


many thax to the coder :D
*install

The mod to change it to open in another window was near the beginning of this thread. Here it is again with your request of adding the "Picture has been resi"....... msg to the alt tag as well:

You would add it into these lines:

in the first part:

$bbtag = '<table><tr><td align="center"><a href="' . $link . '"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"'.substr($bbtag,$linkclose+1,strlen($bbt ag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>';

would become:

$bbtag = '<table><tr><td align="center"><a href="' . $link . '" target="_blank"><img src="' . $link . '" width="'.$max_imgsize.'" border="0"' alt="Picture has been resized, click for full size pic".substr($bbtag,$linkclose+1,strlen($bbtag)-$linkclose+1).'<br>Picture has been resized, click for full size pic</a></td></tr></table>';

and in the second section:

$biglink = '<table><tr><td align="center"><a href="' . $link . '" ><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt=""><br>Picture has been resized, click for full size pic</a></td></tr></table>';

would become:

$biglink = '<table><tr><td align="center"><a href="' . $link . '" target="_blank"><img src="' . $link . '" width="'.$max_imgsize.'" border="0" alt="Picture has been resized, click for full size pic"><br>Picture has been resized, click for full size pic</a></td></tr></table>';

If you want to remove the "Picture has been resiz".... text from below the pic just remove the

<br>Picture has been resize, click for full size pic

text out of both of those sections.

Reece D 03-01-2005 10:29 AM

*installed* great hack cheers mate

AllJin.com 03-10-2005 10:34 PM

Does this work for Sigs as well?

Scarab 03-22-2005 08:52 AM

My thanks to you for this.
Now I don't have to worry about the idiots that can't read the forum rules for image restrictions. :banana:

AllenMead 03-23-2005 09:11 PM

This is absolutely superb!!!! Clicks install

ThePimp 03-29-2005 09:43 PM

Quote:

Originally Posted by dis.pater
Correct :)


I placed it in a separate javascript file which I called resizeall.js and uploaded it to the clientscript directory of vB.
All you should do then is add this line at the bottom of headinclude (you find it under common templates in the template manager).
Code:

<script type="text/javascript" src="clientscript/resizeall.js"></script>
At last you should change the onload in the body tag of the showthread template.
On my board, with vB3.3 the body tag now looks like this
Code:

<body onload="$onload; fiImageResize()">

Is there a way to get your image resize method to work on "threadreviewbits", in the "New Reply" page?

knetgummi 04-14-2005 09:21 PM

thank u very much and *installed*

greetZ
knetgummi


All times are GMT. The time now is 09: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.01489 seconds
  • Memory Usage 1,742KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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