1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Moderation queue: Show forum the post/thread is in

Discussion in 'XenForo Questions and Support' started by CyclingTribe, Jul 30, 2014.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    Could anyone advise how I could query and display the forum name for posts and threads in the moderation queue template (moderation_queue_list), for example:

    Thread: Test Thread
    Posted: Moday at 16:34
    Posted By: Shaun
    Forum: [Forum/node name]
    Message: ...

    Shaun :D
  2. Liam W

    Liam W Well-Known Member

    I made an addon for this for someone...

    I can't remember if the info is there or not.

  3. CyclingTribe

    CyclingTribe Well-Known Member

    Was the add-on a private commission for a customer?

    I did have a look at the mod queue table and there was a date, thread/post content type, and an ID - that was is. So presumably there is a line in the template that uses this info to query the content and produce the thread/post links, but I'm not sure how I'd do it to generate the forum name (or if that's even possible from within the templates?).
  4. Liam W

    Liam W Well-Known Member

    Yes, it was :)

    Yes, there was. You would probably need PHP access, as the node id is there, but the forum name isn't.

  5. Brogan

    Brogan XenForo Moderator Staff Member

    You have to left join the thread.node_id to node.node_id in order to get the node title.

Share This Page