My Edit Scripts

Started on the old forum in February 2009 · view the original in the archive · old links redirect here

43 replies · 2,851 views · started 17 years ago · 1 min read

TL;DR · summary of 43 replies
  • - The script is requested to include a database and SQL files.
  • - Users are asking for the original SQL code, which was not provided in the initial script.
  • - There were issues with opening the archive chat.php file due to corruption or missing data.
  • - Some users need help with validation after registration.

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

13 participants
Rider Developer · 128 posts #21

the script is lil weird just need lot of editing i cant even reg i dnt know where to get the register info i went thru the whole register.php file

metulj Super moderator Principal · 1,726 posts #23

QUOTE (valentin2br @ Feb 22 2009, 09:39 AM) <{POST_SNAPBACK}>

this is completely script

archive corrupt... fix it or delete it 🙂

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ノ刀ノイリ!

Rider Developer · 128 posts #24

Yea me also cant open it i have download but its faulty

Guest #26

hi,is it possible to give me chat.php (with codes in core.php for chat) from your n3sklub.com script? Chat history in this english script is not good, messages are from all rooms- not from room where are you.Also function raporteaza camera on your chat rooms are interesting too 🙂

wap2k Developer · 168 posts #27

If you can let me have a look at the chat.php in the English script i might be able to change that for you....

Guest #28

here is code for chat archive CODE //////////////////////////////chat history else if($action=="arhiva") { echo "<card id="main" title="Chat history">"; addonline($uid,"Arhiva chat sobe $rname",""); echo " "; $who = $_POST["who"]; $ds= date("H:i", $chat[2]); $uid = getuid_sid($sid); echo "Chat History $rname

"; echo " "; //////ALL LISTS SCRIPT <<

if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid= '".$rid."' AND who='0' OR who='0'"));
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;

//changable sql
  
  
  $sql = "SELECT chatter, msgtext , timesent , who FROM ibwf_chat WHERE rid='".$rid."' AND who='0' OR who='' ORDER BY id DESC LIMIT $limit_start, $items_per_page";  

$items = mysql_query($sql);
if(mysql_num_rows($items)>0)
{
 echo "

"; while ($item = mysql_fetch_array($items)) {

$ds= date("H:i", $item[2]); $who = $item[0]; $mesaje = parsepm($item[1], $sid);

//($item[1], $sid);

echo "[$ds] <a href="index.php?action=viewuser&sid=$sid&who=$item[0]&sid=$sid">".getnick_uid($item[0])."</a> - $mesaje";

//echo "<a href="winamp.php?action=sterge_melodie&sid=$sid&tid=$item[0]">sterge</a>"; echo " "; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="chat.php?action=$action&page=$ppage&sid=$sid&view=$view&rid=$rid">Back</a> | "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="chat.php?action=$action&page=$npage&sid=$sid&view=$view&rid=$rid">Next</a>"; } echo " $page/$num_pages ";

if($num_pages>2)
{
	$rets = "Str:<input name=\"pg\" format=\"*N\" size=\"3\"/>";
	$rets .= "<anchor>Go";
	$rets .= "<go href=\"chat.php\" method=\"get\">";
	$rets .= "<postfield name=\"action\" value=\"$action\"/>";
	$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
	$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
	$rets .= "</go></anchor>";

    echo $rets;
}
	echo "

"; }else{ echo " <img src="../images/notok.gif" alt=""/> "; echo "Chat History $rname is empty! "; echo " "; } echo " "; echo "-- <a href="chat.php?sid=$sid&rid=$rid&rpw=$rpw">Back in chat room</a> "; echo "<a href="index.php?action=main&sid=$sid">$glavna [Home]</a>"; echo " </card>"; }

wap2k Developer · 168 posts #30

Ok it looks like you ain't retrieving the passed room id make sure that the room id is in the link to the archive chat.php?action=arhiva&sid=session&rid=roomid&rpw= I edited the code see it it works

//////////////////////////////chat history
 else if($action=="arhiva")
 {
 echo "<card id=\"main\" title=\"Chat history\">";
 addonline($uid,"[b]Arhiva chat sobe $rname[/b]",""); 
 echo "<p align=\"center\">";
 $who = $_POST["who"];
 $rid = $_GET["rid"];
 $ds= date("H:i", $chat[2]);
 $uid = getuid_sid($sid);
 echo "[size="1"]Chat History [b] $rname[/b]
--
[/size]";
 echo "</p>"; 
 //////ALL LISTS SCRIPT <<
 
 if($page=="" || $page<=0)$page=1;
 $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid= '".$rid."' AND who='0' OR who='0'"));
 $num_items = $noi[0]; //changable
 $items_per_page= 10;
 $num_pages = ceil($num_items/$items_per_page);
 if(($page>$num_pages)&&$page!=1)$page= $num_pages;
 $limit_start = ($page-1)*$items_per_page;
 
 //changable sql
 
 
 $sql = "SELECT chatter, msgtext , timesent , who FROM ibwf_chat WHERE rid='".$rid."' AND who='0' OR who='' ORDER BY id DESC LIMIT $limit_start, $items_per_page"; 
 
 $items = mysql_query($sql);
 if(mysql_num_rows($items)>0)
 {
 echo "

";
 while ($item = mysql_fetch_array($items))
 {
 
 $ds= date("H:i", $item[2]);
 $who = $item[0]; 
 $mesaje = parsepm($item[1], $sid);
 
 //($item[1], $sid);
 
 echo "[size="1"][$ds] <a href=\"index.php?action=viewuser&sid=$sid&who=$item[0]&sid=$sid\">".getnick_uid($item[0])."</a> - $mesaje[/size]";
 
 //echo "<a href=\"winamp.php?action=sterge_melodie&sid=$sid&tid=$item[0]\">sterge</a></small>";
 echo "
";
 }
 echo "</p>";
 echo "<p align=\"center\">";
 if($page>1)
 {
 $ppage = $page-1;
 echo "[size="1"]<a href=\"chat.php?action=$action&page=$ppage&sid=$sid&view=$view&rid=$rid\">Back</a> | [/size]";
 }
 if($page<$num_pages)
 {
 $npage = $page+1;
 echo "[size="1"]<a href=\"chat.php?action=$action&page=$npage&sid=$sid&view=$view&rid=$rid\">Next</a>[/size]";
 }
 echo "[size="1"]
$page/$num_pages
[/size]";
 
 if($num_pages>2)
 {
 $rets = "[size="1"]Str:[/size]<input name=\"pg\" format=\"*N\" size=\"3\"/>";
 $rets .= "[size="1"]<anchor>Go";
 $rets .= "<go href=\"chat.php\" method=\"get\">";
 $rets .= "<postfield name=\"action\" value=\"$action\"/>";
 $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
 $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
 $rets .= "</go></anchor>[/size]";
 
 echo $rets;
 }
 echo "</p>";
 }else{
 echo "<p align=\"center\"><img src=\"../images/notok.gif\" alt=\"\"/>
";
 echo "[size="1"][u]Chat History $rname is empty![/u][/size]
";
 echo "</p>";
 }
 echo "<p align=\"center\">";
 echo "[size="1"]--
<a href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw\">Back in chat room</a> ";
 echo "<a href=\"index.php?action=main&sid=$sid\">$glavna
[Home]</a>[/size]";
 echo "</p></card>";
 }
Guest #31

no,all is normal,my link is:

chat.php?action=arhiva&sid=$sid&rid=$rid

you see room id is here. (chat.php?action=arhiva&sid=session&rid=4)

Your code don't working... all is same... 😀

wap2k Developer · 168 posts #33

QUOTE (uNrEaL @ Feb 24 2009, 07:41 AM) <{POST_SNAPBACK}>

no,all is normal,my link is:

chat.php?action=arhiva&sid=$sid&rid=$rid

you see room id is here. (chat.php?action=arhiva&sid=session&rid=4)

Your code don't working... all is same... :D

Ok i would need to see it in action 🙂.

wap2k Developer · 168 posts #34
//////////////////////////////chat history
else if($action=="arhiva")
{
echo "<card id=\"main\" title=\"Chat history\">";
addonline($uid,"[b]Arhiva chat sobe  $rname[/b]",""); 
echo "<p align=\"center\">";
    $who = $_POST["who"];
    $ds= date("H:i", $chat[2]);
$uid = getuid_sid($sid);
 echo "[size="1"]Chat History [b] $rname[/b]
--
[/size]";
 echo "</p>"; 
//////ALL LISTS SCRIPT <<

    if($page=="" || $page<=0)$page=1;
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid= '".$rid."' AND who='0'"));
    $num_items = $noi[0]; //changable
    $items_per_page= 10;
    $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;

    //changable sql
      
      
      $sql = "SELECT chatter, msgtext , timesent , who FROM ibwf_chat WHERE rid='".$rid."' AND who='0' ORDER BY id DESC LIMIT $limit_start, $items_per_page";  

    $items = mysql_query($sql);
    if(mysql_num_rows($items)>0)
    {
     echo "

";
while ($item = mysql_fetch_array($items))
{

$ds= date("H:i", $item[2]);
$who = $item[0]; 
$mesaje = parsepm($item[1], $sid);

//($item[1], $sid);

   echo "[size="1"][$ds] <a href=\"index.php?action=viewuser&sid=$sid&who=$item[0]&sid=$sid\">".getnick_uid($item[0])."</a> - $mesaje[/size]";

   //echo "<a href=\"winamp.php?action=sterge_melodie&sid=$sid&tid=$item[0]\">sterge</a></small>";
   echo "
";
}
    echo "</p>";
    echo "<p align=\"center\">";
        if($page>1)
    {
      $ppage = $page-1;
      echo "[size="1"]<a href=\"chat.php?action=$action&page=$ppage&sid=$sid&view=$view&rid=$rid\">Back</a> | [/size]";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "[size="1"]<a href=\"chat.php?action=$action&page=$npage&sid=$sid&view=$view&rid=$rid\">Next</a>[/size]";
    }
    echo "[size="1"]
$page/$num_pages
[/size]";
    
    if($num_pages>2)
    {
        $rets = "[size="1"]Str:[/size]<input name=\"pg\" format=\"*N\" size=\"3\"/>";
        $rets .= "[size="1"]<anchor>Go";
        $rets .= "<go href=\"chat.php\" method=\"get\">";
        $rets .= "<postfield name=\"action\" value=\"$action\"/>";
        $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
        $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
        $rets .= "</go></anchor>[/size]";

        echo $rets;
    }
        echo "</p>";
    }else{
    echo "<p align=\"center\"><img src=\"../images/notok.gif\" alt=\"\"/>
";
      echo "[size="1"][u]Chat History  $rname is empty![/u][/size]
";
echo "</p>";
}
echo "<p align=\"center\">";
    echo "[size="1"]--
<a href=\"chat.php?sid=$sid&rid=$rid&rpw=$rpw\">Back in chat room</a>  ";
     echo "<a href=\"index.php?action=main&sid=$sid\">$glavna
[Home]</a>[/size]";
    echo "</p></card>";
}
Guest #35

now is working 🙂 THANK YOU

metulj Super moderator Principal · 1,726 posts #37

QUOTE (keanvn @ Feb 25 2009, 02:51 PM) <{POST_SNAPBACK}>

please help me.......why if i login or register ..when finished it tells that i havent validated yet??

cos most likely you need to be admin in order to have power/option to validate newly registered user...

so... first things first.. you make your selfe account.. go to PHP.My.Admin search for table prefix_user find your nickname in that tab le and set row 'permission' to 2(or 3 or 4 or 5.. depends from script mod/version) also find row 'validated' (or similar) and set it to 1 save and exit... that would be alll then for next registered user.. you should have option in script through admin panel to validate users.. 😛

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 #38

QUOTE (wap2k @ Feb 25 2009, 01:20 AM) <{POST_SNAPBACK}>

CODE //////////////////////////////chat history else if($action=="arhiva") { echo "<card id="main" title="Chat history">"; addonline($uid,"Arhiva chat sobe $rname",""); echo " "; $who = $_POST["who"]; $ds= date("H:i", $chat[2]); $uid = getuid_sid($sid); echo "Chat History $rname -- "; echo " "; //////ALL LISTS SCRIPT <<

if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE rid= '".$rid."' AND who='0'"));
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;

//changable sql
  
  
  $sql = "SELECT chatter, msgtext , timesent , who FROM ibwf_chat WHERE rid='".$rid."' AND who='0' ORDER BY id DESC LIMIT $limit_start, $items_per_page";  

$items = mysql_query($sql);
if(mysql_num_rows($items)>0)
{
 echo "

"; while ($item = mysql_fetch_array($items)) {

$ds= date("H:i", $item[2]); $who = $item[0]; $mesaje = parsepm($item[1], $sid);

//($item[1], $sid);

echo "[$ds] <a href="index.php?action=viewuser&sid=$sid&who=$item[0]&sid=$sid">".getnick_uid($item[0])."</a> - $mesaje";

//echo "<a href="winamp.php?action=sterge_melodie&sid=$sid&tid=$item[0]">sterge</a>"; echo " "; } echo " "; echo " "; if($page>1) { $ppage = $page-1; echo "<a href="chat.php?action=$action&page=$ppage&sid=$sid&view=$view&rid=$rid">Back</a> | "; } if($page<$num_pages) { $npage = $page+1; echo "<a href="chat.php?action=$action&page=$npage&sid=$sid&view=$view&rid=$rid">Next</a>"; } echo " $page/$num_pages ";

if($num_pages>2)
{
	$rets = "Str:<input name=\"pg\" format=\"*N\" size=\"3\"/>";
	$rets .= "<anchor>Go";
	$rets .= "<go href=\"chat.php\" method=\"get\">";
	$rets .= "<postfield name=\"action\" value=\"$action\"/>";
	$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
	$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
	$rets .= "</go></anchor>";

	echo $rets;
}
	echo "

"; }else{ echo " <img src="../images/notok.gif" alt=""/> "; echo "Chat History $rname is empty! "; echo " "; } echo " "; echo "-- <a href="chat.php?sid=$sid&rid=$rid&rpw=$rpw">Back in chat room</a> "; echo "<a href="index.php?action=main&sid=$sid">$glavna [Home]</a>"; echo " </card>"; } well... theres still one problem.. you cant see private MSGs in history 🙂

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 #39

just add on link rpw=$rpw

chat.php?action=arhiva&sid=$sid&rid=$rid&rpw=$rpw

metulj Super moderator Principal · 1,726 posts #40

QUOTE (uNrEaL @ Feb 25 2009, 08:40 PM) <{POST_SNAPBACK}>

just add on link rpw=$rpw

chat.php?action=arhiva&sid=$sid&rid=$rid&rpw=$rpw

tried that... doesnt work... i'd like to see in history also all private msgs.. those sent to me and those i've sent to some1

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