MyBB Hacks

Full Version: How to make Fit On Page work with ProPortal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After RateU's success at getting my article gallery to resize images using the Fit On Page plugin, I figured I'd start a new thread to see if anyone can help me get my ProPortal working with Fit On Page.  Right now, everytime there is a new announcement post with large images, my ProPortal margins break.  I'd love to be able to have resized posts on the portal!  The portal is used as my home page.

This is a minor problem and I understand if you guys are busy...but I figured I'd ask because you all make it look easy!  I have been messing around with it all day and haven't gotten anywhere!  LOL

This is my pro_portal_announcement template

Code:
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right" valign="middle">
<span style="float: left;">{$avatar}</span>
<span class="smalltext">{$lang->posted_by} {$profilelink} - {$anndate} {$anntime}<br />{$views} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
	<tr>
		<td class="trow1" style="border: 0px;">
			<p style="margin: -2px 0;">
				{$message}
			</p>
			{$post['attachments']}
		</td>
	</tr>
</table>
</td>
</tr>
<tr>
<td class="trow2" align="right" valign="middle">
<span class="smalltext">
<a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/printable.gif" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/send.gif" alt="{$lang->send_to_friend}" title="{$lang->send_to_friend}" /></a>
</span>
</td>
</tr>
</table>
<br />

I'm using ProPortal also, still I'm not sure but there should be some call for the plugin on the portal template. Since the Fit on Page plugin probably inserts the code in postbit also.
User highslide image resizer plugin, it will fit the images at any place, pro portal, xthreads and all.
(12-15-2010 07:47 PM)1master1 Wrote: [ -> ]User highslide image resizer plugin, it will fit the images at any place, pro portal, xthreads and all.

I've thought about Highslide...wonder if it will work with Fit on Page?  The only thing I don't like about Highslide is no control over thumbnail size.
you can change the resize image attributes in the plugin .php file directly and i think it will work along with fit on page
Good news!  G33k (Fit to page author) logged into my ACP and got me fixed up on the portal!  Everything is golden now!

I may still look into Highslide though!  I like the light box effect.

Thanks everyone!
Reference URL's