1
karuna
Image auto resize in newbb
  • 2004/6/14 13:56

  • karuna

  • Not too shy to talk

  • Posts: 171

  • Since: 2002/5/29


change the class/module.textsanitizer.php

Quote:

$replacements[] = '<img src="\\3" align="\\2" alt="" />';
$replacements[] = '<img src="\\1" alt="" />';




Quote:
$replacements[] = "<img onmouseover=\"if(this.resized) this.style.cursor='hand';\" onclick=\"if(this.resized) window.open('\\3')\"; src=\"\\3\" onload=\"if(this.width>screen.width*0.5) {this.resized=true; this.width=screen.width*0.5; this.alt='open new window';}\" border=0 align=\"\\2\" alt=\"\" /> <br />";
$replacements[] = "<img onmouseover=\"if(this.resized) this.style.cursor='hand';\" onclick=\"if(this.resized) window.open('\\1')\"; src=\"\\1\" onload=\"if(this.width>screen.width*0.5) {this.resized=true; this.width=screen.width*0.5; this.alt='open new window';}\" border=0 alt=\"\" /><br />";


but is didn't works well if use the align=right or align=left~

and you can change the templates/newbb_thread.html like this for ie~

Quote:
<div class="comText"> <{$topic_post.post_text}></div>


Quote:
<div class="comText"> <table style="TABLE-LAYOUT: fixed; WORD-WRAP: break-word"> <tr><td><{$topic_post.post_text}></tr></td></table></div>

Login

Who's Online

201 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits