How to resize newsfeed images in oxwall 1.5

How to resize newsfeed images in oxwall 1.5

 After I upgraded to oxwall 1.5, I discovered that my newsfeed images appear as a small thumbnail on the newsfeed and enlarges only when clicked. I needed something different so I posted a forum topic on the oxwall forum but the answers I received wasn’t convincing enough, usually, I would either ignore the whole idea and move on but this time I chose to play with custom coding, here is the result.

Re-size Newsfeed Images?
The oxwall newsfeed plugin automatically re-sizes the width of images on the newsfeed to 150px, If you wish to change this and use a custom size simply follow the step to step guide below.

  • Login to your cpanel/ftp
  • Locate ajax_oembed_attachment.html in (/ow_system_plugins/base/views/components)
  • Download this file (for backup purpose)
  • Open/Edit  ajax_oembed_attachment.html
  • Find (use ctr+f for find):

(‘.ow_oembed_attachment’),{width:’150′})

  • Replace the above code with:

(‘.ow_oembed_attachment’),{width:’350′})

  •  Now find (use ctr+f for find):

.ow_oembed_attachment .two_column .attachment_left {
float: left;
max-width: 150px;
margin-right: 8px;
}

  • Replace this code with:

.ow_oembed_attachment .two_column .attachment_left {
float: left;
max-width: 350px;
margin-right: 8px;
}

 

  • TAGS :

Recieve Free Email Updates!

Leave a Reply