My Edit Scripts
Started on the old forum in February 2009 · view the original in the archive · old links redirect here
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.
QUOTE (Numb @ Feb 22 2009, 09:24 AM) <{POST_SNAPBACK}>
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
this is completely script
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ノ刀ノイリ!
QUOTE (Numb @ Feb 22 2009, 09:52 AM) <{POST_SNAPBACK}>
Yea me also cant open it i have download but its faulty
try now
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>"; }
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>";
}
Your account is not valid!
Verificarea si activarea contului dumneavoastra se va face in cel mai scurt timp, va rugam asteptati!
Va multumim!
please help waht are going to do wth the settings
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php
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 🙂.
//////////////////////////////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>";
}
please help me.......why if i login or register ..when finished it tells that i havent validated yet??
join and visit http://outcastwap.freehostia.com
proud to be a filipino........
or view in xhtml http://outcastwap.freehostia.com/xhtml/index.php
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ノ刀ノイリ!
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ノ刀ノイリ!
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ノ刀ノイリ!