2011-12-31, 11:21 AM
not working in 1.6.5
i tried most
EDIT 1:
it is working fine in default theme, but not in customized theme, so what i want to change in new theme.....??
EDIT 2:
i found, some js code is conflicting with other.
Code:
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
first line is the conflicting code, how can i fix it.....??
because in default theme the first line of code is not there, so if we fixed this means, this mod will work on 1.6.5
that's why fit on page works for some member(may they don't have any js conflict)
EDIT 3:
Fix for fot on page for mybb 1.6.5
Found the solution
just removed the conflicted js, that's all......
if you can't understand means,
first use default theme, and you will see the working of fit on page, press ctrl + u and view the page source,
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
check any js is conflicting, that is check for above code and if there is any other code is found above that code means, you need to fix
Eg:
Code without conflict
</script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
var fitonpage_on = "1";
var fitonpage_resize = "800";
var fitonpage_fluid = "90";
var fitonpage_topbar_resized = "Image has been scaled down %PERCENT% (%RSIZE%). Click this bar to view original image (%OSIZE%). Click image to open
in new window.";
var fitonpage_topbar_full = "Image is shown in its original resolution (%OSIZE%). Click this bar to resize image to fit in page (%RSIZE%). Click
image to open in new window.";
var fitonpage_topbar_text_class = "smalltext";
var fitonpage_topbar_bground = "FFFF99";
var fitonpage_topbar_icon = "images/icons/information.gif";
var fitonpage_location = "showthread";
-->
</script>
Code with Conflict:
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
var fitonpage_on = "1";
var fitonpage_resize = "800";
var fitonpage_fluid = "90";
var fitonpage_topbar_resized = "Image has been scaled down %PERCENT% (%RSIZE%). Click this bar to view original image (%OSIZE%). Click image to open in new window.";
var fitonpage_topbar_full = "Image is shown in its original resolution (%OSIZE%). Click this bar to resize image to fit in page (%RSIZE%). Click image to open in new window.";
var fitonpage_topbar_text_class = "smalltext";
var fitonpage_topbar_bground = "FFFF99";
var fitonpage_topbar_icon = "images/icons/information.gif";
var fitonpage_location = "showthread";
-->
</script>
i tried most

EDIT 1:
it is working fine in default theme, but not in customized theme, so what i want to change in new theme.....??
EDIT 2:
i found, some js code is conflicting with other.
Code:
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
first line is the conflicting code, how can i fix it.....??
because in default theme the first line of code is not there, so if we fixed this means, this mod will work on 1.6.5
that's why fit on page works for some member(may they don't have any js conflict)
EDIT 3:
Fix for fot on page for mybb 1.6.5
Found the solution
just removed the conflicted js, that's all......
if you can't understand means,
first use default theme, and you will see the working of fit on page, press ctrl + u and view the page source,
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
check any js is conflicting, that is check for above code and if there is any other code is found above that code means, you need to fix
Eg:
Code without conflict
</script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
var fitonpage_on = "1";
var fitonpage_resize = "800";
var fitonpage_fluid = "90";
var fitonpage_topbar_resized = "Image has been scaled down %PERCENT% (%RSIZE%). Click this bar to view original image (%OSIZE%). Click image to open
in new window.";
var fitonpage_topbar_full = "Image is shown in its original resolution (%OSIZE%). Click this bar to resize image to fit in page (%RSIZE%). Click
image to open in new window.";
var fitonpage_topbar_text_class = "smalltext";
var fitonpage_topbar_bground = "FFFF99";
var fitonpage_topbar_icon = "images/icons/information.gif";
var fitonpage_location = "showthread";
-->
</script>
Code with Conflict:
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1600"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
var fitonpage_on = "1";
var fitonpage_resize = "800";
var fitonpage_fluid = "90";
var fitonpage_topbar_resized = "Image has been scaled down %PERCENT% (%RSIZE%). Click this bar to view original image (%OSIZE%). Click image to open in new window.";
var fitonpage_topbar_full = "Image is shown in its original resolution (%OSIZE%). Click this bar to resize image to fit in page (%RSIZE%). Click image to open in new window.";
var fitonpage_topbar_text_class = "smalltext";
var fitonpage_topbar_bground = "FFFF99";
var fitonpage_topbar_icon = "images/icons/information.gif";
var fitonpage_location = "showthread";
-->
</script>