Community Script like this... [Help]

Started on the old forum in April 2011 · view the original in the archive · old links redirect here

#ejatd29 #m4sterv4

33 replies · 4,969 views · started 15 years ago · 1 min read

TL;DR · summary of 33 replies
  • @chessmaster got an error with the posted script from metulj, was advised to remove } on line 107.
  • Another user (@arnage) suggested fixing the error by changing echo getShout($u, $s,TRUE); to echo getShout($u, $s);.
  • @chessmaster encountered another error with a function getShout() not found in core files. Suggestions included checking for the existence of such a function and trying a simplified version.
  • A user (@m4ster_v4) shared some functions related to getting and adding shouts, which might be useful for fixing errors or creating a community script.

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

14 participants
chessmaster Junior · 40 posts #1

I've been searching for the whole day looking for a script like AspireWap.net, unfortunately, i did'nt found anything. 🙁 can anyone provide/help me to have those kind of community script?

subzero Super moderator Fellow · 3,954 posts #2

LoL Still lavalair modded to index can't hide the true script kids you need to code better then that ...

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

metulj Super moderator Principal · 1,726 posts #3

subzero wrote: LoL Still lavalair modded to index can't hide the true script kids you need to code better then that ...

nope.. that one aint moded from lava... 😉

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

subzero Super moderator Fellow · 3,954 posts #4

So the holes is same as lava lol ? Nice they can't code as well lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

metulj Super moderator Principal · 1,726 posts #5

subzero wrote: So the holes is same as lava lol ? Nice they can't code as well lol

i'm not 100% sure but i think it's moded from this script

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

Attachments: MalaysiaWap_OOP.zip
chessmaster Junior · 40 posts #8

metulj i got an error with your posted script malaysiawap ---> Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\malaysia_SRC\home.php on line 107

what should i do to fix the error?

Added after 35 minutes:

<?php $user = new User(); if($ref=="home"){ addonline($u, "Home"); $theme->MenuDiv(1); if(isset($_POST["status"])){ echo $user->Status($_POST["statustext"]); } echo "wap maseh terbengkalai, gune lah inbox tu dahulu ye"; $theme->Alert(); /* $theme->Div("Item"); echo "**Status** "; $stat = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM status WHERE user='".$u."'")); $statlike = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE who='".$u."'")); $status = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE user='".$u."' ORDER BY sent DESC")); $stlike = mysql_fetch_array(mysql_query("SELECT * FROM statuslike WHERE refid='".$status[id]."'")); $statuscom = $user->CountTable("statuscomment", $status[id]); $statuslike = $user->CountTable("statuslike", $status[id]); if($stat[0]==0){ $mes = "Whats on your mind?"; }else{ $timesent = remaining($status[sent], 1*60*60); $mes = "$status[text] $timesent"; } if($do=="status"){ echo "<form action=\"$path??a=home&amp;ref=home\" method=\"POST\">"; echo "$mes "; echo "<input type=\"text\" name=\"statustext\" class=\"input\" maxlength=\"255\"/> "; echo "<input type=\"submit\" name=\"status\" value=\"Update\" class=\"button\"/><a href=\"$path?a=home&amp;ref=home\">Cancel</a></form> "; }else{ echo "$mes "; echo "<a href=\"$path?a=home&amp;ref=$ref&amp;do=status\">Update</a> "; if($stat[0]>0){ if($statlike[0]==0){ $like = "<a href=\"$path?a=home&amp;ref=status&amp;i=$status[id]&amp;do=like\">Like</a>"; }else{ $like = "<a href=\"$path?a=home&amp;ref=status&amp;i=$status[id]&amp;do=unlike&amp;li=$stlike[0]\">Unlike </a>"; } echo "<a href=\"$path?a=home&amp;ref=status&amp;i=$status[id]\">$statuscom Comment</a> - $like "; if($statuslike>0){ echo "<a href=\"$path?a=home&amp;ref=statuslike&amp;i=$status[id]\">$statuslike people like this</a>"; } } } $theme->Div("D", true); */ $theme->Div("Item"); echo "**Shoutbox** "; if(isset($_POST["submit"])){ echo " "; echo addShout($_POST["shout"], $u, $s); } echo getShout($u, $s, TRUE); if(level($u, 1)){ $textmsg = "250"; }else{ $textmsg = "150"; } echo "<form action=\"$path?a=$a&amp;s=$s\" method=\"post\">"; echo "<input type=\"text\" name=\"shout\" class=\"input\" maxlength=\"$textmsg\"/> "; echo "<input type=\"submit\" name=\"submit\" value=\"Shouted\" class=\"submit\"/></form>"; } $theme->Div("D", true); $theme->Div("Item"); echo "<a href=\"$path?a=inbox\">Inbox</a>"; $theme->Div("D", true); $theme->Div("Item"); echo "<a href=\"$path?a=profile&amp;w=$u\">Profile</a>"; $theme->Div("D", true); $theme->Div("Item"); echo "<a href=\"$path?a=online\">Online</a>"; $theme->Div("D", true); $theme->Div("Item"); echo "Friends"; $theme->Div("D", true); $theme->Div("Item"); echo "Forums"; $theme->Div("D", true); $theme->Div("Item"); echo "Chats"; $theme->Div("D", true); $theme->Div("Item"); echo "Diary"; $theme->Div("D", true); $theme->MenuDiv(1); }else if($ref=="status"){ $theme->MenuDiv(1); if($i==""){ echo "Invalid ref ID"; }else{ if(isset($_POST["submit"])){ echo $user->AddComment("statuscomment", $_POST["comment"], $i); }else if($do=="like"){ echo $user->AddLike("statuslike", $i); }else if($do=="unlike"){ echo $user->RemoveLike("statuslike", $_GET["li"]);} $data = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE id='".$i."'")); $theme->Div("Item"); echo "$data[text] ".remaining($data[sent], 1*60*60)." "; echo "<form action=\"$path??a=home&amp;ref=status&amp;i=$i\" method=\"POST\">"; echo "<input type=\"text\" name=\"comment\" class=\"input\" maxlength=\"255\"/> "; echo "<input type=\"submit\" name=\"submit\" value=\"Comment\" class=\"button\"/></form>"; $theme->Div("D", true); if($p=="" || $p<=0)$p=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuscomment WHERE refid='".$i."'")); $ni = $noi[0]; //changable $ipp= 5; $np = ceil($ni/$ipp); $npc = ceil($ni/$ipp); if(($p>$np)&&$p!=1)$p= $np; $ls = ($p-1)*$ipp; $sql = "SELECT * FROM statuscomment WHERE refid='".$i."' ORDER BY sent DESC LIMIT $ls, $ipp"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0){ while ($item = mysql_fetch_array($items)){ $timesent = remaining($item[sent], 1*60*60); $text = parsetext($item[text]); $userlink = "<a href=\"$path?a=profile&amp;ref=user&amp;w=$item[who]\">".id_name($item[who], $u, TRUE)."</a>"; $out = "".avatar($item[who], 15, 15)." $userlink $text $timesent"; $theme->Div("Item"); echo $out; $theme->Div("D", true); } }else{ echo errorSQL(); } $theme->Div("Item"); echo $theme->Paging("$path?a=$a&amp;ref=$ref&amp;w=$w", $p, $np, $npc, $ipp, $ls, $ni); $theme->Div("D", true); } $theme->MenuDiv(1); }else if($ref=="statuslike"){ $theme->MenuDiv(1); if($i==""){ echo "Invalid ref ID"; }else{ $data = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE id='".$i."'")); $theme->Div("Item"); echo "$data[text] ".remaining($data[sent], 1*60*60)." "; $theme->Div("D", true); if($p=="" || $p<=0)$p=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE refid='".$i."'")); $ni = $noi[0]; //changable $ipp= 5; $np = ceil($ni/$ipp); $npc = ceil($ni/$ipp); if(($p>$np)&&$p!=1)$p= $np; $ls = ($p-1)*$ipp; $sql = "SELECT * FROM statuslike WHERE refid='".$i."' ORDER BY sent DESC LIMIT $ls, $ipp"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0){ while ($item = mysql_fetch_array($items)){ $timesent = remaining($item[sent], 1*60*60); $text = parsetext($item[text]); $userlink = "<a href=\"$path?a=profile&amp;ref=user&amp;w=$item[who]\">".id_name($item[who], $u, TRUE)."</a>"; $out = "".avatar($item[who], 15, 15)." $userlink like this $timesent"; $theme->Div("Item"); echo $out; $theme->Div("D", true); } }else{ echo errorSQL(); } $theme->Div("Item"); echo $theme->Paging("$path?a=$a&amp;ref=$ref&amp;w=$w", $p, $np, $npc, $ipp, $ls, $ni); $theme->Div("D", true); } $theme->MenuDiv(1); }else if($ref=="help"){ echo "Help"; }else if($ref=="tc"){ echo "Terms and condition"; }else{ if(isset($u)){ echo "You are already logged in!. <a href=\"$path?a=home&amp;ref=home\">Continue . .</a>"; }else{ if(isset($_GET["do"])){ echo MessageCase($_GET["do"]); echo " "; } echo "<form action=\"login.php\" method=\"POST\">"; echo "Login ID <input type=\"text\" name=\"username\" class=\"input\" maxlength=\"15\"/> "; echo "Password <input type=\"password\" name=\"password\" class=\"input\" maxlength=\"15\"/> "; echo "<input type=\"submit\" name=\"submit\" value=\"Login\" class=\"button\"/></form>"; $theme->Div("DivTitle"); echo "No Account?: <a href=\"$path?a=register\">Join us</a>"; $theme->Div("D"); } } ?>

Added after 2 minutes:

those error highlighted by RED color..

chessmaster Junior · 40 posts #9

please help me to fix that error ( those text in red color in php codes) .. please anyone?

Mobilust Junior · 33 posts #10

showing this error Parse error: syntax error, unexpected '}' in /home/jattz/public_html/j******.com/forum/_SRC/home.php on line 107 please help...........

arnage Lead · 811 posts #11

Write "else if" together like "elseif".

There is no "else" after conditions and from "else if" just "else" is executed and triger error due to "if...".

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
something else Fellow · 2,296 posts #12

Mobilust wrote: showing this error Parse error: syntax error, unexpected '}' in /home/jattz/public_html/j******.com/forum/_SRC/home.php on line 107 please help...........

Do as error message tells you and remove } on line 107

arnage Lead · 811 posts #13

Exactly. 🙂 The error isn't there in marked red. Try this:

<?php
$user = new User();
if($ref=="home"){
addonline($u, "Home");
$theme->MenuDiv(1);
if(isset($_POST["status"])){
echo $user->Status($_POST["statustext"]);
}

echo "wap maseh terbengkalai, gune lah inbox tu dahulu ye";
$theme->Alert();
/*
$theme->Div("Item");
echo "<big><b>Status</b></big><br/>";
$stat = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM status WHERE user='".$u."'"));
$statlike = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE who='".$u."'"));
$status = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE user='".$u."' ORDER BY sent DESC"));

$stlike = mysql_fetch_array(mysql_query("SELECT * FROM statuslike WHERE refid='".$status[id]."'"));

$statuscom = $user->CountTable("statuscomment", $status[id]);
$statuslike = $user->CountTable("statuslike", $status[id]);
if($stat[0]==0){
$mes = "Whats on your mind?";
}else{
$timesent = remaining($status[sent], 1*60*60);
$mes = "$status[text] $timesent";
}

if($do=="status"){
echo "<form action=\"$path??a=home&ref=home\" method=\"POST\">";
echo "$mes<br/>";
echo "<input type=\"text\" name=\"statustext\" class=\"input\" maxlength=\"255\"/><br/>";
echo "<input type=\"submit\" name=\"status\" value=\"Update\" class=\"button\"/><a href=\"$path?a=home&ref=home\">Cancel</a></form> ";
}else{
echo "$mes<br/>";
echo "<a href=\"$path?a=home&ref=$ref&do=status\">U pdate</a><br/>";
if($stat[0]>0){

if($statlike[0]==0){
$like = "<a href=\"$path?a=home&ref=status&i=$status[id]&do=like\">Like</a>";
}else{
$like = "<a href=\"$path?a=home&ref=status&i=$status[id]&do=unlike&li=$stlike[0]\">Unlike </a>";
}

echo "<a href=\"$path?a=home&ref=status&i=$status[id]\">$statuscom Comment</a> - $like<br/>";
if($statuslike>0){
echo "<a href=\"$path?a=home&ref=statuslike&i=$stat us[id]\">$statuslike people like this</a>";
}
}
}

$theme->Div("D", true);
*/

$theme->Div("Item");
echo "<b>Shoutbox</b><br/>";

if(isset($_POST["submit"])){
echo "<br/>";
echo addShout($_POST["shout"], $u, $s);
}
echo getShout($u, $s, TRUE);
if(level($u, 1)){
$textmsg = "250";
}else{
$textmsg = "150";
}
echo "<form action=\"$path?a=$a&s=$s\" method=\"post\">";
echo "<input type=\"text\" name=\"shout\" class=\"input\" maxlength=\"$textmsg\"/><br/>";
echo "<input type=\"submit\" name=\"submit\" value=\"Shouted\" class=\"submit\"/></form>";
}

$theme->Div("D", true);

$theme->Div("Item");
echo "<a href=\"$path?a=inbox\">Inbox</a>";
$theme->Div("D", true);
$theme->Div("Item");
echo "<a href=\"$path?a=profile&w=$u\">Profile</a>";
$theme->Div("D", true);
$theme->Div("Item");
echo "<a href=\"$path?a=online\">Online</a>";
$theme->Div("D", true);
$theme->Div("Item");
echo "Friends";
$theme->Div("D", true);
$theme->Div("Item");
echo "Forums";
$theme->Div("D", true);
$theme->Div("Item");
echo "Chats";
$theme->Div("D", true);
$theme->Div("Item");
echo "Diary";
$theme->Div("D", true);
$theme->MenuDiv(1);

if($ref=="status"){
$theme->MenuDiv(1);

if($i==""){
echo "Invalid ref ID";
}else{

if(isset($_POST["submit"])){
echo $user->AddComment("statuscomment", $_POST["comment"], $i);
}else if($do=="like"){
echo $user->AddLike("statuslike", $i);
}else if($do=="unlike"){
echo $user->RemoveLike("statuslike", $_GET["li"]);}

$data = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE id='".$i."'"));
$theme->Div("Item");
echo "$data[text] ".remaining($data[sent], 1*60*60)."<br/>";

echo "<form action=\"$path??a=home&ref=status&i=$i\" method=\"POST\">";
echo "<input type=\"text\" name=\"comment\" class=\"input\" maxlength=\"255\"/><br/>";
echo "<input type=\"submit\" name=\"submit\" value=\"Comment\" class=\"button\"/></form>";
$theme->Div("D", true);

if($p=="" || $p<=0)$p=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuscomment WHERE refid='".$i."'"));
$ni = $noi[0]; //changable
$ipp= 5;
$np = ceil($ni/$ipp);
$npc = ceil($ni/$ipp);
if(($p>$np)&&$p!=1)$p= $np;
$ls = ($p-1)*$ipp;
$sql = "SELECT * FROM statuscomment WHERE refid='".$i."' ORDER BY sent DESC LIMIT $ls, $ipp";

$items = mysql_query($sql);

echo mysql_error();
if(mysql_num_rows($items)>0){
while ($item = mysql_fetch_array($items)){

$timesent = remaining($item[sent], 1*60*60);
$text = parsetext($item[text]);
$userlink = "<a href=\"$path?a=profile&ref=user&w=$item[who]\">".id_name($item[who], $u, TRUE)."</a>";
$out = "".avatar($item[who], 15, 15)." $userlink $text<br/>$timesent";
$theme->Div("Item");
echo $out;
$theme->Div("D", true);

}
}else{
echo errorSQL();
}

$theme->Div("Item");
echo $theme->Paging("$path?a=$a&ref=$ref&w=$w", $p, $np, $npc, $ipp, $ls, $ni);
$theme->Div("D", true);
}
$theme->MenuDiv(1);

}else if($ref=="statuslike"){
$theme->MenuDiv(1);

if($i==""){
echo "Invalid ref ID";
}else{

$data = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE id='".$i."'"));
$theme->Div("Item");
echo "$data[text] ".remaining($data[sent], 1*60*60)."<br/>";
$theme->Div("D", true);
if($p=="" || $p<=0)$p=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE refid='".$i."'"));
$ni = $noi[0]; //changable
$ipp= 5;
$np = ceil($ni/$ipp);
$npc = ceil($ni/$ipp);
if(($p>$np)&&$p!=1)$p= $np;
$ls = ($p-1)*$ipp;
$sql = "SELECT * FROM statuslike WHERE refid='".$i."' ORDER BY sent DESC LIMIT $ls, $ipp";

$items = mysql_query($sql);

echo mysql_error();
if(mysql_num_rows($items)>0){
while ($item = mysql_fetch_array($items)){

$timesent = remaining($item[sent], 1*60*60);
$text = parsetext($item[text]);

$userlink = "<a href=\"$path?a=profile&ref=user&w=$item[who]\">".id_name($item[who], $u, TRUE)."</a>";
$out = "".avatar($item[who], 15, 15)." $userlink like this<br/>$timesent";
$theme->Div("Item");
echo $out;
$theme->Div("D", true);

}
}else{
echo errorSQL();
}

$theme->Div("Item");
echo $theme->Paging("$path?a=$a&ref=$ref&w=$w", $p, $np, $npc, $ipp, $ls, $ni);
$theme->Div("D", true);
}
$theme->MenuDiv(1);

}else if($ref=="help"){
echo "Help";
}else if($ref=="tc"){
echo "Terms and condition";
}else{

if(isset($u)){
echo "You are already logged in!. <a href=\"$path?a=home&ref=home\">Continue . .</a>";
}else{

if(isset($_GET["do"])){
echo MessageCase($_GET["do"]);
echo "<br/>";
}

echo "<form action=\"login.php\" method=\"POST\">";
echo "Login ID<br/><input type=\"text\" name=\"username\" class=\"input\" maxlength=\"15\"/><br/>";
echo "Password<br/><input type=\"password\" name=\"password\" class=\"input\" maxlength=\"15\"/><br/>";
echo "<input type=\"submit\" name=\"submit\" value=\"Login\" class=\"button\"/></form>";

$theme->Div("DivTitle");
echo "No Account?: <a href=\"$path?a=register\">Join us</a>";
$theme->Div("D");
}
}
?>
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
chessmaster Junior · 40 posts #14

arnage

i got new error from main menu: Fatal error: Call to undefined function getShout() in C:\xampp\htdocs\Malaysia_SRC\home.php on line 69

-----> echo getShout($u, $s,TRUE);

<?php 
$user = new User(); 
if($ref=="home"){ 
addonline($u, "Home"); 
$theme->MenuDiv(1); 
if(isset($_POST["status"])){ 
echo $user->Status($_POST["statustext"]); 
} 

echo "wap maseh terbengkalai, gune lah inbox tu dahulu ye"; 
$theme->Alert(); 
/* 
$theme->Div("Item"); 
echo "<big><b>Status</b></big><br/>"; 
$stat = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM status WHERE user='".$u."'")); 
$statlike = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE who='".$u."'")); 
$status = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE user='".$u."' ORDER BY sent DESC")); 

$stlike = mysql_fetch_array(mysql_query("SELECT * FROM statuslike WHERE refid='".$status[id]."'")); 

$statuscom = $user->CountTable("statuscomment", $status[id]); 
$statuslike = $user->CountTable("statuslike", $status[id]); 
if($stat[0]==0){ 
$mes = "Whats on your mind?"; 
}else{ 
$timesent = remaining($status[sent], 1*60*60); 
$mes = "$status[text] $timesent"; 
} 

if($do=="status"){ 
echo "<form action=\"$path??a=home&ref=home\" method=\"POST\">"; 
echo "$mes<br/>"; 
echo "<input type=\"text\" name=\"statustext\" class=\"input\" maxlength=\"255\"/><br/>"; 
echo "<input type=\"submit\" name=\"status\" value=\"Update\" class=\"button\"/><a href=\"$path?a=home&ref=home\">Cancel</a></form> "; 
}else{ 
echo "$mes<br/>"; 
echo "<a href=\"$path?a=home&ref=$ref&do=status\">U pdate</a><br/>"; 
if($stat[0]>0){ 

if($statlike[0]==0){ 
$like = "<a href=\"$path?a=home&ref=status&i=$status[id]&do=like\">Like</a>"; 
}else{ 
$like = "<a href=\"$path?a=home&ref=status&i=$status[id]&do=unlike&li=$stlike[0]\">Unlike </a>"; 
} 

echo "<a href=\"$path?a=home&ref=status&i=$status[id]\">$statuscom Comment</a> - $like<br/>"; 
if($statuslike>0){ 
echo "<a href=\"$path?a=home&ref=statuslike&i=$stat us[id]\">$statuslike people like this</a>"; 
} 
} 
} 

$theme->Div("D", true); 
*/ 

$theme->Div("Item"); 
echo "<b>Shoutbox</b><br/>"; 

if(isset($_POST["submit"])){ 
echo "<br/>"; 
echo addShout($_POST["shout"], $u, $s);
} 
echo getShout($u, $s,TRUE); 
if(level($u, 1)){ 
$textmsg = "250"; 
}else{ 
$textmsg = "150"; 
} 
echo "<form action=\"$path?a=$a&s=$s\" method=\"post\">"; 
echo "<input type=\"text\" name=\"shout\" class=\"input\" maxlength=\"$textmsg\"/><br/>"; 
echo "<input type=\"submit\" name=\"submit\" value=\"Shouted\" class=\"submit\"/></form>"; 
} 

$theme->Div("D", true); 

$theme->Div("Item"); 
echo "<a href=\"$path?a=inbox\">Inbox</a>"; 
$theme->Div("D", true); 
$theme->Div("Item"); 
echo "<a href=\"$path?a=profile&w=$u\">Profile</a>"; 
$theme->Div("D", true); 
$theme->Div("Item"); 
echo "<a href=\"$path?a=online\">Online</a>"; 
$theme->Div("D", true); 
$theme->Div("Item"); 
echo "Friends"; 
$theme->Div("D", true); 
$theme->Div("Item"); 
echo "Forums"; 
$theme->Div("D", true); 
$theme->Div("Item"); 
echo "Chats"; 
$theme->Div("D", true); 
$theme->Div("Item"); 
echo "Diary"; 
$theme->Div("D", true); 
$theme->MenuDiv(1); 

if($ref=="status"){ 
$theme->MenuDiv(1); 

if($i==""){ 
echo "Invalid ref ID"; 
}else{ 

if(isset($_POST["submit"])){ 
echo $user->AddComment("statuscomment", $_POST["comment"], $i); 
}else if($do=="like"){ 
echo $user->AddLike("statuslike", $i); 
}else if($do=="unlike"){ 
echo $user->RemoveLike("statuslike", $_GET["li"]);} 

$data = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE id='".$i."'")); 
$theme->Div("Item"); 
echo "$data[text] ".remaining($data[sent], 1*60*60)."<br/>"; 

echo "<form action=\"$path??a=home&ref=status&i=$i\" method=\"POST\">"; 
echo "<input type=\"text\" name=\"comment\" class=\"input\" maxlength=\"255\"/><br/>"; 
echo "<input type=\"submit\" name=\"submit\" value=\"Comment\" class=\"button\"/></form>"; 
$theme->Div("D", true); 

if($p=="" || $p<=0)$p=1; 
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuscomment WHERE refid='".$i."'")); 
$ni = $noi[0]; //changable 
$ipp= 5; 
$np = ceil($ni/$ipp); 
$npc = ceil($ni/$ipp); 
if(($p>$np)&&$p!=1)$p= $np; 
$ls = ($p-1)*$ipp; 
$sql = "SELECT * FROM statuscomment WHERE refid='".$i."' ORDER BY sent DESC LIMIT $ls, $ipp"; 

$items = mysql_query($sql); 

echo mysql_error(); 
if(mysql_num_rows($items)>0){ 
while ($item = mysql_fetch_array($items)){ 

$timesent = remaining($item[sent], 1*60*60); 
$text = parsetext($item[text]); 
$userlink = "<a href=\"$path?a=profile&ref=user&w=$item[who]\">".id_name($item[who], $u, TRUE)."</a>"; 
$out = "".avatar($item[who], 15, 15)." $userlink $text<br/>$timesent"; 
$theme->Div("Item"); 
echo $out; 
$theme->Div("D", true); 

} 
}else{ 
echo errorSQL(); 
} 

$theme->Div("Item"); 
echo $theme->Paging("$path?a=$a&ref=$ref&w=$w", $p, $np, $npc, $ipp, $ls, $ni); 
$theme->Div("D", true); 
} 
$theme->MenuDiv(1); 

}else if($ref=="statuslike"){ 
$theme->MenuDiv(1); 

if($i==""){ 
echo "Invalid ref ID"; 
}else{ 

$data = mysql_fetch_array(mysql_query("SELECT * FROM status WHERE id='".$i."'")); 
$theme->Div("Item"); 
echo "$data[text] ".remaining($data[sent], 1*60*60)."<br/>"; 
$theme->Div("D", true); 
if($p=="" || $p<=0)$p=1; 
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM statuslike WHERE refid='".$i."'")); 
$ni = $noi[0]; //changable 
$ipp= 5; 
$np = ceil($ni/$ipp); 
$npc = ceil($ni/$ipp); 
if(($p>$np)&&$p!=1)$p= $np; 
$ls = ($p-1)*$ipp; 
$sql = "SELECT * FROM statuslike WHERE refid='".$i."' ORDER BY sent DESC LIMIT $ls, $ipp"; 

$items = mysql_query($sql); 

echo mysql_error(); 
if(mysql_num_rows($items)>0){ 
while ($item = mysql_fetch_array($items)){ 

$timesent = remaining($item[sent], 1*60*60); 
$text = parsetext($item[text]); 

$userlink = "<a href=\"$path?a=profile&ref=user&w=$item[who]\">".id_name($item[who], $u, TRUE)."</a>"; 
$out = "".avatar($item[who], 15, 15)." $userlink like this<br/>$timesent"; 
$theme->Div("Item"); 
echo $out; 
$theme->Div("D", true); 

} 
}else{ 
echo errorSQL(); 
} 

$theme->Div("Item"); 
echo $theme->Paging("$path?a=$a&ref=$ref&w=$w", $p, $np, $npc, $ipp, $ls, $ni); 
$theme->Div("D", true); 
} 
$theme->MenuDiv(1); 

}else if($ref=="help"){ 
echo "Help"; 
}else if($ref=="tc"){ 
echo "Terms and condition"; 
}else{ 

if(isset($u)){ 
echo "You are already logged in!. <a href=\"$path?a=home&ref=home\">Continue . .</a>"; 
}else{ 

if(isset($_GET["do"])){ 
echo MessageCase($_GET["do"]); 
echo "<br/>"; 
} 

echo "<form action=\"login.php\" method=\"POST\">"; 
echo "Login ID<br/><input type=\"text\" name=\"username\" class=\"input\" maxlength=\"15\"/><br/>"; 
echo "Password<br/><input type=\"password\" name=\"password\" class=\"input\" maxlength=\"15\"/><br/>"; 
echo "<input type=\"submit\" name=\"submit\" value=\"Login\" class=\"button\"/></form>"; 

$theme->Div("DivTitle"); 
echo "No Account?: <a href=\"$path?a=register\">Join us</a>"; 
$theme->Div("D"); 
} 
} 
?>
arnage Lead · 811 posts #17

Well, now you have to look in the configuration or core file if there is a function named getShout().

For a quick fix, try to change " echo getShout($u, $s,TRUE); " with " echo getShout($u, $s); ".

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
chessmaster Junior · 40 posts #18

arnage

Well, now you have to look in the configuration or core file if there is a function named getShout(). i can't find any core file i think there is no core file or configuration on the script,,

For a quick fix, try to change " echo getShout($u, $s,TRUE); " with " echo getShout($u, $s); ".

error again.. no effect at all.

Added after 7 minutes:

arnage if you dont mind,, do you have any community script lavalair aside from the old script available in the site. any working community site will do.. lol

arnage Lead · 811 posts #19

Really there is nowhere for the function getShout(). You can view this forum for a diferent script because there are really many forum scripts, but honestly I do not know what's the best one. Maybe a PhpBB wap.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
chessmaster Junior · 40 posts #20

yes sir i cant find any getshout() (core) there,,anyways, thank you for the response. i've been searching for a good and working lavalair script,, till now.. nothing.. just a beginner here.. just learned hosting/uploading script a couple of days ago.. lol .. yes sir lot of script here,, i almost tried half of the available script.. unfortunately.. it came a long way to fix the error..lol

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