We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Blog Display | Forum

Christina
Christina Mar 3 '15
Hi,


I need to change the current blog display under the "LATEST" tab.  This blog summary should display the image (and a small section of the blog), not the entire blog itself. The current display makes the page very long once there are a few blogs created.  


Look at these blog pages on the internet: 

Anthropologies

Yahoo


How do I go about modifying the display?  


Thanks. 


Christina. 

Oxwall Software
Oxwall Software Mar 10 '15
Topic was moved from Blogs.
Ron Scott
Ron Scott Apr 18 '15
This is what I'm using, not sure how to insert an image there though.
see the attached pic.

In /ow_plugins/blogs/controllers/blog.php look for this code, line 135 in my file.

$text = explode("<!--more-->", $dto->getPost());

Change it to:
$text = explode("<!--more-->", UTIL_String::truncate( strip_tags($dto->getpost()), 200, "<!--more-->" )  );

Change the 200 to however long or short you want the description.
Attachments:
  2348-User blogs.png (244Kb)
matt
matt Apr 19 '15
Very useful! Thanks.

Getting the images to show too, would be awesome. Anyone got any ideas.

Thanks again,