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

CTXMedia

Formerly CyclingTribe
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: ...

Cheers,
Shaun :D
 

Liam W

Well-known member
I made an addon for this for someone...

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

Liam
 

CTXMedia

Formerly CyclingTribe
I made an addon for this for someone...

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

Liam
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?).
 

Liam W

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?).
Yes, it was :)

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

Liam
 

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.
 
Top