Quote:
Originally Posted by DevJw
I editted shoutshow.php so supermoderators can now also delete shouts.
Find:
PHP Code:
if ($vbulletin->userinfo['permissions']['adminpermissions'])
New:
PHP Code:
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
I've edited shoutinsert.js and now it works.
At the end of the file:
Code:
var url = 'shoutinsert.php';
var params = 'body=' + document.getElementById('body').value;
I changed it to:
Code:
var url = 'shoutinsert.php';
var value = document.getElementById('body').value;
if (encodeURIComponent) {
url = encodeURIComponent(value);
} else {
url = escape(value);
}
var params = 'body=' + url;
Note to the creator:
I had to change line 44 in shoutshow.php because it was not showing the time.
Old:
PHP Code:
$shout_time = vbdate($vbulletin->options['ddsb_time'], $row['shout_time']);
New:
PHP Code:
$shout_time = date($vbulletin->options['ddsb_time'], $row['shout_time']);
|
Thos are some great fixes! By the way, you should use the vbdate function. It is a vbulletin function which is like the php date() function, but I believe it also shows the date in the time zone the user specified in their profile.