collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 518
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Whisper mode in Shoutbox  (Read 27645 times)

0 Members and 1 Guest are viewing this topic.

Offline MissyNL

  • Jr. Member
  • **
  • Posts: 73
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Whisper mode in Shoutbox
« on: October 06, 2009, 06:41:28 PM »
Hello,

I would like to see a whisper mode in the shoutbox. I am running a dating orientated site and i know the members would love it.

That they can search a name an that that person only can see it. I have seen a demo, but then the admin also could see it. Maybe that is also a good option...



Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #1 on: October 06, 2009, 07:34:41 PM »
Seems like a good suggestion, I have added it to the Project Tracker, although its unlikely to be added until the next major release of SimplePortal.

Project tracker issue: http://simpleportal.net/index.php?issue=285.0
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Eliana Tamerin

  • Comrade
  • *
  • Posts: 2889
  • Gender: Female
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Whisper mode in Shoutbox
« Reply #2 on: October 06, 2009, 07:43:18 PM »
It probably would work to follow a Twitter-like @username scheme.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Whisper mode in Shoutbox
« Reply #3 on: October 07, 2009, 05:14:39 AM »
Hey MissyNL! I hope you are doing fine. Converting to SimplePortal?

This one is pretty easy.

Sources/Subs-Portal.php

Code: (Find) [Select]
$shouts[$shout['id']] += array(
Code: (Replace) [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;
}

$shouts[$shout['id']] += array(

Syntax would be like this:

Quote
@{user_name}: {shout_text}

Example:

Quote
@MissyNL: This is special for you!

Note that username is case insensitive.
And slowly, you come to realize... It's all as it should be...

Offline Eliana Tamerin

  • Comrade
  • *
  • Posts: 2889
  • Gender: Female
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Whisper mode in Shoutbox
« Reply #4 on: October 07, 2009, 09:28:57 AM »
Sinan, Nath and I talked about this for a while, and I suggested that very setup. Problem is, SMF accepts colons (:) in usernames, so if you have a user named MissyNL: This (unlikely, but you see what I mean), it's going to screw up.

The bugtracker issue has a few comments related to how we might work around that issue, including
Quote
@"user name" message
and
Quote
@user=name message

but of course, a one word username would just be like:
Quote
@username message
So that SP would always know what to look for, and find the username that was contained within the @ and the next space.

To ensure that usernames are matched 100% of the time.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Whisper mode in Shoutbox
« Reply #5 on: October 07, 2009, 12:25:35 PM »
Both double quotes and equal sign can be used in usernames as well. Thus they won't be any different. It is the natural limitation of this function, just like you can't link my profile using my username with wiki links. And @username: format looks more semantic to me. I wouldn't add alternative formats for unusual usernames as well; that just complicates things further.
And slowly, you come to realize... It's all as it should be...

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #6 on: October 07, 2009, 05:54:58 PM »
Both double quotes and equal sign can be used in usernames as well. Thus they won't be any different. It is the natural limitation of this function, just like you can't link my profile using my username with wiki links. And @username: format looks more semantic to me. I wouldn't add alternative formats for unusual usernames as well; that just complicates things further.

Actually, double quotes and the equals sign cannot be used within usernames. Refer to the 'Subs-Members.php' file. (line 627 for SMF 1.1.10, line 507 for SMF 2 RC1.2)

These are the restricted characters: < > & " ' = \
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Eliana Tamerin

  • Comrade
  • *
  • Posts: 2889
  • Gender: Female
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Whisper mode in Shoutbox
« Reply #7 on: October 07, 2009, 05:59:49 PM »
Actually the single quote (') is just fine. I think its presence there has something to do with the regex used.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Whisper mode in Shoutbox
« Reply #8 on: October 08, 2009, 03:59:13 AM »
That's member name. Display name (real name) has no limitations; it will accept anything and everything. That's what a regular member see as username. And I'm not arguing how it should be handled in core; just provided a custom code which I believe is the proper way.
And slowly, you come to realize... It's all as it should be...

Offline Robbo

  • Beer is good!
  • Comrade
  • *
  • Posts: 223
  • Gender: Male
    • Australian Savage (Game Community)
  • SMF Version: 2 RC1.2
  • SP Version: None
Re: Whisper mode in Shoutbox
« Reply #9 on: October 08, 2009, 11:21:32 AM »
Errr, it can work by looking for the last :. Or a : then space. Anyways you think something like this will make it into the next version Nathan?

Offline MissyNL

  • Jr. Member
  • **
  • Posts: 73
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #10 on: October 08, 2009, 11:38:16 AM »
Hi Sinan! Good to see/read you again! :)  I am doing fine and the mods you developed for me are working like a charm! They are very much appreciated by my members.

Yes... i am going to convert to SP :) My whole site is going to be converted in 2.0. But that can take a while, since i have over 60 mods now LOL
Luckely i have the help form Robbo

It's great that there is such a huge responds to this request.

I only understand the halve of what you are saying :lol The thing i only have to say.. make it so that members do not have to type in the name. This because the message that will be displayed is personal en sensitive. If the member will do it wrong (which they will do) i have a good possibility that all hell brakes lose.

If that can not be done.. then it's maybe better to skip this request, since it then can cause more harm then good (in by situation then)



Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #11 on: October 08, 2009, 05:40:55 PM »
That's member name. Display name (real name) has no limitations; it will accept anything and everything. That's what a regular member see as username. And I'm not arguing how it should be handled in core; just provided a custom code which I believe is the proper way.

Sigh, true. "@username: message" is the most semantic then. Hopefully no-one has usernames with a colon in them. ;)

Errr, it can work by looking for the last :. Or a : then space. Anyways you think something like this will make it into the next version Nathan?

It will definetly make it into 2.4, not sure about 2.3.1 as its meant to only be a bugfix release. Not that that doesn't mean we can't add small features, but that I want to release it as soon as possible.

I only understand the halve of what you are saying :lol The thing i only have to say.. make it so that members do not have to type in the name. This because the message that will be displayed is personal en sensitive. If the member will do it wrong (which they will do) i have a good possibility that all hell brakes lose.

If that can not be done.. then it's maybe better to skip this request, since it then can cause more harm then good (in by situation then)

If the user made a typo, and put in the wrong username then it would either send it to the wrong user, or it wouldn't work properly.

There are possibilities of things that can be done to avoid that, like:
- A dropdown box of usernames (using javascript). Ie, you type in 'Tes' and it gives you a list of the possible usernames like 'Tesla', 'Test', etc.
- A whisper link/icon next to each shout, which adds the correct username to the shout area.
- A 'whisper' popup, that makes you enter the username and then checks that it exists.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Eliana Tamerin

  • Comrade
  • *
  • Posts: 2889
  • Gender: Female
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: Whisper mode in Shoutbox
« Reply #12 on: October 08, 2009, 06:10:14 PM »
Well, it also follows that this isn't meant for private or sensitive conversations. Just a way to secretly shout to a user. So if users are using that to transmit sensitive information, that's the risk they take.
Ms. Eliana TamerinIt should be painfully obvious by now that I don't respond to support PMs. Don't send me PMs for support. They will be ignored and deleted, post on the Support Boards to get support.

Offline MissyNL

  • Jr. Member
  • **
  • Posts: 73
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #13 on: October 08, 2009, 06:58:52 PM »
Quote
- A dropdown box of usernames (using javascript). Ie, you type in 'Tes' and it gives you a list of the possible usernames like 'Tesla', 'Test', etc.
  I think i like this option :D

Well, it also follows that this isn't meant for private or sensitive conversations. Just a way to secretly shout to a user. So if users are using that to transmit sensitive information, that's the risk they take.

I completely understand what you are saying. The thing only is that on my site the changes of sending a personal or sensitive message is quit high, since i have a dating site where people like to provoke another.. in a good way  ;D  The problem is that most of my members are not so good with understanding some features on the site or even the whole structure of the site. I have to explain all the features in detail.

This means that the changes of people filling in the wrong name are relatively high. Resulting in the whispermode not being used often and the occasional embarrassment of the member.

If the SP-team makes the code in a way where members have to fill in the membername entirely, then maybe the SP-team should consider an option where admins can disable the whisper mode.

Offline Robbo

  • Beer is good!
  • Comrade
  • *
  • Posts: 223
  • Gender: Male
    • Australian Savage (Game Community)
  • SMF Version: 2 RC1.2
  • SP Version: None
Re: Whisper mode in Shoutbox
« Reply #14 on: October 11, 2009, 12:00:43 PM »
Maybe do it like private messages?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #15 on: October 11, 2009, 04:48:26 PM »
If the SP-team makes the code in a way where members have to fill in the membername entirely, then maybe the SP-team should consider an option where admins can disable the whisper mode.

It would definitely have an option to remove whispers.

Maybe do it like private messages?

Not sure exactly what you mean by that.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline MissyNL

  • Jr. Member
  • **
  • Posts: 73
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #16 on: October 12, 2009, 06:09:05 AM »
i think he means like making it like filling in the username in the PM. That it auto fills itselve.. and that you can click the questionmark and then search the name yourself it the autofill doesnt work properly...

Correct me if im wrong :D

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #17 on: October 12, 2009, 06:21:54 AM »
i think he means like making it like filling in the username in the PM. That it auto fills itselve.. and that you can click the questionmark and then search the name yourself it the autofill doesnt work properly...

Correct me if im wrong :D

True, I had forgotten about that, I suppose it fits in quite naturally to the page. :)

I will think about that when I implement this feature.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline MissyNL

  • Jr. Member
  • **
  • Posts: 73
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Whisper mode in Shoutbox
« Reply #18 on: May 11, 2010, 09:13:42 AM »
Great to know this feature will come in the next edition :D

Offline Sir Kaos

  • Semi Newbie
  • *
  • Posts: 12
  • Gender: Male
  • Learn to Listen, Listen to Learn
    • Kaotik System
  • SMF Version: 1.1.2
  • SP Version: 2.3.2
Re: Whisper mode in Shoutbox
« Reply #19 on: November 13, 2010, 03:23:38 AM »
it would be great news if you guys implement this.

lets hope so  ;)