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)

applyimage 08-08-2007 10:36 AM

I don't know why, but I recieved an 'done but with errors on page' message after importing the product. Sorry VERY new to vbulletin but im sure I follwed the instructions correctly, any ideas?

Stifmeister2 08-08-2007 02:33 PM

Quote:

Originally Posted by LilSniper (Post 1312314)
I don't really know what this means. Can anyone explain?

Thanks in advance.

There is a folder called "clientscript" in your forum root, upload ncode_imageresizer.js to that folder. :)

reefland 08-08-2007 06:59 PM

Excellent modification, working great on 3.6.2

applyimage 08-10-2007 05:00 PM

Forget my post It's working now. fantastic mod!!!! *installed*

chiptz 08-10-2007 05:34 PM

Hi,

Is there any chance to only allow admins to define the max dimentions before the resizing and with this not requiring the plugin to do db changes on vbulletin?

A light version of the plugin would be nice :)

edgeyveggie 08-10-2007 11:19 PM

Hey
This wasn't working for me. Then I realized when I uploaded the .js file to the clientscript folder it was ".js.txt" So I deleted the ".txt" and it worked fine.
Hahaha
Great hack!

Roux 08-11-2007 03:37 PM

Works beautifully! Thank you MUCHLY! :D

Robert7 08-12-2007 06:12 AM

It doesn't work on 3.6.7 and next releases.

momo2 08-13-2007 01:43 AM

weird it worked on my other forum, but on another forum, any ideas ?

mondala 08-14-2007 03:14 PM

Quote:

Originally Posted by Robert7 (Post 1315683)
It doesn't work on 3.6.7 and next releases.

It was reported earlier to work fine with 3.6.8.

Did you get it working?

I'll be trying it this weekend with 3.6.8

LilSniper 08-15-2007 03:08 AM

I have v3.6.7 and it doesn't work for me.

pow6713 08-15-2007 09:42 AM

worked on 3.6.7

after upgrade to 3.6.8 its also go on working, but now its suddenly stoped...
weird too ..

dellow 08-15-2007 10:57 PM

great hack installed,

i hope i can see new feature that we can set image size for posts and another image size for signature.

Regards,

Robert7 08-16-2007 02:06 AM

Quote:

Originally Posted by mondala (Post 1317413)
It was reported earlier to work fine with 3.6.8.

Did you get it working?

I'll be trying it this weekend with 3.6.8

It maybe because of some other addons. However it doesn't work on 3.6.8 for me. I have installed many addons.

Robert7 08-16-2007 02:23 AM

I found out that problem was because of this addon: Replacement Words In Posts . I have disabled it and Image resizer works on 3.6.8.

If it doesn't work for you, it is because of other addons.

bela-meaad 08-16-2007 01:36 PM

Does this work with 3.6.8?

Thanks

Abaweet69 08-17-2007 07:45 PM

Very well done. I love it.

Delioncourt 08-18-2007 01:38 PM

Works like a charm on 3.6.8. Thanks for this mod! A must have for every forum.

Skybert 08-24-2007 03:41 PM

This thing worked flawlessly, but one question.

The top bar that is white text on white backround, how do I edit the colors?

Thanks in advance

Lifesupporters 08-28-2007 04:51 AM

Great hack, works perfectly.

Thank you!

Marco 08-28-2007 07:40 AM

Quote:

Originally Posted by Skybert (Post 1324835)
This thing worked flawlessly, but one question.

The top bar that is white text on white backround, how do I edit the colors?

Thanks in advance

Edit the ncode_imageresizer_headinclude template, it's in there.

MotMann 08-28-2007 08:07 AM

What shel i do with the language file? i dont have Netherland :(

I will upgrade....

Subah 08-28-2007 09:11 AM

Cool , Thanks :)

fringehead 08-31-2007 12:44 AM

really nice Mod! I switched to a fixed-width forum and it fixed all the posts that were too big!

Thanks,

Sean

oicyu8chu 08-31-2007 02:48 AM

One of the most useful mods of all time!

Choo

cyclone-uk 08-31-2007 09:42 AM

Works great on 3.6.8 thanks for a great mod.

IrPr 08-31-2007 01:22 PM

Any way to use with vBBlog?

dcramps 09-02-2007 01:50 AM

doesnt work at all for me. 3.6.7 PL1

SaTaNaSsO 09-05-2007 09:14 PM

great mod.. but the resizing include signature... it is possible to exclude it???
my VB is in italian language... and in the yellow bar of the resizing doesn't appear the phrases like "Click to enlarge"etc etc...
how can i fix this??

Jupp 09-09-2007 01:13 PM

Quote:

Originally Posted by IrPr (Post 1329481)
Any way to use with vBBlog?


Change the plugin code in nCode Image Resizer: Replacer In Cached Data from
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;
        }
}

to:
Code:

$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strpos(strtolower(get_class($this)),'vb_bbcodeparser') !== false && ($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;
        }
}


and change the plugin code in nCode Image Resizer: Replacer In Uncached Data from:
Code:

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

to:
Code:

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


Either copy and paste the complete plugin code or simply replace the red code in the particular plugin with the green code.

ShackMaster 09-14-2007 12:32 AM

Is there anyway to require users to make a selection during registration? I would like to have the options to resize available during registration and warn 1024 resolution (or lower) that they should choose to have their images resized to the maximum default of 800 pixels wide so that the forum does not go widescreen on them for larger images. Currently the option load on the Edit Options page.

Thanks!

brvheart 09-14-2007 01:53 AM

installed, one question/future revision - it would be nice to be able to either exclude certain forums or allow one usergroup the option to not use it....

Pirate45 09-17-2007 09:24 AM

Quote:

Originally Posted by Jupp (Post 1335421)
Change the plugin code in nCode Image Resizer: Replacer In Cached Data

Sorry, that's not working for me.

Strange thins was, this was working on vBlogetin but we converted to the vBulletin Blogs and it is not working there. :confused:

Pirate45 09-17-2007 10:38 AM

Seems to be working now but the drawback is that a different size is needed for the blogs due to the left side on the blog pages.

Would it be possible to have another version of this that would apply ONLY to the blogs?

MissKalunji 09-20-2007 07:21 PM

How can i prevent it from loading in vbadvanced? i don't want the script to run when someone is on vbadvanced page..

How can i achieve that?

Thanks!

p.s Great mod

PoetJA-1975 09-22-2007 01:51 AM

Quote:

Originally Posted by Jupp (Post 1335421)
Change the plugin code in nCode Image Resizer: Replacer In Cached Data from
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;
        }
}

to:
Code:

$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strpos(strtolower(get_class($this)),'vb_bbcodeparser') !== false && ($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;
        }
}


and change the plugin code in nCode Image Resizer: Replacer In Uncached Data from:
Code:

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

to:
Code:

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


Either copy and paste the complete plugin code or simply replace the red code in the particular plugin with the green code.

Thanx very much - works deliciously LOL
Appreciate the sharing ;)

Quote:

Originally Posted by ShackMaster (Post 1338675)
Is there anyway to require users to make a selection during registration? I would like to have the options to resize available during registration and warn 1024 resolution (or lower) that they should choose to have their images resized to the maximum default of 800 pixels wide so that the forum does not go widescreen on them for larger images. Currently the option load on the Edit Options page.

Thanks!

Good idea - don't know how difficult that'd be to accomplish - but subscribing, as it would be nice to have such an option....

Quote:

Originally Posted by Pirate45 (Post 1340740)
Seems to be working now but the drawback is that a different size is needed for the blogs due to the left side on the blog pages.

Would it be possible to have another version of this that would apply ONLY to the blogs?

Ditto to what I said above...

Jacquii.

nokalexander 09-22-2007 04:17 AM

Good work, Installed :)

Inferno Dragon 09-22-2007 06:16 AM

this is a killer hack :D works perfectly fine..thanks for such a nice and useful mod m8..

Jupp 09-22-2007 01:55 PM

Quote:

Originally Posted by Pirate45 (Post 1340740)
Would it be possible to have another version of this that would apply ONLY to the blogs?

If there is a way to determine wether we're inside a blog or not, then it should be pretty easy to modify the ncode_imageresizer_headinclude template so that the blog sidebar payload (200px) is taken into consideration, eg. NcodeImageResizer.MAXWIDTH = NcodeImageResizer.MAXWIDTH - 200;. ;)

MissKalunji 09-23-2007 01:58 PM

Quote:

Originally Posted by MissKalunji (Post 1343335)
How can i prevent it from loading in vbadvanced? i don't want the script to run when someone is on vbadvanced page..

How can i achieve that?

Thanks!

p.s Great mod

bump


All times are GMT. The time now is 03:49 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.02430 seconds
  • Memory Usage 1,830KB
  • 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
  • (8)bbcode_code_printable
  • (11)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
  • (40)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