MyBB Community Forums
[Tutorial]: How To Resize Images On Your Forum - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [Tutorial]: How To Resize Images On Your Forum (/thread-101001.html)



[Tutorial]: How To Resize Images On Your Forum - Dark Byte - 2011-08-07

Step 1:
Download The Javascript Attachment Below And upload them into your ftp in a folder called jscripts

Step 2:
Login Into ACP, Go To Templates & Style >> Click on Templates >> Choose Theme >> Click on headerinclude

Step 3:
At The End Of The Script In headerinclude Add The Script Below
<script type="text/javascript" src=jscripts/thread.js?ver=1400></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>

Should look like this:
[Image: x2V4H.png]

Last Step Just Save It and test to see if it works

Download Attachment:

.zip   j script.zip (Size: 4.05 KB / Downloads: 254)






RE: [Tutorial]: How To Resize Images On Your Forum - snlow5115 - 2011-10-20

Hi

link dead? hosting account suspended?


RE: [Tutorial]: How To Resize Images On Your Forum - Dark Byte - 2011-10-20

(2011-10-20, 03:14 PM)snlow5115 Wrote: Hi

link dead? hosting account suspended?

my bad re uploaded the attachment.