SimplePortal

Support => English Support => Topic started by: kal on June 03, 2014, 10:40:38 AM

Title: Shoutbox whispers
Post by: kal on June 03, 2014, 10:40:38 AM
is there a place to turn these on/off?
Title: Re: Shoutbox whispers
Post by: AngelinaBelle on June 05, 2014, 01:59:01 PM
Not as far as I know.
Title: Re: Shoutbox whispers
Post by: kal on June 30, 2014, 04:13:26 PM
actually I have, and I haven't seen any actual documentation for the shoutbox blocks. :/
Title: Re: Shoutbox whispers
Post by: AngelinaBelle on June 30, 2014, 11:06:12 PM
Sorry.  I did get rather behind in writing that documentation.
Actually, Hal9000 did most of it.  I just reformatted it a bit, and brought some of it up to date after some upgrades.

I have to admit I just have not worked with settings for the shoutbox, and especially not the whisper feature.

Title: Re: Shoutbox whispers
Post by: kal on July 17, 2014, 10:00:23 AM
No worries. You guys are all volunteers after all, right? :)

Would Hal9000 also be the right person to ask about including the shoutbox blocks in Wordpress? I'm actually phasing out SMF for the most part, but I really appreciate the SP stuff, and would like to keep it active.
Title: Re: Shoutbox whispers
Post by: [SiNaN] on July 26, 2014, 12:46:38 PM
There isn't an option to disable the whispers. However, it's possible with a little code edit.

Sources/Subs-Portal.php

Code: (Find and Delete) [Select]
if (preg_match('~^@(.+?): ~' . ($context['utf8'] ? 'u' : ''), $shout['text'], $target) && $smcFunc['strtolower']($target[1]) !== $smcFunc['strtolower']($user_info['name']) && $shout['author']['id'] != $user_info['id'] && !$user_info['is_admin'])
{
unset($shouts[$shout['id']]);
continue;
}
SimplePortal 2.3.8 © 2008-2024, SimplePortal