Ignore Content

Ignore Content [Paid] 4.0.6

No permission to buy ($30.00)
Errors after viewing log

Code:
InvalidArgumentException: Class Truonglv\IgnoreContent\Entity\Ignore\List does not match formatter pattern %s\%s\View\%s src/XF.php:1437
Generated by: Pete Thomas Nov 19, 2024 at 9:46 AM
Stack trace
#0 src/XF/App.php(1906): XF::stringToClass('Truonglv\\Ignore...', '%s\\%s\\View\\%s', 'Admin')
#1 src/XF/Container.php(233): XF\App->XF\{closure}('Truonglv\\Ignore...', Array, Object(XF\Container))
#2 src/XF/Container.php(246): XF\Container->create('view', 'Truonglv\\Ignore...', Array)
#3 src/XF/Mvc/Renderer/AbstractRenderer.php(80): XF\Container->XF\{closure}('Truonglv\\Ignore...', Array)
#4 src/XF/Mvc/Renderer/AbstractRenderer.php(88): XF\Mvc\Renderer\AbstractRenderer->createViewObject('Truonglv\\Ignore...', 'admin:tic_ignor...', Array)
#5 src/XF/Mvc/Renderer/Html.php(47): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('Truonglv\\Ignore...', 'admin:tic_ignor...', Array)
#6 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('Truonglv\\Ignore...', 'admin:tic_ignor...', Array)
#7 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#11 src/XF.php(806): XF\App->run()
#12 admin.php(15): XF::runApp('XF\\Admin\\App')
#13 {main}
Request state
array(4) {
  ["url"] => string(30) "/admin.php?tic-ignores/&page=5"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["tic-ignores/"] => string(0) ""
    ["page"] => string(1) "5"
  }
  ["_POST"] => array(0) {
  }
}
I've released new version to fix above bugs. Please upgrade to latest version.
 
How can I buy a new license for our second forum? Do I need to register a different email for a different forum? I've asked twice already but got no replies so far. I need to move on this.

Regards,

Andre
 
(Feel free to delete).
The new update introduces a visible "button" around the phrase "Ignore."

da4b4059634774cdc07bc112cd376cb2.webp

I was asked to remove it, and I spent a big chunk of time trying to identify the templates and code to modify to achieve this.

So IF this can be useful to others, here is how I did it.

Two (2) files need to be edited:
1. tic_ignore_content_button
2. tic_ignore_content_style.less


1. For tic_ignore_content_button I interrupted the call to $extraClasses by editing its name. You could use any character, I used 0.

Code:
<xf:css src="tic_ignore_content_style.less"/>
<a href="{$ignoreLink}" class="tic-button{{ $extra0Classes ? (' ' . $extra0Classes) : '' }}"
   title="{{ $isIgnored ? $phrases.unignore : $phrases.ignore }}"
   data-sk-ignore="{$phrases.ignore}" data-sk-unignore="{$phrases.unignore}"
   data-xf-click="{{ $clickInit ?: 'overlay' }}"><xf:trim>
    <xf:if is="$iconOnly">
        <xf:if is="$isIgnored">
            <xf:fa icon="fa-eye-slash" />
        <xf:else />
            <xf:fa icon="fa-eye" />
        </xf:if>
    <xf:else />
        {$buttonText}
    </xf:if>
</xf:trim></a>

2. Then, create your own CSS rule in tic_ignore_content_style.less to control the a.tic-button parameter.
Insert this code at the bottom of that file. The parameters are yours to decide, I just picked these for now.

Code:
a.tic-button {
color: #6f768d;
font-size: 0.80em;
font-weight: 400;
text-transform: none;
}

Result looks more tidy:


5a362724c95e8166475f9024ed046b7a.webp

Hope this helps!

Andre
 
Last edited:
(Feel free to delete).
The new update introduces a visible "button" around the phrase "Ignore."

View attachment 319569

I was asked to remove it, and I spent a big chunk of time trying to identify the templates and code to modify to achieve this.

So IF this can be useful to others, here is how I did it.

Two (2) files need to be edited:
1. tic_ignore_content_button
2. tic_ignore_content_style.less


1. For tic_ignore_content_button I interrupted the call to $extraClasses by editing its name. You could use any character, I used 0.

Code:
<xf:css src="tic_ignore_content_style.less"/>
<a href="{$ignoreLink}" class="tic-button{{ $extra0Classes ? (' ' . $extra0Classes) : '' }}"
   title="{{ $isIgnored ? $phrases.unignore : $phrases.ignore }}"
   data-sk-ignore="{$phrases.ignore}" data-sk-unignore="{$phrases.unignore}"
   data-xf-click="{{ $clickInit ?: 'overlay' }}"><xf:trim>
    <xf:if is="$iconOnly">
        <xf:if is="$isIgnored">
            <xf:fa icon="fa-eye-slash" />
        <xf:else />
            <xf:fa icon="fa-eye" />
        </xf:if>
    <xf:else />
        {$buttonText}
    </xf:if>
</xf:trim></a>

2. Then, create your own CSS rule in tic_ignore_content_style.less to control the a.tic-button parameter.
Insert this code at the bottom of that file. The parameters are yours to decide, I just picked these for now.

Code:
a.tic-button {
color: #6f768d;
font-size: 0.80em;
font-weight: 400;
text-transform: none;
}

Result looks more tidy:


View attachment 319570

Hope this helps!

Andre

Works but also affects the other Ignore content button, removing its border. I'll wait for your update with button option.

9f80a37693e59c67f5e573d62d102c4c.webp
 
did you check style properties? idk, i saw him mention it that way, you may need to configure it back as a button somewhere, but idk
Yes I saw there is a new style property, but that didn't seem to affect the lack of a button.

NB: moderators who have these permissions can see it in thread list:

Screenshot 2025-03-04 at 09.29.31.webp
 
Last edited:
Yes I saw there is a new style property, but that didn't seem to affect the lack of a button.

NB: moderators who had edit any thread enable could see it.
I told my users now it is back because I saw it, they said no it´s not.
Looking forward to a solution.
 
Thanks for the update @truonglv, works well (again). Simplified it and added it to different thread-type layouts.
 

Attachments

  • ignore_extended.webp
    ignore_extended.webp
    28.4 KB · Views: 16
  • ignore_threadlist.webp
    ignore_threadlist.webp
    25.6 KB · Views: 16
  • ignore_topics.webp
    ignore_topics.webp
    14.2 KB · Views: 16
Back
Top Bottom