Wel here is sumthing nice u could use and if u have more please do post them here This one if u use it it will take the member directly to the inbox
$unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
$pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
$unrd="[".$unreadinbox[0]."l".$pmtotl[0]."]";
$text = preg_replace("/\[inbox]/is","<a href=\"inbox.php?action=main&sid=$sid\">Inbox $unrd</a>",$text);
this when u use it u can update ur profile
$text = preg_replace("/\[updatepro]/is","<a href=\"index.php?action=uset&sid=$sid\">Update Profie</a>",$text);
this will make ur text bold
$text = preg_replace("/\[b\](.*?)\[\/b\]/i","<b>\\1</b>", $text);
this will make ur text italic
$text = preg_replace("/\[i\](.*?)\[\/i\]/i","<i>\\1</i>", $text);
this will make ur text underline
$text = preg_replace("/\[u\](.*?)\[\/u\]/i","<u>\\1</u>", $text);
this will make ur text big
$text = preg_replace("/\[big\](.*?)\[\/big\]/i","<big>\\1</big>", $text);
this will make ur text small
$text = preg_replace("/\[small\](.*?)\[\/small\]/i","<small>\\1</small>", $text);
here u give url to members
$text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"$1\">$2</a>",$text);
here u give img to members
$text = preg_replace("/\[img\=(.*?)\]/is","<img src=\"$1\">",$text);
here u can quote to members post have to fix (NOT TESTED)
$text = preg_replace("/\[quote\=(.*?)\](.*?)\[\/quote\]/is","<a href=\"index.php?action=post&tid=$tid\">$2</a>",$text);
here u make ur text coloured
$text = preg_replace("/\[clr\=(.*?)\](.*?)\[\/clr\]/is","<font color=\"$1\">$2</font>",$text);
here u send link to topic
$text = preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","<a href=\"index.php?action=viewtpc&tid=$1&sid=$sid\">$2</a>",$text);
here u send link to forum
$text = preg_replace("/\[forum\=(.*?)\](.*?)\[\/forum\]/is","<a href=\"index.php?action=viewfrm&tid=$1&sid=$sid\">$2</a>",$text);
here u send link to club
$text = preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is","<a href=\"index.php?action=gocl&clid=$1&sid=$sid\">$2</a>",$text);
here u send link to blog
$text = preg_replace("/\[blog\=(.*?)\](.*?)\[\/blog\]/is","<a href=\"index.php?action=viewblog&bid=$1&sid=$sid\">$2</a>",$text);
here u can send the user phone model out
$bro=("$REMOTE_ADDR");
$usr = explode("/",$_SERVER['HTTP_USER_AGENT']);
$phone = ("$usr[0]");
$text = str_replace("[phone]","$phone",$text);
hope u all have more to give
Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code
NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH