Jump to content

Community

HeadStand

Recent Posts (Sidebar Block)

Recommended Posts

Recent Posts (Sidebar Block)

File name: Recent Posts (Sidebar Block)
Submitter: HeadStand
Submitted: 08/10/2011
Category: User and Social Engagement
Demo :
Discussion URL :
Supported Versions: IP.Board 3.2.x,IP.Board 3.3.x,IP.Board 3.4.x
Support Info : http://community.invisionpower.com/topic/344183-recent-posts-sidebar-block

Displays latest active topics in a sidebar block on the Board Index page.

  • Allows Administrator to configure displayed content
    • Show/hide topic starter information
    • Show/hide forum information
    • Show/hide number of views and replies
    • Show/hide first OR last post
    • Show/hide last poster information
    • BBCode support
  • Permission settings
  • Includes 10 System Settings (can be found under System -> System Settings -> HeadStand -> [HSC] Recent Posts)
  • Checks forum access before retrieving posts

This hook is compatible with IPB 3.2, 3.3, and 3.4. 







 


View File

Share this post


Link to post
Share on other sites

Why cant we see it on our board...?


www.forea.org/foros


Thanks.





Does not work here either. Installed and I can change settings but it does not show on the site.




Not working here either on a clean installation ... :(

Share this post


Link to post
Share on other sites

Can you all check the Board Index -> recentPosts template - see if it's blank.




It's blank here.

Strange thing though : I disabled the hook and re-enabled it afterwards and then it was working ...

Share this post


Link to post
Share on other sites

Really strange.... the only thing I can think of is that the skin template wasn't properly imported? Can you all check the Board Index -> recentPosts template - see if it's blank.



Is not that.



It's blank here.



Strange thing though : I disabled the hook and re-enabled it afterwards and then it was working ...



That does not work for us.

Share this post


Link to post
Share on other sites

Working here, but I'm unable to sent the content length to '0'. Plus it is skinned slightly differently to the 'Recent Topics' block, ideally it should look the same so that it matches in?

Share this post


Link to post
Share on other sites

Working here, but I'm unable to sent the content length to '0'.


Setting the content length to 0 tells the hook to display the entire post. If you want to hide the content completely, set "Post Content" to "None".

Plus it is skinned slightly differently to the 'Recent Topics' block, ideally it should look the same so that it matches in?


I originally had it skinned similar to that, but with the post content enabled, all the text looked like it was running together. You are of course free to change the skin template....


yes it is blank



Are you using the default IP.Board skin? Or a custom one?

Share this post


Link to post
Share on other sites

Hopefully this is ok to post, add this to recentPosts:


<div class='ipsSideBlock'>

<h3><img src='{$this->settings['img_url']}/comment_new.png' alt='' /> {$this->lang->words['recentposts_title']}</h3>

	<div class='_sbcollapsable'>

  <foreach loop="posts:$recentPosts as $post">

        	<div class='ipsBox_container ipsPad'>

        	<a href='{parse url="showtopic={$post['tid']}" base="public" seotitle="{$post['title_seo']}" template="showtopic"}'><b>{$post['title']}</b></a> <a href='{parse url="showtopic={$post['tid']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$post['title_seo']}"}' title='{$this->lang->words['view_last_post']}'>{parse replacement="f_lastpost"}</a>

        	<br/>

        	<if test="forum:|:$this->settings['hsc_rp_showforum'] == 1">

        	{$this->lang->words['forum']}: <a href='{parse url="showforum={$post['forum_id']}" base="public" seotitle="{$post['forum_name_seo']}" template="showforum"}'>{$post['forum_name']}</a>

        	<br/>

        	</if>

        	<if test="starterInfo:|:$this->settings['hsc_rp_start'] == 1">

        	{$this->lang->words['started_by']}: <a href='{parse url="showuser={$post['starter_id']}" base="public" seotitle="{$post['seo_first_name']}" template="showuser"}'>{$post['starter_name']}</a> <span class='date'>({$post['start_date']})</span>

        	<br/>

        	</if>

        	<if test="firstPost:|:$this->settings['hsc_rp_post'] == 'F'">

        	{$post['post']}

        	<br/>

        	</if>

        	<if test="views:|:$this->settings['hsc_rp_views'] == 1">

        	{$this->lang->words['views']}: {parse format_number="$post['views']"}   {$this->lang->words['replies']}: {parse format_number="$post['posts']"}

        	<br/>

        	</if>

        	<if test="lastPostInfo:|:$this->settings['hsc_rp_last'] == 1">

        	{$this->lang->words['last_reply']}: <a href='{parse url="showuser={$post['last_poster_id']}" base="public" seotitle="{$post['seo_last_name']}" template="showuser"}'>{$post['last_poster_name']}</a> <span class='date'>({$post['last_post']})</span>

        	<br/>

        	</if>

        	<if test="lastPost:|:$this->settings['hsc_rp_post'] == 'L' and $post['post']">

        	{$post['post']}

        	</if>

        	</div>

  </foreach>

   </div>

</div>

<br />

Share this post


Link to post
Share on other sites

You can change the block title in the following language pack: Forums -> public_boards. The language key is recentposts_title.

I will look into the template issue and (hopefully) post a fix today.

Share this post


Link to post
Share on other sites

You can change the block title in the following language pack: Forums -> public_boards. The language key is recentposts_title.



I will look into the template issue and (hopefully) post a fix today.



We fixed it c + p what Andrews8602 posted.

Share this post


Link to post
Share on other sites

Fix has been uploaded. Version number stays the same, but the installation should be corrected.



Please let me know if there are any further issues.



Post content limit in 0 does not work.
We do not want to show any character.

Share this post


Link to post
Share on other sites

Post content limit in 0 does not work.


We do not want to show any character.



Setting the content length to 0 tells the hook to display the entire post. If you want to hide the content completely, set "Post Content" to "None".


After searching for 20 minutes,where are the settings for this hook? [img]

[/img]



System Settings -> HeadStand -> [HSC] Recent Posts (Sidebar Block)

Share this post


Link to post
Share on other sites

Can this be developed for the portal via an IP Content block please.



Sure, but no timeline right now. I have to first finish upgrading my existing mods before I can start producing new ones (people might have my head otherwise). Feel free to remind me in a couple of weeks if you don't see it available.

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...