Colours Text Chat.php Page

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

19 replies · 1,299 views · started 18 years ago · 1 min read

5 participants
sweetangel Lead · 885 posts #1

Hi friends. I use a wapdesire script. any1 can how I select the colour messages at page chat.php text??? please help me...tnks

if like my post click:

External image (may be gone)

metulj Super moderator Principal · 1,726 posts #3

code it yourself,100 topic maker

AMEN to that External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

sweetangel Lead · 885 posts #4

select color from colour of text and user can select them from a dropdown menu... is possible at chat room??? is very cool ant1 can help me to add this???

if like my post click:

External image (may be gone)

Ricky21ster Developer · 139 posts #5

yep it is possible lol try it first when it start bothering you popup back here btw if u not able to use logics then u r not wapmaster u just copycat lol do it urself first its easy

get cheap web hosting ever AdzeHost

get free hosting for life time hostwebswap not allowed

get free cpanel web hosting free cpanel hostingwap are allowed

External image (may be gone)

learner Lead · 587 posts #6

yep it is possible lol try it first when it start bothering you popup back here btw if u not able to use logics then u r not wapmaster u just copycat lol do it urself first its easy

stop being mean ricky21ster, yes sweetangel maybe all the time asking for codes but that dont mean that you call her copycat, get to know yourself first, we don't know maybe you are even bigger copycat but trying to act cool in here.

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

Ricky21ster Developer · 139 posts #7

get a life learner i am not being mean ok look arround the posts i have help her lots of time btw i neva ask here or any where for help i do every thing my self i dont use others codes so dont mess with me without knowing me ok and i am not telling u any thing why ur getting problem btw lol

get cheap web hosting ever AdzeHost

get free hosting for life time hostwebswap not allowed

get free cpanel web hosting free cpanel hostingwap are allowed

External image (may be gone)

learner Lead · 587 posts #10

i was not being rude to him but was only telling him not to call sweetangel a copycat. well if he really is a good coder then good for him but rukiya bro why are u being rude to me?

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

learner Lead · 587 posts #11

yes i m a noob so what now u are irritating me ricky21ster. ok u call me a noob right? lets try this i ask you a question and u asnwer it right at once.

Q: A static variable is?

options

  1. a variable whose value is shared between all the objects in a class
  2. a variable that is available throughout all the functions of your script
  3. a variable that retains its value from one invocation of a function to the next
  4. a named constant

now answer to this easy question mr coder ricky21ster

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #13

just put this on core.php CODEfunction getbbcode($text, $sid="", $filtered) { $text = htmlspecialchars($text); $text=preg_replace("/[b](.?)[/b]/i","\1", $text); $text=preg_replace("/[i](.?)[/i]/i","\1", $text); $text=preg_replace("/[u](.?)[/u]/i","\1", $text); $text = preg_replace("/[colour=(.?)](.?)[/c]/i","\2", $text); $text=preg_replace("/[big](.?)[/big]/i","\1", $text); $text=preg_replace("/[small](.?)[/small]/i","\1", $text); $text = preg_replace("/[link=(.?)](.?)[/link]/is","<a href="$1">$2</a>",$text); $text = preg_replace("/[topic=(.?)](.?)[/topic]/is","<a href="index.php?action=viewtpc&tid=$1&sid=$sid">$2</a>",$text); $text = preg_replace("/[club=(.?)](.?)[/club]/is","<a href="index.php?action=gocl&clid=$1&sid=$sid">$2</a>",$text); $text = preg_replace("/[blog=(.?)](.*?)[/blog]/is","<a href="index.php?action=viewblog&bid=$1&sid=$sid">$2</a>",$text); //$text = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\"></a>", $text); if(substr_count($text,"[br/]")<=3){ $text = str_replace("[br/]"," ",$text); } and u will have colours on chat..and everywhere u use bbcode..... and then try this code on chat: CODE[colour=red]you r boring[/colour]

metulj Super moderator Principal · 1,726 posts #14

just put this on core.php CODE function getbbcode($text, $sid="", $filtered) { $text = htmlspecialchars($text); $text=preg_replace("/[b](.?)[/b]/i","\1", $text); $text=preg_replace("/[i](.?)[/i]/i","\1", $text); $text=preg_replace("/[u](.?)[/u]/i","\1", $text); $text = preg_replace("/[colour=(.?)](.?)[/c]/i","\2", $text); $text=preg_replace("/[big](.?)[/big]/i","\1", $text); $text=preg_replace("/[small](.?)[/small]/i","\1", $text); $text = preg_replace("/[link=(.?)](.?)[/link]/is","<a href="$1">$2</a>",$text); $text = preg_replace("/[topic=(.?)](.?)[/topic]/is","<a href="index.php?action=viewtpc&tid=$1&sid=$sid">$2</a>",$text); $text = preg_replace("/[club=(.?)](.?)[/club]/is","<a href="index.php?action=gocl&clid=$1&sid=$sid">$2</a>",$text); $text = preg_replace("/[blog=(.?)](.*?)[/blog]/is","<a href="index.php?action=viewblog&bid=$1&sid=$sid">$2</a>",$text); //$text = ereg_replace("http://[A-Za-z0-9./=?-_]+","<a href="\"></a>", $text); if(substr_count($text,"[br/]")<=3){ $text = str_replace("[br/]"," ",$text); } and u will have colours on chat..and everywhere u use bbcode..... and then try this code on chat:

[colour=red]you r boring[/colour]

that surely wont work! i might be wrong.. but i think this would be more correct:

$text = preg_replace("/\(.*?)\[\/color\]/i","<font color=\"\\1\">\\2</font>", $text);

and usage:

[color=red]red text

External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

metulj Super moderator Principal · 1,726 posts #16

I have add this at core and work...but I wont add a drop menu if users select colour 4 write and their messages at chat.php are at colour select...External image (may be gone)

which code have you added?

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Guest #17

metulj... both are same... "color" at yours... and "colour" at mine.. that`s the difference between them

metulj Super moderator Principal · 1,726 posts #18

metulj... both are same... "color" at yours... and "colour" at mine.. that`s the difference between them

not true!

just put this on core.php

  $text = preg_replace("/\[colour\=(.*?)\](.*?)\[\/c\]/i","<font color=\"\\1\">\\2</font>", $text);

and u will have colours on chat..and everywhere u use bbcode..... and then try this code on chat:

[colour=red]you r boring[/colour]

your bb code for colours wont work.. opening and closing tags arent same at first place, but even that would be ok with proper usage which would be in your case

[colour=red]RED TEXT[/c]

and not

[colour=red]you r boring[/colour]

as you posted (although normaly both tags would be equal!) and your opening tag is wrong... theres one (backslash) to many External image (may be gone) External image (may be gone)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close