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
(2012-05-14, 11:53 AM)Matt-One Wrote: [ -> ]is this plugin working with image link to imageshack for example? or only with image hosted on my web server?

I'm pretty sure it works with any and all images.
(2012-05-13, 03:42 AM)Shemo Wrote: [ -> ]g33k,

looking at this post here, is it possible to force a max width only on the portal page? for example, if a photo is larger than 550px wide, your plugin will resize it, but only on the portal page.

If you want it only on the portal then install the plugin and remove the jscript call elements from all the other templates except the portal.
You can check the templates that are changed here: http://community.mybb.com/thread-53553-p...#pid582651

(2012-05-14, 11:53 AM)Matt-One Wrote: [ -> ]is this plugin working with image link to imageshack for example? or only with image hosted on my web server?

This plugin uses javascript to resize, so any image that is on the page that is above the set limits will be resized.
(2012-05-15, 06:01 AM)- G33K - Wrote: [ -> ]
(2012-05-13, 03:42 AM)Shemo Wrote: [ -> ]g33k,

looking at this post here, is it possible to force a max width only on the portal page? for example, if a photo is larger than 550px wide, your plugin will resize it, but only on the portal page.

If you want it only on the portal then install the plugin and remove the jscript call elements from all the other templates except the portal.
You can check the templates that are changed here: http://community.mybb.com/thread-53553-p...#pid582651

I want to use it in conjunction with the rest of the forum, but I want to use a different max width for the portal section separate from the max width of the threads in the forum because the portal section that pulls announcement isn't as wide as a standard thread.

hope that makes sense.

for example, I want the max width for photos on the portal to be 550px; anything larger than that, your plugin would resize them. for my forum, I have it set to auto.
(2012-05-15, 09:18 PM)Shemo Wrote: [ -> ]
(2012-05-15, 06:01 AM)- G33K - Wrote: [ -> ]
(2012-05-13, 03:42 AM)Shemo Wrote: [ -> ]g33k,

looking at this post here, is it possible to force a max width only on the portal page? for example, if a photo is larger than 550px wide, your plugin will resize it, but only on the portal page.

If you want it only on the portal then install the plugin and remove the jscript call elements from all the other templates except the portal.
You can check the templates that are changed here: http://community.mybb.com/thread-53553-p...#pid582651

I want to use it in conjunction with the rest of the forum, but I want to use a different max width for the portal section separate from the max width of the threads in the forum because the portal section that pulls announcement isn't as wide as a standard thread.

hope that makes sense.

for example, I want the max width for photos on the portal to be 550px; anything larger than that, your plugin would resize them. for my forum, I have it set to auto.

In your portal template find this line:

var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";

and replace it with

var fitonpage_resize = "550";

Replace 550 with your size. You might have to add 200 to this value if you want to resize at exactly 550, so enter 750 instead of 550, this is because the plugin compensates about 200px for the sidebar in the portal.
(2012-05-20, 09:37 AM)- G33K - Wrote: [ -> ]
(2012-05-15, 09:18 PM)Shemo Wrote: [ -> ]
(2012-05-15, 06:01 AM)- G33K - Wrote: [ -> ]
(2012-05-13, 03:42 AM)Shemo Wrote: [ -> ]g33k,

looking at this post here, is it possible to force a max width only on the portal page? for example, if a photo is larger than 550px wide, your plugin will resize it, but only on the portal page.

If you want it only on the portal then install the plugin and remove the jscript call elements from all the other templates except the portal.
You can check the templates that are changed here: http://community.mybb.com/thread-53553-p...#pid582651

I want to use it in conjunction with the rest of the forum, but I want to use a different max width for the portal section separate from the max width of the threads in the forum because the portal section that pulls announcement isn't as wide as a standard thread.

hope that makes sense.

for example, I want the max width for photos on the portal to be 550px; anything larger than that, your plugin would resize them. for my forum, I have it set to auto.

In your portal template find this line:

var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";

and replace it with

var fitonpage_resize = "550";

Replace 550 with your size. You might have to add 200 to this value if you want to resize at exactly 550, so enter 750 instead of 550, this is because the plugin compensates about 200px for the sidebar in the portal.

thanks! worked like a charm!!
Any way to get this thing to work in spoiler tags?
On my Pro Portal, Fit on Page doesn't work..maybe because I have proportal as homepage..
(2012-06-16, 08:36 AM)niere8 Wrote: [ -> ]On my Pro Portal, Fit on Page doesn't work..maybe because I have proportal as homepage..

Add the template edits that get added to the portal templates to the pro-portal templates. The plugin does not add it automatically since pro-portal is a third party plugin.
quotes have smaller width, so if somebody quote an image, the post width became larger than the other posts and its looks bad

can you add different max width for the quotes?
Hello i have a problem this Fit on page & Thankyou/Like plugin don't work at the same time... Have to disable one to run another, Javascript clash i guess ??
How do i resolve this ??
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