Results 1 to 4 of 4

Thread: Module: Category Moderators

  1. #1

    Default Module: Category Moderators

    What query should be used to extract moderators of a category? I want to display them in a module.

  2. #2
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    You can use code that looks something like this to fetch a list of moderators:

    Code:
    $myvar = dyna_fetch_cat_moderators($catid);
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

  3. #3

    Default

    Excellent! that worked. Now all I need is a way to show the avatar next to the username. I was able to look in vba_dyna_functions and added a <br> instead of the comma in dyna_fetch_cat_moderators but cannot figure out how to add an avatar next to the username. Brian, can you help?
    I will release my work here as a module for those who may benefit from it.

  4. #4
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default

    Adding the avatars isn't going to be quite as easy... You would need to add some custom code to sort through the moderators to get a list of userids and query the avatar info from the database.
    Frequently Asked Questions
    CMPS Users Manual

    For vBadvanced software assistance, please use the support forums.
    Unsolicted PMs, IMs, and email will not be responded to.
    If you have a non-software related question or problem with your account, please submit a support ticket.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Display category parent and category when displaying category name
    By tavenger5 in forum "How Do I..." Questions
    Replies: 0
    Last Post: 10-15-2009, 04:54 PM
  2. Allowing Moderators/Super Moderators Access to vBAdvanced ACP
    By Mikey1991 in forum "How Do I..." Questions
    Replies: 3
    Last Post: 05-17-2009, 11:14 PM
  3. Bold Moderators in the Online Users module?
    By trana in forum "How Do I..." Questions
    Replies: 1
    Last Post: 10-27-2008, 10:31 AM
  4. My Category module listing on categories from that category
    By attroll in forum Feedback & Suggestions
    Replies: 7
    Last Post: 08-10-2007, 09:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •