Moderator: Integra Moderator
<was>no_thread_stretch({BLOCK_WIDTH}+233);
<was>no_thread_stretch({BLOCK_WIDTH}+10%)
no_thread_stretch({BLOCK_WIDTH}+233);
no_thread_stretch({BLOCK_WIDTH}+1024);
<Start><form><End><td><a><img></a>{L_POSTED}]
changed to
[code]<Start><form><End><td>{L_POST_SUBJECT}]
The entire file is per:
[code]<!-- mod ] = "[quote="{postrow.POSTER_NAME}";p="{postrow.U_POST_ID}"]n{postrow.PLAIN_MESSAGE}n[/quote]";<END> function addquote(post_id) { window.parent.document.post.input.value += message[post_id];window.parent.document.post.input.focus();return;} //--></script><table> <tr> <td><img></td> <td><img></td> <td><img></td> </tr> <tr> <td><img></td> <td><table><tr><td><a>{L_INDEX}</a> {NAV_CAT_DESC}</td></tr><tr> <td>{TOPIC_TITLE}</td></tr><tr><td> </td><td><table><tr><td><a><img></a></td><td><a><img></a></td><BEGIN><td><a><img></a></td><END><td><a><img></a></td><td>{S_WATCH_TOPIC_IMG}</td><BEGIN><td><a><img></a></td><END><BEGIN><td><a><img></a></td><END><td><a><img></a></td><td><a><img></a></td><td><a><img></a></td><td><a><img></a></td></tr></table></td></tr></table><table><tr><td> <a><img></a> <a><img></a> </td><td><BEGIN>{BANNER_14_IMG}<br><END>{BANNER_14_IMG}<br>{PAGINATION}</td></tr></table> </td> <td><img></td> </tr> <tr> <td><img></td> <td><img></td> <td><img></td> </tr></table>{POLL_DISPLAY}<table> <tr> <td><img></td> <td><img></td> <td><img></td> </tr> <tr> <td><img></td> <td><table><tr><th>{L_AUTHOR}</th><th>{L_MESSAGE}</th></tr><BEGIN><BEGIN><tbody><END><tr><td><span><a></a>{postrow.AUTHOR_PANEL}<img></td><td><table><tr><Start><form><End><td>{L_POST_SUBJECT}: {postrow.POST_SUBJECT}<br><a><img></a>{L_POSTED}:{postrow.POST_DATE} </td><td>{postrow.QUOTE_IMG}{postrow.EDIT_IMG}<a><img></a>{postrow.DELETE_IMG}{postrow.IP_IMG}{postrow.U_R_CARD}{postrow.U_Y_CARD}{postrow.U_G_CARD}{postrow.U_B_CARD}{postrow.CARD_EXTRA_SPACE}{postrow.CARD_HIDDEN_FIELDS} </td><Start></form><End></tr></table> <table><tr><td><hr><div>{postrow.MESSAGE}</div></td></tr><tr><td>{postrow.ATTACHMENTS}<span>{postrow.EDITED_MESSAGE}</span></td></tr><tr><td><br><span>{postrow.SIGNATURE}</span></td></tr></table> </td></tr><BEGIN><tr><td><table><tr>{postrow.BUTTONS_PANEL}<td><span> <tr> <a><img></a> {postrow.POST_RATING} {postrow.QUICK_QUOTE} </tr> </span></td></tr></table></td></tr><END><BEGIN></tbody><END><BEGIN><tr><td><span><a>{L_BACK_TO_TOP}</a></span></td><td><table><tr><td><a>{L_IGNORE_CHOOSEN} </a></td><td>{postrow.IGNORE_IMG}</td></tr></table></td></tr><END><tr><td><img></td></tr><END><tr><td><form><table><tr><td>{L_DISPLAY_POSTS}: </td><td>{S_SELECT_POST_DAYS} </td><td>{S_SELECT_POST_ORDER} </td><td><input></td></tr></table></form></td></tr></table></td> <td><img></td> </tr> <tr> <td><img></td> <td><img></td> <td><img></td> </tr></table><table> <tr> <td><img></td> <td><img></td> <td><img></td> </tr> <tr> <td><img></td> <td><table></table><BEGIN><table><tr><td><a>{L_INDEX}</a> {NAV_CAT_DESC}</td><td><form><input><select><option>{ratingsbox.L_LATEST_RATINGS}</option><option>{ratingsbox.L_HIGHEST_RANKED_POSTS}</option><option>{ratingsbox.L_HIGHEST_RANKED_TOPICS}</option><option>{ratingsbox.L_HIGHEST_RANKED_POSTERS}</option></select> <input></form></td></tr></table><END><table><tr><td> <a><img></a> <a><img></a> </td><td> </td><td>{PAGINATION}</td></tr></table><table><tr><td><br><br><BEGIN> {JUMPBOX}<END> <br><BEGIN><table><tr><td><form><span>{L_TOPIC_INFO}: <input> <input></span></form></td></tr></table><END><br>{S_TOPIC_ADMIN}<br>{QUICK_REPLY_FORM}</td><td><table><tr><td> </td><BEGIN> <td><a><img></a></td><END> <td><a><img></a></td><BEGIN><td><a><img></a></td><END><td><a><img></a></td><td>{S_WATCH_TOPIC_IMG}</td><BEGIN><td><a><img></a></td><END><BEGIN><td><a><img></a></td><END><td><a><img></a></td><td><a><img></a></td><td><a><img></a></td><td><a><img></a></td></tr></table><br>{S_AUTH_LIST}</td></tr><BEGIN><tr><td>{BANNER_15_IMG}</td></tr><END><tr><td>{BANNER_15_IMG}</td></tr></table></td> <td><img></td> </tr> <tr> <td><img></td> <td><img></td> <td><img></td> </tr></table>
"Simon N";p="1709" wrote:Page does not resize well either...you end up with horizontal scroll bars. I posted a fix for this:
In file viewtopic_body.tpl
Instead of using a set pixel amount use percentages. It makes the whole thing far more friendly. Can increase or decrease the percentage value until you get something that is good all round.
FIND
- Code: Select all
<was>no_thread_stretch({BLOCK_WIDTH}+233);
REPLACE WITH
- Code: Select all
<was>no_thread_stretch({BLOCK_WIDTH}+10%)
"Adrian Rea";p="1748" wrote:very nice [flash=,:1ggnhh2o]http://integramod.com/home/images/icon/icon14.gif[/flash:1ggnhh2o]
do you want to be a beta tester tek? LOL
A
"Jason Sanborn";p="2049" wrote:I thought of something that may help, and I'll look into it more later. Since the script is written in JavaScript, there may be a way to use JS to determine the viewable screen width and, based on that width, dynamically add a value to the width to keep things from stretching. And in cases where the screen width can't be determined, the scrolling would be inevitable.
<A>Click for your screen resolution</A>
"Jason Sanborn";p="1773" wrote:no_thread_stretch is a JavaScript function that is supposed to prevent a post from stretching horizontally past the left side of the window. (Test with a large image or a long string of letters/numbers without spaces, hyphenation, punctuation, etc.).
"evolver";p="2308" wrote:http://www.pageresource.com/jscript/jscreen.htm
Newer browsers allow you to detect the user's screen resolution using the screen.width and screen.height properties. This can be a helpful way to send viewers to the right version of your page, depending on their computer's screen resolution.
The properties hold the values of the pixel length of the width and height of the viewer's screen. For example, you could send the viewer an alert when a link is clicked that gives the screen resolution:
- Code: Select all
<A>Click for your screen resolution</A>
Could this be used like this??? ]no_thread_stretch({BLOCK_WIDTH}+screen.width);[/code]
Just trying, and having a feeling like this is too simple to be right...
http://www.htmlgoodies.com/beyond/javas ... hp/3471261
It has been noted by the team this week <img>"Bush";p="2472" wrote:The text link that displays "Calendar" below the site banner on the right hand site of integrmod.com does not work in FireFox 1.5.0.2 (have not checked in IE)
This however does work on my site (http://www.mofclan.net)
"tekguru";p="2462" wrote:Def missing something here, what code do we need to add to support the 'screen.width' part of it?
"Jason Sanborn";p="2483" wrote:"tekguru";p="2462" wrote:Def missing something here, what code do we need to add to support the 'screen.width' part of it?
screen.width is a JavaScript function that should work automatically. I verified on Firefox 1.5.0.2. I just noticed that it isn't working yet in IE, and I need to play with the numbers to get it to work correctly.
//document.write('<link>');
no_thread_stretch({BLOCK_WIDTH}+233);
if (self.innerHeight) // all except Explorer{ no_thread_stretch({BLOCK_WIDTH}+self.screen.width);}else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode{ no_thread_stretch({BLOCK_WIDTH}+233);}else if (document.body) // other Explorers{ no_thread_stretch({BLOCK_WIDTH}+233);}
"Bush";p="2501" wrote:What is this strech thing you guys are talking about.. I'm very confused!
I think this thread is too overwhelming and it scares me!
//document.write('<link>');
document.write(' width]
REPLACE:[code] document.write(' width]
The full file should look something like this:[code]function no_thread_stretch(size){//document.write('<link>'); 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>'); document.write('<!--'); document.write('.postoverflow'); document.write('{'); document.write(' width]
In addition, Evolver recommends updating the viewtopic_body.tpl file
OPEN: templatesfisubiceviewtopic_body.tpl
FIND:[code]no_thread_stretch({BLOCK_WIDTH}+233);[/code]
REPLACE WITH]no_thread_stretch({BLOCK_WIDTH}+240);
"Jason Sanborn";p="2601" wrote:OPEN: templatesno_thread_stretch.js
FIND:
- Code: Select all
//document.write('<link>');
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; }[/code]
FIND:
- Code: Select all
document.write(' width]
REPLACE:[code] document.write(' width]
The full file should look something like this:[code]function no_thread_stretch(size){//document.write('<link>'); 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>'); document.write('<!--'); document.write('.postoverflow'); document.write('{'); document.write(' width]
In addition, Evolver recommends updating the viewtopic_body.tpl file
OPEN: templatesfisubiceviewtopic_body.tpl
FIND:[code]no_thread_stretch({BLOCK_WIDTH}+233);[/code]
REPLACE WITH]no_thread_stretch({BLOCK_WIDTH}+240);
<!-- mod ] = "[quote="{postrow.POSTER_NAME}";p="{postrow.U_POST_ID}"]n{postrow.PLAIN_MESSAGE}n[/quote]";<END>function addquote(post_id) {window.parent.document.post.message.value += message[post_id];//window.parent.document.post.message.focus();return;} </script><BEGIN><Start>{BANNER_14_IMG}<End><END><br><table><tr><td><img></td><td></td><td></td></tr><tr><td><span><a>{L_INDEX}</a> {NAV_CAT_DESC}</span></td><td><img></td></tr></table> <table> <tr> <td><span><a><img></a> <a><img></a></span></td> <td> <table> <tr> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td>{S_WATCH_TOPIC_IMG}</td> <BEGIN> <td><a><img></a></td> <END> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> </tr> </table> </td> </tr></table> <table><tr><td><img></td><td><b></b><span><a>{catrow.CAT_DESC}</a></span></td><td><img></td></tr></table> <table> <tr> <td><span><a>{L_VIEW_PREVIOUS_TOPIC}</a> :: <a>{L_VIEW_NEXT_TOPIC}</a> </span></td> </tr> {POLL_DISPLAY} <tr> <th>{L_AUTHOR}</th> <th>{L_MESSAGE}</th> </tr> <BEGIN><BEGIN><tbody><END><tr><td><span><a></a>{postrow.AUTHOR_PANEL}<img></td><td><table><tr><Start><form><End><td><a><img></a>{L_POSTED}:{postrow.POST_DATE} {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</td><td>{postrow.QUOTE_IMG}{postrow.EDIT_IMG}<a><img></a>{postrow.DELETE_IMG}{postrow.IP_IMG}{postrow.U_R_CARD}{postrow.U_Y_CARD}{postrow.U_G_CARD}<span> {postrow.U_B_CARD}</span>{postrow.CARD_EXTRA_SPACE}{postrow.CARD_HIDDEN_FIELDS} </td><Start></form><End></tr></table><table><tr><td><hr><div>{postrow.MESSAGE}</div></td></tr><tr><td>{postrow.ATTACHMENTS}<span>{postrow.EDITED_MESSAGE}</span></td> </tr><tr><td><span>{postrow.SIGNATURE}</span></td></tr></table></td></tr><BEGIN><tr><td><table><tr>{postrow.BUTTONS_PANEL}<td><span><a><img></a> {postrow.POST_RATING} {postrow.QUICK_QUOTE}</span></td></tr></table></td></tr><END><BEGIN></tbody><END><BEGIN><tr><td><span><a>{L_BACK_TO_TOP}</a></span></td><td><table><tr><td><a>{L_IGNORE_CHOOSEN} </a></td><td>{postrow.IGNORE_IMG}</td></tr></table></td></tr><END><tr><td><img><hr></td></tr><END><tr> <td> <table> <tr><form> <td><span>{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} <input></span></td> </form> </td> <BEGIN> <td> <form> <input> <select> <option>{ratingsbox.L_LATEST_RATINGS}</option> <option>{ratingsbox.L_HIGHEST_RANKED_POSTS}</option> <option>{ratingsbox.L_HIGHEST_RANKED_TOPICS}</option> <option>{ratingsbox.L_HIGHEST_RANKED_POSTERS}</option> </select> <input> </form> </td> <END> </tr> </table> </td> </tr></table><table><tr><td><img></td><td><img></td><td><img></td></tr></table> <table> <tr> <td><span><a><img></a> <a><img></a></span></td> <td><span> <a>{L_INDEX}</a> {NAV_CAT_DESC}</span></td> <td><span>{S_TIMEZONE}</span><br><span>{PAGINATION}</span> </td> </tr> <tr> <td><span>{PAGE_NUMBER}</span></td> </tr></table> <table> <tr> <td><span>{S_WATCH_TOPIC}</span><br> <br>{JUMPBOX}<br> <BEGIN> <table> <tr> <td> <form><span>{L_TOPIC_INFO}: <input> <input></span> </form> </td> </tr> </table> <END> <br> {S_TOPIC_ADMIN}<br><123> {QUICKREPLY_OUTPUT} </td> <td> <table> <tr> <td> </td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td>{S_WATCH_TOPIC_IMG}</td> <BEGIN> <td><a><img></a></td> <END> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> <td><a><img></a></td> </tr> </table><br> {S_AUTH_LIST} </td> </tr> <BEGIN> <Start> <tr> <td>{BANNER_15_IMG}</td> </tr> <End> <END></table>
<was>no_thread_stretch({BLOCK_WIDTH}+'10%');
<script></script>
"tmotley";p="2795" wrote:Good night, I haven't used IE in 800x600 for ages. My site looks like heck in 800x600. Anyway to avoid horizontal scrolls when viewing that resolution?
On a side note: Why don't themes other than icgstation come with the pngfix.js (to display png images properly in IE) set up in the overall header? I had to copy it over to my other themes.
Registered users: App360MonitorBot, Bing [Bot], Google [Bot]