Quote:
Originally Posted by janslu
mr.gamesbay,
you've made a terrific job. I am importing a large forum from smf to VB and I got tons of extremely large files that ruin my fluid xhtml page. Your hack saves me
There's just one thing that I think should be changed. It is illegal to declare more than one object with the same id on the same page. I think you should've used class for declaration:
1. for includes/class_bbcode.php:
Code:
return '<img src="' . $link . '" border="0" alt="" class="vBCodeIMG" />';
2. and one change in line #11 of resizevbimg.js:
Code:
if (docImg[i].width > vbimgcodeWidthMax && docImg.className == 'vBCodeIMG') {
What do you think?
|
I agree with this as it is not standard to have multiple id's in the same document. To install this hack with standards taken into consideration you may make the changes janslu mentioned above, but you must another 2 changes:
1. In line #13 of resizevbimg.js find
Code:
[i]docImg.className = vbimgcodeClassName;
and remove it completely. Or you can just comment it by adding // (double slash) before the mentioned line.
[i]2. In Styles & Templates > Style Manager > Main CSS >
Additional CSS Definitions
instead of adding
Code:
.vbimgcodelimit {
cursor: pointer;
border: dotted 1px black;
}
add
Code:
.vBCodeIMG {
cursor: pointer;
border: dotted 1px black;
}
And that's it.
Any way it is a good hack and I installed it.