Mobile_Chat_v3.0_Xhtml1.0

Started on the old forum in June 2012 · view the original in the archive · old links redirect here

20 replies · 2,681 views · started 14 years ago · 3 min read

TL;DR · summary of 20 replies
  • Back button can allow renitent users to re-enter rooms after being kicked.
  • Session_destroy() should be added to booted.php to prevent such behavior.
  • Flood protection needs to be implemented for commands like blah/username and trash/username.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

10 participants
Ghost Senior · 366 posts #21

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.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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