sampuyung wrote: Thanks Ghost.. If i combine with the chatage script how to do it.
hmm. i dont really like this idea of getting users age and putting it next to their name. and ill tell you why at the end of this.
But. if you really wanted to. you would still following my last posts explaination and then add something like this next to the links.
add this above all the links. not each link. just above them once will be fine.
$member = "../members/$nimi.txt";
$membersinfo = fopen($member, "r");
$membersdata = file_get_contents($member, @filesize($membersinfo));
fclose($membersinfo);
$membersinformation = explode ("\n",$membersdata);
for($i=0;$i<count($membersinformation);$i++)
{
$membersinformation[$i] = stripslashes($membersinformation[$i]);
}
//
//
//
//
and then change links like this.
if($admin=="1"){$uusirivi ='<a href="pmuser.php?kenelle='.$nimi.'&rank=1&phone='.$user[0].'&ip='.$ip.'">('.$membersinformation[2].')'.$nimi . '</a> '.$time.'» ' . $viesti . '<br/>
';}
//
//
//
//
//
this is only an example using the owner link. so be careful not to copy/paste this to all links or your gonna end up with all owner posts..
now what this does is. it grabs the data from the members .txt file that holds all their profile data. puts all that data into an array and then you can pick what part of that array you wish to display. in the link it is set to '.$membersinformation[2].' this is because the AGE is number 2 in the array and that is what you want to be displayed.
now my reason for not liking this is just simple. what if the user decided he doesnt want to set his age? then you will have alot of posts that look like this
(Not Set)Ghost 12.34pm >> this looks crap cos i didnt set my age.
but there you go.. anyway that should do the trick IF you do it correctly thoughout all those files.