MyBB Community Forums

Full Version: [Release 1.4/1.6] Fit on Page (Update: v2.3 Released)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Is there anyway to get an image to Fit to Page on a preview?
Hello, i have Fit on Page and ProPortal
I read a post in page 26 of this topic in which G33K said to change all scripts in PROPORTAL templates in
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
    var fitonpage_on = "{$mybb->settings['g33k_fitonpage_enabled']}";
    var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";
    var fitonpage_fluid = "{$mybb->settings['g33k_fitonpage_fluid']}";
    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 = "{$mybb->settings['g33k_fitonpage_topbar_text_class']}";
    var fitonpage_topbar_bground = "{$mybb->settings['g33k_fitonpage_topbar_bground']}";
    var fitonpage_topbar_icon = "{$mybb->settings['g33k_fitonpage_topbar_icon']}";
    var fitonpage_location = "portal";
-->
</script>
For me it didn't work. Why?
How do I get this to work with a theme?

Works perfect with the default theme, but not on a theme I have installed
You'll need to make these changes to the templates of the custom theme: http://community.mybb.com/thread-53553-p...#pid582651
(2014-01-27, 12:38 PM)Cameron:D Wrote: [ -> ]You'll need to make these changes to the templates of the custom theme: http://community.mybb.com/thread-53553-p...#pid582651
I had already tried that with no luck

I've edited the template, but this photo for example is not showing http://irishmotoring.com/showthread.php?...10#pid1210
Please ignore.. I am an idiot...

I didn't have css formatting on Sad
Hi I have the exact same problem. Side of the image just cut out. I am using themefreak.net Duty-call theme. Any workaround? please let me know
Does it take a few seconds for anyone else for the picture to resize to fit on page
Fit on Page and Profile Comments

We will make works? Thx
It doesn't work for me Sad Using ChowSpace
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37