SimplePortal

Customization => Custom Coding => Topic started by: SimianSteam on August 27, 2014, 09:40:48 AM

Title: Easy one: Displaying an Action in a block
Post by: SimianSteam on August 27, 2014, 09:40:48 AM
Tried searching for this, but maybe my brain just isn't working correctly this morning.

I want to have a custom block that displays Topics with Unread Replies. The Action is

Code: [Select]
index.php?action=unreadreplies
Help?
Title: Re: Easy one: Displaying an Action in a block
Post by: Xarwin on August 31, 2014, 03:12:01 PM
Inside your block (when editing), you should have an option "Advanced Options".
Click it, and you'll get a whole new menu. What you are searching for should be in there.
Title: Re: Easy one: Displaying an Action in a block
Post by: andy on August 31, 2014, 04:29:45 PM
It looks like there is no simple answer!

http://www.simplemachines.org/community/index.php?topic=433375.0
Title: Re: Easy one: Displaying an Action in a block
Post by: Burke Knight on August 31, 2014, 05:55:27 PM
Inside your block (when editing), you should have an option "Advanced Options".
Click it, and you'll get a whole new menu. What you are searching for should be in there.

??? That has nothing to do with the OP's question.
The OP is not looking for placement options, but looking to PUT an action into a block.
Title: Re: Easy one: Displaying an Action in a block
Post by: andy on September 01, 2014, 02:23:01 AM
Yes sorry, BurkeKnight is correct. In advanced display options there is 'Recent Unread Topics'.

But maybe not  quite what you want if its 'posts'/replies only.





Display Options
Advanced Options Show Block On
* Select Actions

    Portal
    Forum
    Recent Posts
    Recent Unread Topics
    Updated Topics
    Profile
    My Messages
    Calendar
    Admin
    Login
    Register
    Post
    Forum Stats
    Search
    Members List
    Moderate
    Help
    Who's Online
    Check all
Title: Re: Easy one: Displaying an Action in a block
Post by: Burke Knight on September 01, 2014, 07:07:21 AM
Have you checked the custom blocks board, to see if anyone has done an Unread Posts block?
Title: Re: Easy one: Displaying an Action in a block
Post by: Xarwin on September 01, 2014, 11:19:16 AM
Oh so sorry!
I totally misread what was written.

I know that the functions can be found in Recent.php and Recent.template.php.
Not sure if they are easy to extract.
SimplePortal 2.3.8 © 2008-2024, SimplePortal