vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Image resizer (https://vborg.vbsupport.ru/showthread.php?t=118048)

burntire 04-02-2008 11:39 PM

Quote:

Originally Posted by Sworm (Post 1481349)
This mod work on vBulletin 3.7 RC2?

TX

Yes

ZomgStuff 04-05-2008 11:14 PM

Why is this in German for me?

adamadamadam 04-06-2008 04:23 AM

Hello - is it at all possible to setup this theme so that it's installed to specified themes and not ALL themes?

I have some themes that are 100% browser width where image resizing isn't necessary and some that are a set width (1024px) where image resizing is necessary. How do I choose which themes to have this installed to?

mahsazn 04-06-2008 12:59 PM

does it work with 3.6.8 ?

Kadence 04-07-2008 04:24 AM

Quote:

Originally Posted by ZomgStuff (Post 1483970)
Why is this in German for me?

Do you mean Dutch? Did you download vbulletin-language-nl.xml? You might need to uninstall something.

adamadamadam 04-07-2008 07:30 PM

Can I choose which themes/styles to install this to?

Kentaurus 04-09-2008 01:58 AM

Really good hack. Thanks for sharing.

I only did a couple of changes, I post them here for your consideration (I TESTED THE 3.5 version it seems)

The preg_replace code, even if non-expensive, is executed each time a post is parsed, and doesn't use the already in place post cache, you can verify it by querying the postparsed table, the <img> code is left there unreplaced.

Instead, I REMOVED the postbit_complete plugin, and replaced it for a

bbcode_parse_complete plugin with the following content:
Code:

if(defined('NCODE_IMAGERESIZER_INIT'))
{
    $this->cached['text'] = $text = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $text);
}

With that, the postbit is just parsed once, and subsequent views of the thread/postbit don't call the preg_replace at all. You can check the "postparsed" table and the new <img> info would be there. Since I run a medium-big forum, every bit of optimisation counts :)

And... I'm contributing a spanish translation :)

fsbmax 04-10-2008 03:34 AM

fixed my problem, human error on my behalf

fsbmax 04-10-2008 03:35 AM

fixed!^^^

Southernphuk 04-12-2008 02:51 AM

Works just fine on the latest RC version - no issues or problems.


All times are GMT. The time now is 10:36 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.02129 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
  • (1)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
  • (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