Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Clickable link? [PLUS]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 438047" data-attributes="member: 36373"><p>In your chatevent and shoutevent , you add a method that checks for a link (starts with https) and add ahref to it... Suedocode:</p><p></p><p>[CODE]private string checkUrl(string msg){</p><p> If(!msg.Contains("http"))</p><p> return msg;</p><p> String newMsg = "";</p><p> String[] parts = msg.Split(" ");</p><p> Foreach(String s in parts){</p><p> If(!s.StartsWith("http"))</p><p> NewMsg += s;</p><p> Else</p><p> NewMsg += "<a href=\"" + s + "\">Link</ahref>";</p><p> }</p><p> Return NewMsg;</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="JayC, post: 438047, member: 36373"] In your chatevent and shoutevent , you add a method that checks for a link (starts with https) and add ahref to it... Suedocode: [CODE]private string checkUrl(string msg){ If(!msg.Contains("http")) return msg; String newMsg = ""; String[] parts = msg.Split(" "); Foreach(String s in parts){ If(!s.StartsWith("http")) NewMsg += s; Else NewMsg += "<a href=\"" + s + "\">Link</ahref>"; } Return NewMsg; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Clickable link? [PLUS]
Top