MyBB Community Forums

Full Version: Plugin modification
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
I use this plugin http://mods.mybb.com/view/who-viewed-topic.
I want to know where I can change to make it to access all users, not just staff.
Moved to Plugin Support.
Open the plugin file and go to line no. 165. Find:

if (is_moderator($topicRow['fid']) && !empty($topicRow['fid']))

Change it to:

if (!empty($topicRow['fid']))

Again, go to line no. 238 - 240, locate:

$pluginwhoviewedtopic = '';

	if ($ismod == true)

Comment out or remove the lines.
You can also remove '$ismod' from global declaration at line 233 if you wish as its no longer needed.

I believe thats all and it will work for all users instead of mods only.
Perfect.
Thank you so much !