1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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

Discussion in 'Showcase Support' started by onionaut, Mar 3, 2014.

  1. onionaut

    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!
     
  2. Bob

    Bob Developer Staff Member

    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).
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.