how to show excerpt in every posts like sticky post?

  1. 5 years ago

    hi all, I need some help... , how to show excerpt in every posts like sticky post???

    Thanks a lot...

    You'll have to manually patch some code.

    Line 472 of core/models/ETSearchModel.class.php:

    -  ->from("post p", "c.sticky AND c.conversationId=p.conversationId AND c.startTime=p.time", "left")
    +  ->from("post p", "c.conversationId=p.conversationId AND c.startTime=p.time", "left")

    Line 47 of core/views/conversations/conversation.php:

    - if ($conversation["sticky"])

    (Remove lines prefixed with - and add lines prefixed with +)

  2. Toby

    26 Feb 2014 Administrator Answer
    Edited 5 years ago by Toby

    You'll have to manually patch some code.

    Line 472 of core/models/ETSearchModel.class.php:

    -  ->from("post p", "c.sticky AND c.conversationId=p.conversationId AND c.startTime=p.time", "left")
    +  ->from("post p", "c.conversationId=p.conversationId AND c.startTime=p.time", "left")

    Line 47 of core/views/conversations/conversation.php:

    - if ($conversation["sticky"])

    (Remove lines prefixed with - and add lines prefixed with +)

  3. Done... thanks a lot @Toby ;)

  4. this is the result http://dev.socmath.com/ :D

 

or Sign Up to reply!