Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2007, 05:47 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
<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:
chatMessage.text "<font color=\"#FFFFF\"><nohtml>" clientr.message "</nohtml></font>"
That would be PERFECT for what I need.

Please implement this, or provide some alternative!

Thanks,
Chris Zakuto
__________________
Reply With Quote
  #2  
Old 07-06-2007, 06:48 PM
Moondeath_2 Moondeath_2 is offline
"..."
Moondeath_2's Avatar
Join Date: Jan 2006
Location: Far Far Away.
Posts: 238
Moondeath_2 is an unknown quantity at this point
Send a message via AIM to Moondeath_2 Send a message via MSN to Moondeath_2 Send a message via Yahoo to Moondeath_2
Quote:
Originally Posted by cbkbud View Post
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:
chatMessage.text "<font color=\"#FFFFF\"><nohtml>" clientr.message "</nohtml></font>"
That would be PERFECT for what I need.

Please implement this, or provide some alternative!

Thanks,
Chris Zakuto

I knew them disabling it would intefere with developing somewhere, I don't see why they just have a filter agaisnt certain html functions.
__________________
Aim: DarkFireXZ3
Email: [email protected] or [email protected]
Common Location: Unholy Nation
Gscript, Playerworld Rules, Support Center
Reply With Quote
  #3  
Old 07-06-2007, 09:50 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Why can't you just not allow players to send messages with the angle brackets in them?
__________________
Reply With Quote
  #4  
Old 07-06-2007, 10:12 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Inverness View Post
Why can't you just not allow players to send messages with the angle brackets in them?
I could, but then we run into:

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
__________________
Reply With Quote
  #5  
Old 07-06-2007, 10:22 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It's not that simple, people could add </nohtml> tags in their text or so
You can disable tags
Reply With Quote
  #6  
Old 07-06-2007, 11:34 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.
__________________
Reply With Quote
  #7  
Old 07-07-2007, 01:07 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Use a custom profile for the font and set the fontcolor in it.
__________________
Reply With Quote
  #8  
Old 07-07-2007, 01:09 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
May be a function for removing any tag from a string would be the best, or you manually scan for "<" characters
Reply With Quote
  #9  
Old 07-07-2007, 01:19 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Stefan View Post
May be a function for removing any tag from a string would be the best, or you manually scan for "<" characters
Well the HTML parser already removes the HTML tags, why not just make a function like that except without actually applying whats parsed.
__________________
Reply With Quote
  #10  
Old 07-07-2007, 01:21 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Does the GUIMLTextControl support HTML entities?

Then you could just replace < with &lt; and problem solved.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #11  
Old 07-07-2007, 01:44 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
In the new version yes
Reply With Quote
  #12  
Old 07-07-2007, 03:53 AM
Moondeath_2 Moondeath_2 is offline
"..."
Moondeath_2's Avatar
Join Date: Jan 2006
Location: Far Far Away.
Posts: 238
Moondeath_2 is an unknown quantity at this point
Send a message via AIM to Moondeath_2 Send a message via MSN to Moondeath_2 Send a message via Yahoo to Moondeath_2
Quote:
Originally Posted by JkWhoSaysNi View Post
Does the GUIMLTextControl support HTML entities?

Then you could just replace < with &lt; and problem solved.
But what's the fun of that?
__________________
Aim: DarkFireXZ3
Email: [email protected] or [email protected]
Common Location: Unholy Nation
Gscript, Playerworld Rules, Support Center
Reply With Quote
  #13  
Old 07-07-2007, 03:54 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
parse each word in the message and if a parse contains "<" do
if (parse != "<3") return;
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #14  
Old 07-07-2007, 04:16 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Inverness View Post
Use a custom profile for the font and set the fontcolor in it.
You can't make sections of the text use one profile.

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.
__________________
Reply With Quote
  #15  
Old 07-07-2007, 10:54 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
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
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.