Image Count Limit by User Group

Image Count Limit by User Group 2.4.0

No permission to download

Xon

Well-known member
Xon submitted a new resource:

Image Count Limit by User Group - Provides user-group based count limits for posts

Provides user-group based count limits for posts. A value of zero = use global default.

Supports:
  • Threads
  • Conversations

Permissions
  • Max Images (under Forums)
  • Max Images (under Conversations)

Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.

Contributions

If you appreciate this addon, please consider a contribution via PayPal. Details will be provide via private...

Read more about this resource...
 
Not to be stupid, but does this include hotlinked images, attached images, or both in the count?

Thanks!

:)
 
@Xon Can post quote message when have a image. Why quote message image are count? Please add support Excluded QUOTE image content.

ScreenShot00324.webp
 
@Xon Can be set based on node Category and not count smiles?
They are per forum permission, but I'm unsure if they do count smilies.

@Xon Can post quote message when have a image. Why quote message image are count? Please add support Excluded QUOTE image content.

View attachment 183783
Currently this add-on just counts all images in the post, and doesn't skip quotes.

If you are willing to pay for development time, I can implement that feature. Please open a ticket on my site https://atelieraphelion.com/ if you are interested.
 
I never realised I needed this add-on, until I actually did - and I was delighted to see that not only it was free, but it was you that coded it.

Bill Murray Thank You GIF by filmeditor
 
  • Like
Reactions: Xon
@Xon Server error log:

Code:
Error: Call to a member function getForumMessageMinImages() on null src/addons/SV/ImageCount/XF/Service/Thread/Creator.php:21

Generated by: Unknown account Nov 19, 2023 at 3:29 PM

Stack trace

#0 src/addons/SV/UserEssentials/Service/Content/SimplifiedPreviewTrait.php(64): SV\ImageCount\XF\Service\Thread\Creator->_validate()
#1 src/XF/Service/ValidateAndSavableTrait.php(19): SV\UserEssentials\XF\Service\Thread\Creator->_validate()
#2 src/XF/Pub/Controller/Forum.php(901): XF\Service\Thread\Creator->validate(NULL)
#3 src/addons/AVForums/TagEssentials/XF/Pub/Controller/Forum.php(24): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#4 src/addons/Snog/ForceSecure/XF/Pub/Controller/Forum.php(18): AVForums\TagEssentials\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#5 src/addons/xenMade/STFRT/XF/Pub/Controller/Forum.php(35): Snog\ForceSecure\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#6 src/addons/SV/ElasticSearchEssentials/XF/Pub/Controller/Forum.php(92): xenMade\STFRT\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(352): SV\ElasticSearchEssentials\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), NULL)
#9 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), NULL)
#10 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#12 src/XF.php(524): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}

Request state

array(4) {
  ["url"] => string(47) "/forums/welcome-and-introductions.7/post-thread"
  ["referrer"] => string(69) "/forums/welcome-and-introductions.7/post-thread"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(11) {
    ["_xfToken"] => string(8) "********"
    ["title"] => string(61) "কি লিখবো আমি নতুন সদস্য"
    ["discussion_type"] => string(10) "discussion"
    ["message_html"] => string(0) ""
    ["tokens_select"] => string(28) "নতুন সদস্য"
    ["tags"] => string(55) "thanks, all, নতুন, নতুন সদস্য"
    ["cf-turnstile-response"] => string(538) "0.zNjaGCscZw3HLwIeDnJhfx7iwPrUztd1pW6-AcJMDcL3fZLdhXjOJCs0qGEqfb-wTvAfTR15Fc-S9BrD3mO2prvpPHjDSQzJRcswcpjkeVTvU-OeJ5ktwWn8iEATjcOfI_xjWOgPrEIUmwn52Qx_ewu3Wi-xmtCzczF5FykiSqY-GiTi7heWmMPXBCEEL_p_tDml6z5TKEVe07PJ0HJLQmY8UazXNq5lxZbzd7RPxriwhnOyh4IeBlyM5ok1f-F7D01uARXd3bLkXTjq-hf6nv6iz2HIvHVvAW2zcwlNuORTMzkA5TAPURGfIAlCAx12c79tAM4MSeGd-V3WFkcQyDIM1lR-esjHHruzbXlUejJ4p446j6_FgnPoJttvH30V5zKy-dtpSskO-NvKYwAH1VDGr4llEmgn-LiNKnVwWM1xSj8m1mso7uVRyVr75RQd.ancOekqp1Pbr9NdThqAXXA.4885109efff583e11724f8eff422ca865520d0c108d3208e25c467deb51e7760"
    ["nodeId"] => string(1) "7"
    ["_xfRequestUri"] => string(47) "/forums/welcome-and-introductions.7/post-thread"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Top Bottom