Mysterioux Posted July 25, 2011 Share Posted July 25, 2011 File Name: Recent Posts File Submitter: Shaydx File Submitted: 24 Jul 2011 File Category: Content Management Supported Versions: IP.Content 2.3.x Adds a very nice looking block that will show your 5 recent posts. here to download this file Link to comment Share on other sites More sharing options...
TCB Posted August 7, 2011 Share Posted August 7, 2011 Looks great, thank you very much Link to comment Share on other sites More sharing options...
Mysterioux Posted August 7, 2011 Author Share Posted August 7, 2011 Glad you like it :) Link to comment Share on other sites More sharing options...
SECTalk.com Posted October 6, 2011 Share Posted October 6, 2011 Two questions: -How can you make the link go to the first unread post, and -Can you change the picture to the last poster's picture, instead of the topic starter's -and if not, then how can you remove the picture entirely? Thank you for this block, it is fantastic! :) Link to comment Share on other sites More sharing options...
3DKiwi Posted October 6, 2011 Share Posted October 6, 2011 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="" /> {$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: </i><b><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$r['title']}</a></b> Replies: {$r['topic_posts']}<br /> By: {$r['seo_first_name']} Last Post By: {$r['name']} <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 More sharing options...
Marcher Technologies Posted October 6, 2011 Share Posted October 6, 2011 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="" /> {$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: </i><b><a href='{$r['url']}' rel='bookmark' title='{$r['title']}'>{$r['title']}</a></b> Replies: {$r['topic_posts']}<br /> By: {$r['seo_first_name']} Last Post By: {$r['name']} <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 More sharing options...
SECTalk.com Posted October 6, 2011 Share Posted October 6, 2011 Thanks fellas! Link to comment Share on other sites More sharing options...
NewRockRabbit Posted October 16, 2011 Share Posted October 16, 2011 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 Excuse my ignorance 3DKiwi, but do you need IP.Content for your code to work? TIA Link to comment Share on other sites More sharing options...
3DKiwi Posted October 16, 2011 Share Posted October 16, 2011 Excuse my ignorance 3DKiwi, but do you need IP.Content for your code to work? TIA Yes. Thanks Marcher Technologies, I have tidied up my image url as you described. 3DKiwi Link to comment Share on other sites More sharing options...
tenaki Posted December 2, 2011 Share Posted December 2, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.