TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 101
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 97
  • Total: 97

People shout in my name at the shoutbox ! Fix it !

Started by evilopinions, April 30, 2006, 07:41:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

evilopinions

Hi,

I have allowed guest shout in the shoutbox. Now guests are allowed to write their names in the small box below and that appears in their shout.

Someone is using my name Evilopinions and shouting in my name ! He is also abusing the whole shoutbox !

Edit

I can disable guest shout but I would love to have that feature.

bloc

Did you use the latest security update? It will remove any html tags to the name..but if someone calls themselves "bloc" as a guest, nothing is done against that.

One option is to add a prefix at saving time..open TPmodules.php and find:
               $shout_name=strip_tags($_POST['tp-shout-name']);
               if($context['user']['is_logged'])
                   $shout_name='<a href="'.$scripturl.'?action=profile;u='.$context['user']['id'].'">'.$_POST['tp-shout-name'].'</a>';
               $shout_time=time();


replace with:
               $shout_name=strip_tags($_POST['tp-shout-name']);
               if($context['user']['is_logged'])
                   $shout_name='<a href="'.$scripturl.'?action=profile;u='.$context['user']['id'].'">'.$_POST['tp-shout-name'].'</a>';
       else
            $shoutname = 'guest_'.$shoutname;

               $shout_time=time();


It will place a guest tag to it, so someone posting "bloc" will be shown as "guest_bloc".

agridoc

Altough I don' t allow guests to shout the guest tag is an excellent idea Bloc. A user' s name can be accidentally used by a guest, especially in a large forum.

  For Greek aeromodellers and our friends around the world  - Greek Button sets for SMF

bloc

Yes. I can't believe I did not think of this before..already added to v.0.9 this one.

And using the language string for "guest" instead of just "guest".

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

Only thing is; it takes away the color names + Bloc = Bloc ..
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



evilopinions

well i appreciate quick reply from the admin !

I believe there should be some colour differencen in the names between members and guests !

Well the guest prefix is a good idea.

bloc

The color? But that should only apply to real members names? Not guest names?

evilopinions

Well maybe all members will have their name displayed red when they shout !

All guests will have a blue colour even though they use the name ! Something like that

bloc

ah, I see. Well, with this prefix it will be easy to see if its someone just fooling around - they will always have that "guest_" in front of the name. The colors can then be for the members only, as it should.

This website is proudly hosted on Crocweb Cloud Website Hosting.