Jump to content

Recent Posts


Mysterioux

Recommended Posts

  • 2 weeks later...
  • 1 month later...

Without wishing to hijack this thread. The following code is code I put together to create a Recent posts block. No images and link is to the last post.

Hope this helps.

3DKiwi


<div class='general_box'>

<h3><img src="http://www.mysite.com/forums/public/style_images/greylust/comment_new.png" alt="" />&nbsp;{$title}</h3>	  

<ul class='hfeed'>

  <if test="is_array( $records ) && count( $records )">

  {parse striping="feed_striping" classes="row1,row2 altrow"}

  <foreach loop="$records as $r">

  <li class='hentry {parse striping="feed_striping"}'><i>Topic:&nbsp;&nbsp;</i><b><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$r['title']}</a></b>&nbsp;&nbsp;Replies: {$r['topic_posts']}<br />

				By:&nbsp;{$r['seo_first_name']}&nbsp;&nbsp;&nbsp;&nbsp;Last Post By:&nbsp;&nbsp;{$r['name']}&nbsp;&nbsp;

   <span class='date'><abbr class="published" title="{parse expression="date( 'c', $r['date'] )"}">{parse date="$r['date']" format="tiny"}</abbr></span><br />

   <span class='desctext'>{IPSText::truncate( strip_tags($r['content']), 50 )}</span><br />

  </li>

  </foreach>

  </if>

</ul>

</div>

<br />

Link to comment
Share on other sites


Without wishing to hijack this thread. The following code is code I put together to create a Recent posts block. No images and link is to the last post.



Hope this helps.



3DKiwi




<div class='general_box'>

<h3><img src="http://www.mysite.com/forums/public/style_images/greylust/comment_new.png" alt="" />&nbsp;{$title}</h3>	  

<ul class='hfeed'>

  <if test="is_array( $records ) && count( $records )">

  {parse striping="feed_striping" classes="row1,row2 altrow"}

  <foreach loop="$records as $r">

  <li class='hentry {parse striping="feed_striping"}'><i>Topic:&nbsp;&nbsp;</i><b><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$r['title']}</a></b>&nbsp;&nbsp;Replies: {$r['topic_posts']}<br />

				By:&nbsp;{$r['seo_first_name']}&nbsp;&nbsp;&nbsp;&nbsp;Last Post By:&nbsp;&nbsp;{$r['name']}&nbsp;&nbsp;

   <span class='date'><abbr class="published" title="{parse expression="date( 'c', $r['date'] )"}">{parse date="$r['date']" format="tiny"}</abbr></span><br />

   <span class='desctext'>{IPSText::truncate( strip_tags($r['content']), 50 )}</span><br />

  </li>

  </foreach>

  </if>

</ul>

</div>

<br />



other than swapping
http://www.mysite.com/forums/public/style_images/greylust/ for {style_images_url} well done sir ;)
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Mine seems to have stopped working correctly, yesterday I noticed that the posts had the wrong members attached to them, I recached and it seemed to work fine but today i notice that the time is always PM and it seems to have stopped updating.

Is it a cache issue do you think

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...