Jump to content
DevFuse Forums

uPortal image resize issue


Recommended Posts

  • Management

I've only tested this with the inbuilt "News" settings from uPortal but should resize those external images.

 

Open Admin CP > Look & Feel Tab > select skin > skin_uportal > portal_end.

 

Find:

</table>

 

Add BELOW:

<script type='text/javascript'>
ipb.vars['image_resize'] = {parse expression="intval($this->settings['resize_linked_img'])"};
ipb.global.post_width	 = 500;
// Resize images
$$('.post', '.poll').each( function(elem){
	ipb.global.findImgs( $( elem ) );
});
</script>

 

Save.

 

Open Admin CP > Look & Feel Tab > select skin > skin_uportal > news_block.

 

Find:

<td class='row2'><if test="limitNewsHeight:|:$newsforum_height==1">

 

Replace With:

<td class='post'><if test="limitNewsHeight:|:$newsforum_height==1">

 

Save.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...