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 - Dynamic Picture Resize for [IMG] tag (https://vborg.vbsupport.ru/showthread.php?t=157228)

Chevy II 01-15-2008 11:28 AM

Thanks for your assistance, I wasn't aware that I could do that. So I did it, and it ran without a problem. However, it didn't fix the problem. One thing I did notice is that if I go into a thread where images have been linked with the [image] tags and click edit and then save. The images are now size properly, however, as soon as I go back into the thread again or I refresh the thread the images are large again.

This is strange. Thanks for your assistance.

kiennt718 01-16-2008 04:05 AM

Quote:

Originally Posted by Chevy II (Post 1421860)
Thanks for your assistance, I wasn't aware that I could do that. So I did it, and it ran without a problem. However, it didn't fix the problem. One thing I did notice is that if I go into a thread where images have been linked with the [image] tags and click edit and then save. The images are now size properly, however, as soon as I go back into the thread again or I refresh the thread the images are large again.

This is strange. Thanks for your assistance.

You should add the 2 lines in instruction file to the additional CSS section in your new style. Otherwise, the image will display in Full-Size first, before it can be resized by this hack. Cheers

sub_ubi 03-08-2008 10:24 PM

Tested on:
Vbulletin 3.6.8 PL2
5 different styles

Tested with:
Opera 9
Safari
IE6
IE7
Firefox 1.5
Firefox 2.0

All flawless. Great work.

mark|3 03-10-2008 10:07 AM

Will it possible to have 2 different resize options for both blog and forum?

thanks

R1lover 03-16-2008 10:40 PM

Anyone want to update this to 3.7?

It seems the vbulletin_global.js file is much different and I can't figure out how to edit it to make this work again.

Thanks for any help

Alibass 03-16-2008 11:26 PM

Quote:

Originally Posted by R1lover (Post 1466550)
Anyone want to update this to 3.7?

It seems the vbulletin_global.js file is much different and I can't figure out how to edit it to make this work again.


Thanks for any help

I haven't installed beta 6 yet, but this hack is working fine for me on beta 5

R1lover 03-17-2008 12:30 AM

Quote:

Originally Posted by Alibass (Post 1466586)
I haven't installed beta 6 yet, but this hack is working fine for me on beta 5

Interesting..

The file I listed above was no where near the content of the old one and I have no clue where to edit it in order to make this work.

Maybe they changed the .js file in beta6?

R1lover 03-17-2008 12:36 AM

I just looked back and yes this file was changed in a recent update... my last one was beta4 and it was like the 3.6.8 version. The new one is uhhhhh very different and hard to read. lol

R1lover 03-17-2008 03:13 PM

The issue is they are now compressing the java script files with a standard download, you can select uncrompressed version though when you download your copy on vb, this is new to me and something I was not aware of. Trying to read and edit the compressed version it not something I'm going to tackle. I have a feeling there will be more people finding this the hard was as well.

R1lover 03-17-2008 04:14 PM

Here is the fix on 3.7.0 Beta 6 (or work around)

Download the uncompressed version of vBulletin from vbulletin.com members area. Then edit the .js file in the uncompressed version and replace the compressed version with it on your server. By default it seems that the compressed version is standard if you don't select the option of uncompressed. I'm sure this will get others as well with this mod.

It's up and running fine on 3.7 now.

Lizard King 03-20-2008 01:16 AM

In compessed js search for
Code:

{this[C]=this[C+1]}this.length--;return A}}
Just add after
Code:

function resize_image(obj, link, maxwidth){if (obj.width > maxwidth){obj.style.cursor = 'pointer';obj.style.width = maxwidth + 'px';obj.style.height = parseInt(obj.height * maxwidth / obj.width) + 'px';obj.onclick = function(){window.location.href = link;return false;};}}
and you'are good to go

mark|3 03-26-2008 02:28 PM

hi is there anyway to set different resize dimensions for the blog and forum. (.g. 500 and 700)
thanks

odeezie 04-15-2008 12:48 AM

Quote:

Originally Posted by gforce75 (Post 1412109)
hmm, it messed up vb. The .js modificatiom made my chatbox stop working. The img sized rework. Just make sure u pay attention to this.


This made my chatbox stop working as well. How do I avoid this?

vithorius 04-17-2008 07:28 AM

I will have to try this hack!!!

Mdrop 04-24-2008 05:45 PM

Hmm.. not working on 3.6.10 ?

Denyer 04-28-2008 05:04 PM

Remember that if you replaced clientscript/vbulletin_global.js and includes/class_bbcode.php when you upgraded to .10 that you'll have to edit them again. ;)

1100101 04-29-2008 01:59 PM

Quote:

Originally Posted by Denyer (Post 1501623)
Remember ... when you upgraded to .10

And I was wondering why it won't work...

Next time, i'l make my Update wihout beer :D

thanks, very much...

Jpax 05-07-2008 07:12 PM

Can you make it work with 3.7 please :D

Jpax 05-08-2008 06:39 AM

I get this errror The following dependencies were not met:
This product is not compatible with version 3.7.0 of vBulletin. (Compatible starting with 3.6.8 / Incompatible with 3.7.0 and greater)

transparent 05-09-2008 08:09 PM

Quote:

Originally Posted by Denyer (Post 1501623)
Remember that if you replaced clientscript/vbulletin_global.js and includes/class_bbcode.php when you upgraded to .10 that you'll have to edit them again. ;)

Thx for the tip...Working perfect again on 3.6.10:D

ski diva 05-09-2008 08:35 PM

Can this be installed on with 3.7 after you've upgraded?

ski diva 05-09-2008 11:15 PM

Attempting to install this, I've run into what's probably a simple problem. When I attempt to edit the file vbulletin_global.js, its entire content shows up in my text editor as one long line. I can "soft wrap" the text, but the line endings remain arbitrary.

This is preventing me from finding and replacing the necessary lines.

I'm on a Mac, using Komodo Edit and/or TextWrangler.
Thanks for any help.

Taragon 05-11-2008 05:13 PM

Installed :)

Quote:

Originally Posted by Jpax (Post 1512410)
I get this errror The following dependencies were not met:
This product is not compatible with version 3.7.0 of vBulletin. (Compatible starting with 3.6.8 / Incompatible with 3.7.0 and greater)

In the product-dynamicpic.xml find:
Code:

                <dependency dependencytype="vbulletin" minversion="3.6.8" maxversion="3.7.0" />
and replace this with:
Code:

                <dependency dependencytype="vbulletin" minversion="3.7.0" maxversion="3.7.99" />

Quote:

Originally Posted by ski diva (Post 1514366)
Attempting to install this, I've run into what's probably a simple problem. When I attempt to edit the file vbulletin_global.js, its entire content shows up in my text editor as one long line. I can "soft wrap" the text, but the line endings remain arbitrary.

This is preventing me from finding and replacing the necessary lines.

I'm on a Mac, using Komodo Edit and/or TextWrangler.
Thanks for any help.


Quote:

Originally Posted by Lizard King (Post 1469260)
In compessed js search for
Code:

{this[C]=this[C+1]}this.length--;return A}}
Just add after
Code:

function resize_image(obj, link, maxwidth){if (obj.width > maxwidth){obj.style.cursor = 'pointer';obj.style.width = maxwidth + 'px';obj.style.height = parseInt(obj.height * maxwidth / obj.width) + 'px';obj.onclick = function(){window.location.href = link;return false;};}}
and you'are good to go


ThreeD 05-14-2008 06:04 PM

this does not seem to work with IE7 if you're running VB3.7 :( Can anyone else confirm this?

Stefanus 07-20-2008 07:01 PM

Quote:

Originally Posted by ThreeD (Post 1519602)
this does not seem to work with IE7 if you're running VB3.7 :( Can anyone else confirm this?

Yep, working with IE7 on 3.7.2
" Rob of Zimbabwe "

Taragon 07-25-2008 09:52 AM

I'm receiving a css validation error
Code:

606          * html .resizeimage          Value Error : width  Lexical error at line 606, column 60. Encountered: "?" (63), after : ""  ? '800px' : 'auto');
606        * html .resizeimage        Value Error : width Parse error - Unrecognized }

Would this be fixable perhaps? (I'm using the compessed js)

chrisbeau 08-15-2008 09:15 PM

Quote:

Originally Posted by TECK (Post 1334053)
About your request to open the link into a new tab/window:
Open vbulletin_global.js file (where you edited the code originally) and find:
Code:

window.location.href = link;
Replace it with:
Code:

window.open(link, '_blank');

You are done. :)

I did this but it still doesnt work. Any Ideas ???

ApexSpeed 09-16-2008 03:34 PM

Has anyone installed this on a 3.7.* board and had everything work properly?

ski diva 09-16-2008 05:01 PM

I'm using it with 3.7, no problem.

Taragon 10-05-2008 10:36 PM

Quote:

Originally Posted by ski diva (Post 1623469)
I'm using it with 3.7, no problem.

Except from this that is. It should work fine though.
Quote:

Originally Posted by Taragon (Post 1583728)
I'm receiving a css validation error
Code:

606          * html .resizeimage          Value Error : width  Lexical error at line 606, column 60. Encountered: "?" (63), after : ""  ? '800px' : 'auto');
606        * html .resizeimage        Value Error : width Parse error - Unrecognized }

Would this be fixable perhaps? (I'm using the compessed js)


TheLastSuperman 11-15-2008 05:03 AM

Thanks :D

tarionyx 11-20-2008 02:56 AM

great mod! works perfect. not sure if the images are supposed to be clickable by default or not??

KAWIE1 11-23-2008 09:37 PM

Installed this and it helped. Thanks man.

steven.hartland 07-08-2009 03:20 PM

Just wanted to make people aware that this code is exploitable, and enables users to rewrite any part of the page :(

So until fixed I would disable this plugin if you have it installed

N.B. I've notified the developer of the precise details of the issue.


All times are GMT. The time now is 11:08 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.01408 seconds
  • Memory Usage 1,817KB
  • 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
  • (10)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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