• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Hide Showcase Items per usergroup

onionaut

New Member
Showcase
Hi Bob,

Would it be possible for Showcase items user posted to be hidden away from main usergroup and public guests once user subscription expires and falls back to the main usergroup that has no privilege to post items in Showcase.

Please advise

Thank you!
 
I can't think of any way to handle that without some custom code. Just thinking out loud, you could probably do something via CRON (nightly) that would get a list of user IDs that had their subscriptions expire and then use those IDs to run a method to change the showcase items from a "visible" state to "deleted" (which is soft deleted) OR move them into a hidden category. Either way, you'd need to make sure you use the DataWriters to do this as you can't just manually manipulate the DB as their are methods in the DWs that need to fire based on certain changes (like state changes and category moves).
 

Similar threads

Back
Top