Chatzone Updates / Addons

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

12 replies · 1,606 views · started 18 years ago · 1 min read

3 participants
ReGzBk Developer · 115 posts #1

Post the Chatzone script updates /addons u have ....also u can post the ones u want so tht oders can post them here Thnx..........

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #3

I dont have much ..i can give u online list , member list , shout box script etc .....do u have peditnick nd psetstatus in moder.php ?

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #5

well see this in this u have to input name of user whose nick or status u have change i want to put in profile after nick nd status change function so tht i dont have to put the nick but frm the user whose profile m in his nick is taken ....

case 'setstatus': if(empty($act)) { print $lang['who'].": <input name="who" value="$who"/>

".$lang['status'].": <input name="status" value="".$data['status'].""/>

<anchor>".$lang['ok']."<go href="moder.php?id=$id&pass=$pass&mod=$mod" method="post"> <postfield name="act" value="set"/> <postfield name="who" value="$(who)"/> <postfield name="status" value="$(status)"/> </go></anchor> "; } else { if(@mysql_query("update ".$px.$utable." set status='$status' where login='$who'")) print $lang['done']; else print $lang['error']; } break;

case 'editnik': if(empty($act)) { print $lang['old_nick']." <input type="text" name="old"/> "; print $lang['new_nick']." <input type="text" name="new"/> "; print "<anchor>".$lang['ok']."<go href="moder.php?act=update&id=$id&pass=$pass&mod=$mod" method="post"><postfield name="old" value="$(old)"/><postfield name="new" value="$(new)"/></go></anchor> "; } else { $q = @mysql_query("select * from ".$px.$utable." where login='$new' limit 1;"); $ud = @mysql_fetch_array($q); if($ud['id']) { print $lang['such_nick_exist']; } else { if(@mysql_query("update ".$px.$utable." set login='$new' where login='$old';")) print $lang['done']; else print $lang['user_not_exist']; } } break;

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #6

Gosh i didnt see the request forum this can be moved there i guess .....

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #8

Spiderwap thn share the xhtml verison it wud be great i guess .....

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

rukiya Lead · 569 posts #9

here is codes to change user nick and to change status directly from a user's profile.I coded it for chatzone script edited by kovsza copy and paste this code in admin.php

//Edit nickname
    case 'editnick':
$whoid = $_GET["whoid"];
    if(empty($act)) 
  {
    //print $lang['old_nick']."
<input type=\"text\" name=\"old\"/>
";
    print $lang['new_nick']."
<input type=\"text\" name=\"new\"/>
";
    print "<anchor>".$lang['ok']."<go href=\"?act=update&id=$id&pass=$pass&whoid=$whoid&mod=$mod\" method=\"post\"><postfield name=\"new\" value=\"$(new)\"/></go></anchor>
";
    }
  else 
  {
    $q = @mysql_query("select * from `".$px.$utable."` where login='$new' limit 1;");
    $ud = @mysql_fetch_array($q);
    if($ud['id']) 
  { 
  print $lang['such_nick_exist']; 
  } 
  else 
  {
    if(@mysql_query("update `".$px.$utable."` set login='$new' where id='".$whoid."';")) 
  print $lang['done'];
    else
  print $lang['user_not_exist']; 
  }
    }
    break;

usage in user.php

if ($login['admin']>0)
{
print "
<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=editnick\">Edit Nick</a>
"; 

}

to change status copy and paste this code in moder.php

//setstatus status
    case 'psetstatus':
$whoid = $_GET["whoid"];
    if(empty($act)) 
  {
    
print "<select name=\"stat\" value=\"boss\">";
print "<option value=\"boss\">boss</option>";
print "<option value=\"king\">king</option>";
print "<option value=\"queen\">queen</option>";
print "<option value=\"princess\">princess</option>";
print "<option value=\"prince\">prince</option>";
print "<option value=\"guru\">guru</option>";
print "<option value=\"unstopable\">unstopable</option>";
print "</select>
";
    
    print "<anchor>".$lang['ok']."<go href=\"?act=update&id=$id&pass=$pass&whoid=$whoid&mod=$mod\" method=\"post\"><postfield name=\"stat\" value=\"$(stat)\"/></go></anchor>
";
    }
 
  else 
  {
    if(@mysql_query("update `".$px.$utable."`set status='$stat' where id='".$whoid."';")) 
 
  print $lang['done'];
    else 
  print $lang['error'];
}
    break;

and the usage link has been already put in this script that i mentioned

SpiderWap Lead · 622 posts #10

Ok, tell you guys what, if someone inbox me a url to the must updated chatzone script I'll convert the entire thing to xhtml again.

I just dont think its any use for me to convert an old version to xhtml as i just have old versions of it myself.

I'll do it for you guys, but personaly i'm done with using other peoples scripts i'm coding my own.

ReGzBk Developer · 115 posts #11

here is codes to change user nick and to change status directly from a user's profile.I coded it for chatzone script edited by kovsza copy and paste this code in admin.php

//Edit nickname
    case 'editnick':
$whoid = $_GET["whoid"];
    if(empty($act)) 
  {
    //print $lang['old_nick']."
<input type=\"text\" name=\"old\"/>
";
    print $lang['new_nick']."
<input type=\"text\" name=\"new\"/>
";
    print "<anchor>".$lang['ok']."<go href=\"?act=update&id=$id&pass=$pass&whoid=$whoid&mod=$mod\" method=\"post\"><postfield name=\"new\" value=\"$(new)\"/></go></anchor>
";
    }
  else 
  {
    $q = @mysql_query("select * from `".$px.$utable."` where login='$new' limit 1;");
    $ud = @mysql_fetch_array($q);
    if($ud['id']) 
  { 
  print $lang['such_nick_exist']; 
  } 
  else 
  {
    if(@mysql_query("update `".$px.$utable."` set login='$new' where id='".$whoid."';")) 
  print $lang['done'];
    else
  print $lang['user_not_exist']; 
  }
    }
    break;

usage in user.php

if ($login['admin']>0)
{
print "
<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=editnick\">Edit Nick</a>
"; 

}

to change status copy and paste this code in moder.php

//setstatus status
    case 'psetstatus':
$whoid = $_GET["whoid"];
    if(empty($act)) 
  {
    
print "<select name=\"stat\" value=\"boss\">";
print "<option value=\"boss\">boss</option>";
print "<option value=\"king\">king</option>";
print "<option value=\"queen\">queen</option>";
print "<option value=\"princess\">princess</option>";
print "<option value=\"prince\">prince</option>";
print "<option value=\"guru\">guru</option>";
print "<option value=\"unstopable\">unstopable</option>";
print "</select>
";
    
    print "<anchor>".$lang['ok']."<go href=\"?act=update&id=$id&pass=$pass&whoid=$whoid&mod=$mod\" method=\"post\"><postfield name=\"stat\" value=\"$(stat)\"/></go></anchor>
";
    }
 
  else 
  {
    if(@mysql_query("update `".$px.$utable."`set status='$stat' where id='".$whoid."';")) 
 
  print $lang['done'];
    else 
  print $lang['error'];
}
    break;

and the usage link has been already put in this script that i mentioned

Nice work mate i got it how to do tht now ....

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #12

Ok, tell you guys what, if someone inbox me a url to the must updated chatzone script I'll convert the entire thing to xhtml again.

I just dont think its any use for me to convert an old version to xhtml as i just have old versions of it myself.

I'll do it for you guys, but personaly i'm done with using other peoples scripts i'm coding my own.

Ok i l try nd find one ...

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

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