Jump to content

Apfelstrudel

Clients
  • Posts

    689
  • Joined

  • Last visited

  • Days Won

    1

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Apfelstrudel

  1. Hello,

    we have a condition in our post template to hide user reactions in special forums.

    We do this with following condition (i.e. forum id=10):

    			{{if !in_array($comment->item()->container()->id, array(10)) && !\IPS\Member::loggedIn()->restrict_post}}
    				{{if !( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) )}}
    					{{if \IPS\IPS::classUsesTrait( $comment, 'IPS\Content\Reactable' ) and settings.reputation_enabled}}
    						{template="reputation" group="global" app="core" params="$comment"}
    					{{endif}}
    				{{endif}}
    			{{endif}}

    Now we want to hide the reaction bar also for topics marked with a special tag.

    Is it possible to filter by tag within the post template? If yes, how can we do that?

    Thanks in advance for any help.

    Best regards

  2. On 4/21/2021 at 8:25 AM, Daniel F said:
    select id1 as topic_id ,count(*) as total FROM core_attachments_map where location_key = 'forums_Forums'  group by id1 order by total desc

    will return the topics with the most attachments

    Hello Daniel,

    this query works pretty good but what do I have to add to this query that it only shows results for a specific forum id?

  3. Hi,

    Today I found out that writing a new PM or replying to one also triggers the "comment/reply is posted" rule.

    I don't want to reward members for PMs in the background. I just want to reward them for posting topics and replies.

    How can I exclude PMs from this rule? No PN option is being shown when using the location filter.

    Thanks in advance and best regards,

       Roland

  4. Hello,

    in 4.6.9 the template of the related content widget has been changed. Now it shows hidden topics also to guests - of course marked as hidden.

    ---

    Update: Now it's gone because maybe a guest triggered the widget rebuild and replaced it in cache. But is this intended that if a mod triggers the rebuild the normal people see those kind of "insights" unless the cache is being deleted again?

  5. Hello,

    how can I deactivate or extend the username shortening ("xyz...") on mobile?

    From my point of view the length of the shortened name is too short.

    BTW, I found out that you can see the "..." only on real mobile phones. If you use the inspector tool and simulate phones no "..." are visible.

    Thanks for your help.

    -----------

    Sorry guys, my fault. There was a small piece of code from before the upgrade. Now the shortening is gone. 😂

×
×
  • Create New...