Simplicity Point

Simplicity Point Domain Names

No Thread Stretch: IntegraMOD 1.4.0 [FIX]

This is a fix for No Thread Stretch to fill the entire message cell in all browsers.

This applies to IntegraMOD 1.4.0 and the FISubice Theme.

OPEN: templates\\no_thread_stretch.js

FIND:
//document.write('<link rel="stylesheet" type="text/css" href="templates/overflow' + cssname + '.css">');

AFTER ADD:
   var width;
   if (window.innerWidth) //if browser supports window.innerWidth
   {
      width = window.innerWidth;
   }
   else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
   {
      width = document.documentElement.clientWidth + 20;
   }
   else if (document.all) //else if browser supports document.all (IE 4+)
   {
      width = document.body.clientWidth + 20;
   }

FIND:
   document.write('   width: ' + (screen.width - size) + 'px;');

REPLACE:
   document.write('   width: ' + (width - size) + 'px;');
   if (document.all)
      document.write('   padding-bottom: 20px;');

The full file should look something like this:
function no_thread_stretch(size)
{
//document.write('<link rel="stylesheet" type="text/css" href="templates/overflow' + cssname + '.css">');

   var width;
   if (window.innerWidth) //if browser supports window.innerWidth
   {
      width = window.innerWidth;
   }
   else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
   {
      width = document.documentElement.clientWidth + 20;
   }
   else if (document.all) //else if browser supports document.all (IE 4+)
   {
      width = document.body.clientWidth + 20;
   }

   document.write('<style type="text/css">');
   document.write('<!--');
   document.write('.postoverflow');
   document.write('{');
   document.write('   width: ' + (width - size) + 'px;');
   if (document.all)
      document.write('   padding-bottom: 20px;');
   document.write('   overflow: auto;');
   document.write('}');
   document.write('-->');
   document.write('</style>');
}

OPEN: templates\\fisubice\\viewtopic_body.tpl

FIND:
no_thread_stretch({BLOCK_WIDTH}+233);

REPLACE WITH:
no_thread_stretch({BLOCK_WIDTH}+240);

Post a Comment

Syndicate this site using RSS The latest comments to all posts in RSS This page validates as XHTML 1.0 Transitional This site uses valid CSS This site is XFN Friendly Powered by WordPress, state-of-the-art semantic personal publishing platform. Get the Flock web browser Site design adapted to WordPress by Simplicity Point