vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Image Resizer (https://vborg.vbsupport.ru/showthread.php?t=176531)

Andy92 04-20-2008 09:43 PM

Quote:

Originally Posted by Jase2 (Post 1494563)
Read post #50

As I've said in that post, I may work on this in a future version. But, at least it's better than nothing, at the moment.

Ok, how long into the future do you think?

Jase2 04-20-2008 09:55 PM

Andy92, that depends on a number of factors at this moment. I'm currently working on a few other "big" products, but when I get time -- I will add some new features.

furst 04-20-2008 11:13 PM

Quote:

Originally Posted by tmiland (Post 1495299)
Another thing, make it an option when quoting a post to just show image link instead of the full image, that would save som bandwidth over time. :)

That would be awesome, but it sounds like a mod of its own.

Jase2 04-20-2008 11:53 PM

I do like that idea tmiland. However, as furst rightly said, this would be it's own modfication. I'll see if I can create a product for this when I get some time. With Enable/Disable.

furst 04-21-2008 02:04 AM

Quote:

Originally Posted by Jase2 (Post 1495460)
I do like that idea tmiland. However, as furst rightly said, this would be it's own modfication. I'll see if I can create a product for this when I get some time. With Enable/Disable.

You must be hella busy. Every thread I go into I see you adding projects to your to do list :up:

mktrilogy 04-21-2008 04:34 AM

thanks installed

ErolALP 04-21-2008 11:28 AM

installed thanx jase

tmiland 04-21-2008 01:53 PM

Quote:

Originally Posted by Jase2 (Post 1495119)
I will have to look at the code, I'm currently coding another hack.

Okey, i figured it out. Might be it can be done better (less code) but atleast it's working. :)

Here you go:
bbcode_parse_complete
PHP Code:

if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
    
$text ncode_imageresizer_replace($text);
} elseif(
defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
    
$text ncode_imageresizer_replace($text);


bbcode_parse_start:
PHP Code:

$this->ncode_imageresizer_do false;
if(
defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
    if(!empty(
$parsedtext) && $parsedhasimages) {
        
$parsedtext $this->handle_bbcode_img($parsedtext$dobbimagecode$parsedhasimages);
        
$parsedtext ncode_imageresizer_replace($parsedtext);
        
$parsedhasimages false;
    } else {
        
$this->ncode_imageresizer_do true;
    }
} elseif(
defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
    if(!empty(
$parsedtext) && $parsedhasimages) {
        
$parsedtext $this->handle_bbcode_img($parsedtext$dobbimagecode$parsedhasimages);
        
$parsedtext ncode_imageresizer_replace($parsedtext);
        
$parsedhasimages false;
    } else {
        
$this->ncode_imageresizer_do true;
    }


Yay! :D

furst 04-21-2008 06:14 PM

Hey tmiland, can you explain what you did there?

tmiland 04-21-2008 07:00 PM

Hi furst!
I added whats in the elseif statement, i simply "doubled" the code.

In the "if" statement you'll see 'vb_bbcodeparser' and to get it working in the blog, i added 'vb_bbcodeparser_blog' in the "elseif" part.

If you want, you can try the attached xml file, and see how it goes.
I'm currenly using that on a live site, and it's working great :)


All times are GMT. The time now is 06:02 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.01437 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)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