2019-06-15, 06:53 PM
Hello everyone,
This is my first post, I hope I've posted it in the right section, if I haven't please could an admin or mod move it, thank you very much.
I have attached a custom plugin for MyBB I'm working on, it's purpose is to show the latest posts on the forum homepage, the problem is - is it's also showing admin/mod posts which guests and normal members can see in the list, I'd like to limit that so only admins and mods can see posts that they've made in the admin/mod section of the forum, the admin/mod section of the forum have the correct permissions, it seems like a slight change of forum permission breaks the code as it won't properly display posts made by admin/mods.
With using ajax, after 30 seconds the admin/mod posts disappear from the list, but reappear on page load.
I've been trying to work on this all day without any success, if anyone could help that would be most appreciated.
Thank you.
This is my first post, I hope I've posted it in the right section, if I haven't please could an admin or mod move it, thank you very much.
I have attached a custom plugin for MyBB I'm working on, it's purpose is to show the latest posts on the forum homepage, the problem is - is it's also showing admin/mod posts which guests and normal members can see in the list, I'd like to limit that so only admins and mods can see posts that they've made in the admin/mod section of the forum, the admin/mod section of the forum have the correct permissions, it seems like a slight change of forum permission breaks the code as it won't properly display posts made by admin/mods.
With using ajax, after 30 seconds the admin/mod posts disappear from the list, but reappear on page load.
I've been trying to work on this all day without any success, if anyone could help that would be most appreciated.
Thank you.