![]() |
<nohtml>
I recall someone suggesting this, but I'd really like this.
In GuiMLTextCtrl, I need to be able to use HTML, but there are certain parts I can't have it used. This is a chat message system, and right now players can use HTML in their chat! Uh oh! However, I need HTML to set colors! What if I could do something like this: PHP Code:
Please implement this, or provide some alternative! Thanks, Chris Zakuto |
Quote:
I knew them disabling it would intefere with developing somewhere, I don't see why they just have a filter agaisnt certain html functions. x_x |
Why can't you just not allow players to send messages with the angle brackets in them?
|
Quote:
Guy1: >.< that sucks Guy2: >_> Guy3: That way ---> Guy4: <3 we run into all of this stuff, and if we absolutly must we'll make a parser to run through, but it seems so much easier for something like <nohtml> Thanks :) |
It's not that simple, people could add </nohtml> tags in their text or so :)
You can disable tags |
The problem with disabling the tags is that I need to use the <font> tag.
What if there was something like <∫> </∫>, or some other special character that we could disable without upsetting players? ¨¥†®ƒ∆¬ß Any special character would work. We really need to be able to do this, do you have any other suggestions? Edit: Or if we could set the toggle character, that would rock. For example, we could make the toggle be <pT4iLk7> </pT4iLk7> so that players would have a helluva time trying to find what it is. |
Use a custom profile for the font and set the fontcolor in it.
|
May be a function for removing any tag from a string would be the best, or you manually scan for "<" characters
|
Quote:
|
Does the GUIMLTextControl support HTML entities?
Then you could just replace < with < and problem solved. |
In the new version yes
|
Quote:
|
parse each word in the message and if a parse contains "<" do
if (parse != "<3") return; |
Quote:
For example the text might be: Jave: Okay, move into the battleground! Private Message (drakehighlander): You really sucked that one up! Axis wins the current battleground! Staff Mass: We are closing the server in approximatly five minutes for a mass reset. JFX: WTF I JUST GOT ALL THESE GUNS So yah, we really need to be able to use multiple colors. |
How about Stefan makes it so that i shows what would be inside the HTML tags like "<" and ">" instead of not showing ANYTHING?
">_<" turns into "" But with what I said it would be ">_<" turns into "" And for REAL HTML, " <body> <blah>blah</blah> </body> " turns into " " But we could make it so that it shows what's inside the tags and all of the stuff. Good way to solve no? I know it may be a bit confusing though xD |
| All times are GMT +2. The time now is 03:46 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.