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 - CES Dynamic [IMG] Resize (Plugin Version) (https://vborg.vbsupport.ru/showthread.php?t=157428)

thincom2000 09-11-2007 03:05 PM

I hate IE. I have managed to fix everything you mentioned above except the background color. The problem is that IE is inheriting the background-color from the postbit, and then ignoring anything afterwards.

Stoebi 09-11-2007 03:31 PM

Hi

thank you very much for your quick answer. :)
To solve the background-color for IE 7 you need to add this peace of code to this line:
Code:

return ($dynamicpic['note_true'] ? "<div class=\"resizednote\" id=\"$link\">" : "") . "<img src=\"$link\" border=\"0\" alt=\"\" $dynamicpic[image] />" . ($dynamicpic['note_true'] ? "</div>" : "");

Regards,

Stoebi

thincom2000 09-11-2007 03:40 PM

But that is not the resized note div. That is a containing div... Doing that makes a huge undesired color splotch, if your image is smaller than necessary to be resized.

Also that causes the message not to display at all in IE7.

Stoebi 09-11-2007 03:53 PM

Hm

you need to re-edit and save your post with your image. Suspect, i will searching for another way :)


Regards,

Stoebi

thincom2000 09-11-2007 04:55 PM

Hm... I found another bug when the resize message is enabled. If you click to View Selection Source in Firefox, it runs onload() again, and duplicates the image every time you do this. This bug has been addressed in the next release.

Still clueless about the IE background... Maybe it has something to do with the order IE runs CSS and Javascript. Does anyone know anything about IE?

xandizitxu 09-11-2007 05:05 PM

For me works great! I use firefox

Use FIREFOX and be happy!

PS: On IE don't work O.O

Stoebi 09-11-2007 06:09 PM

IE and setAttribute() :(
http://www.quirksmode.org/dom/w3c_core.html#attributes

I've no ideas or workaround atm. :(

Thx for 1.0.4 :)

thincom2000 09-11-2007 06:33 PM

Thanks for the link. I was able to get the class to set in IE.

In the template, find:
HTML Code:

                        wrap.setAttribute('class', 'resizednote');
Replace with:
HTML Code:

                        wrap.setAttribute('class', 'resizednote');
                        wrap.attributes['class'].value = 'resizednote';

This will be included in the next build.

xandizitxu 09-11-2007 06:41 PM

I will wait for the next so! \o/

Great mod!

Stoebi 09-11-2007 06:52 PM

Thx a lot, it works for IE now :)


Regards, Stoebi


All times are GMT. The time now is 01:04 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.01191 seconds
  • Memory Usage 1,735KB
  • 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_html_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