View private shouts in MyShoutbox
#1
Tutorial by: PJGIH/Darth Stabro
http://wb-dev.net

Open inc/plugins/myshoutbox.php


Search for
if ($mybb->user['uid'] == intval($userID) || $mybb->user['uid'] == $row['uid'])

It should be around line 815.

If you want ONLY YOU to see the private shouts, replace the above line with this

if ($mybb->user['uid'] == intval($userID) || $mybb->user['uid'] == $row['uid'] || $mybb->user['uid'] == '{your UID}')

Replace {your UID} your UID, obviously.

If you want all administrators to see private shouts, replace it with this:

if ($mybb->user['uid'] == intval($userID) || $mybb->user['uid'] == $row['uid'] || $mybb->usergroup['cancp'] == 1)

If you want all super moderators to see private shouts, replace it with this:

if ($mybb->user['uid'] == intval($userID) || $mybb->user['uid'] == $row['uid'] || $mybb->usergroup['issupermod'])


To view private shouts, click "View Full Shout Box".


Tada!


Note: Be sure to let your users know you can do this, or they may complain about privacy issues.
-Paul H.

Cogisne lingua latina?
Reply


Messages In This Thread
View private shouts in MyShoutbox - by Paul H. - 2011-07-01, 02:07 AM
RE: View private shouts in MyShoutbox - by mbw227 - 2011-07-05, 06:53 PM
RE: View private shouts in MyShoutbox - by mbw227 - 2011-07-06, 04:15 AM
RE: View private shouts in MyShoutbox - by Krytic - 2012-10-20, 10:58 AM
RE: View private shouts in MyShoutbox - by Krytic - 2012-10-21, 12:35 AM
RE: View private shouts in MyShoutbox - by Krytic - 2012-10-24, 04:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)