Lavalair Mods...
Collapse
This is a sticky topic.
X
X
-
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
-
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
this might help for blog comments aswell
in genproc.php action=delbl
$res = mysql_query("DELETE FROM ibwf_blogcomment WHERE blogowner='".$bid."'");Last edited by something else; 28.12.11, 20:30. Reason: quotes are screwed up due to forum swap over
Comment
-
Code:$avlink = getavatar($item[2]); if ($avlink!=""){ echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/> "; }else{ echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/> "; }
Comment
-
Code:$vfc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum Category'")); $vft = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum Topic'")); $vfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum'")); $cnt = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Creating new topic'")); $pry = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Posting reply'")); $nif = $vfc[0] + $vft[0] + $vfo[0] + $cnt[0] + $pry[0]; echo "<a href=\"index.php?action=forumindx&sid=$sid\">Forums($nif)</a> ";
Comment
-
Code:$vfc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum Category'")); $vft = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum Topic'")); $vfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum'")); $cnt = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Creating new topic'")); $pry = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Posting reply'")); echo "$vfc[0] members Viewing Forum Category "; echo "$vft[0] members Viewing Forum Topic "; echo "$vfo[0]Viewing Forum "; echo "$cnt[0] members Creating new topic "; echo "$pry[0] members Posting reply ";
sigpiceeeeerrr....
Comment
-
same way as before as online list but change
Code:///////for 1st post in topic $avlink = getavatar($ttext[0]); if ($avlink!=""){ echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/> "; }else{ echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/> "; } ////then for posts $avlink = getavatar($post[2]); if ($avlink!=""){ echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/> "; }else{ echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/> "; }
Comment
-
<div class='quotetop'>QUOTE (Numb @ Jan 13 2009, 05:29 PM) <{POST_SNAPBACK}></div>Code:$vfc = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum Category'")); $vft = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum Topic'")); $vfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Viewing Forum'")); $cnt = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Creating new topic'")); $pry = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE place='Posting reply'")); $nif = $vfc[0] + $vft[0] + $vfo[0] + $cnt[0] + $pry[0]; echo "<a href=\"index.php?action=forumindx&sid=$sid\">Forums($nif)</a> ";
just change your forum link on action=main to that code and it will tell you how many people are in the forums
eg:
Chat(46)
Forums(157)
Comment
-
Avatar inbox
find
Code:echo "$ptxt $bylnk ";
and replace with this code.
Code:echo "$ptxt"; $uid =$pminfo[1]; $avatar = getavatar($uid); if ($avatar=="") { echo"<img src=\"mages/nopic.jpg\" width=\"32\" height=\"32\" alt=\"avatar\"/>"; }else{ echo"<img src=\"$avatar\" width=\"32\" height=\"32\" alt=\"avatar\"/>"; } echo "$bylnk ";
Comment
-
for 1st Post !
index.php action="viewtpc".
(after
Code:$unick = getnick_uid($ttext[0]);
add this
Code:uid =$ttext[0]; $avatar = getavatar($uid); if ($avatar=="") { echo"<img src=\"images/nopic.jpg\" width=\"32\" height=\"32\" alt=\"avatar\"/>"; }else{ echo"<img src=\"$avatar\" width=\"32\" height=\"32\" alt=\"avatar\"/>"; }
find and add after
Code:$unick = getnick_uid($post[2]);
Code:$uid =$post[2]; $avatar = getavatar($uid); if ($avatar=="") { echo"<img src=\"images/nopic.jpg\" width=\"32\" height=\"32\" alt=\"avatar\"/>"; }else{ echo"<img src=\"$avatar\" width=\"32\" height=\"32\" alt=\"avatar\"/>"; }
Comment
-
Code:echo $pmtext; echo " <input name=\"pmtext\" maxlength=\"500\"/> "; echo "<anchor>+ Fast reply<go href=\"inbxproc.php?action=sendpm&who=$pminfo[1]&sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor> ";
add before or afterCode:echo " "; echo "</p>"; echo "<p align=\"center\">"; echo "Action: <select name=\"pmact\">"; echo "<option value=\"rep-$pmid\">Reply</option>"; echo "<option value=\"del-$pmid\">Delete</option>"; if(isstarred($pmid)) { echo "<option value=\"ust-$pmid\">Unstar</option>"; }else{ echo "<option value=\"str-$pmid\">Star</option>"; } echo "<option value=\"rpt-$pmid\">Report</option>"; echo "<option value=\"frd-$pmid\">Email To</option>"; echo "<option value=\"dnl-$pmid\">Download</option>"; echo "</select>";
Comment
-
code to update plusses after shout
replace this action in genproc.php
CODE
Code://////////////////////////////////////////shout else if($action=="shout") { $shtxt = $_POST["shtxt"]; addonline(getuid_sid($sid),"close your ears im Shouting",""); echo "<card id=\"main\" title=\"Shout\">"; echo "<p align=\"center\">"; if(getplusses(getuid_sid($sid))<5) { echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 5 plusses to shout!"; }else{ $shtxt = $shtxt; //$uid = getuid_sid($sid); $shtm = time(); $res = mysql_query("INSERT INTO ibwf_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'"); if($res) { $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id='".$uid."'")); $shts = $shts[0]+1; mysql_query("UPDATE ibwf_users SET shouts='".$shts."' WHERE id='".$uid."'"); $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $cow = $cow[0]+20; mysql_query("UPDATE ibwf_users SET plusses='".$cow."' WHERE id='".$uid."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>Shout added successfully"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error"; } } echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
replace these actions in inbxproc.php
CODE
Code:if($action=="sendpm") { echo "<card id=\"main\" title=\"Inbox\">"; echo "<p align=\"center\">"; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time(); $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'")); $pmfl = $lastpm[0]+getpmaf(); if($byuid==1)$pmfl=0; if($pmfl<$tm) { if(!isblocked($pmtext,$byuid)) { if((!isignored($byuid, $who))&&(!istrashed($byuid))) { $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); }else{ $res = true; } if($res) { $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $cow = $cow[0]+10; mysql_query("UPDATE ibwf_users SET plusses='".$cow."' WHERE id='".$uid."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PM was sent successfully to $whonick "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; } }else{ $bantime = time() + (7*24*60*60); echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; echo "You just sent a link to one of the crapiest sites on earth The members of these sites spam here a lot, so go to that site and stay there if you don't like it here as a result of your stupid action: 1. you have lost your sheild 2. you have lost all your plusses 3. You are BANNED!"; mysql_query("INSERT INTO ibwf_penalties SET uid='".$byuid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'"); mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$byuid."'"); mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='2', timesent='".$tm."'"); } }else{ $rema = $pmfl - $tm; echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Flood control: $rema Seconds "; } echo " <a href=\"inbox.php?action=main&sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } else if($action=="sendto") { echo "<card id=\"main\" title=\"Inbox\">"; echo "<p align=\"center\">"; $pmtou = $_POST["pmtou"]; $who = getuid_nick($pmtou); if($who==0) { echo "<img src=\"images/notok.gif\" alt=\"x\"/>User Does Not exist "; }else{ $whonick = getnick_uid($who); $byuid = getuid_sid($sid); $tm = time(); $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'")); $pmfl = $lastpm[0]+getpmaf(); if($pmfl<$tm) { if(!isblocked($pmtext,$byuid)) { if((!isignored($byuid, $who))&&(!istrashed($byuid))) { $res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); }else{ $res = true; } if($res) { $cow = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'")); $cow = $cow[0]+10; mysql_query("UPDATE ibwf_users SET plusses='".$cow."' WHERE id='".$uid."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PM was sent successfully to $whonick "; echo parsepm($pmtext, $sid); }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; } }else{ $bantime = time() + (7*24*60*60); echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Can't Send PM to $whonick "; echo "You just sent a link to one of the crapiest sites on earth The members of these sites spam here a lot, so go to that site and stay there if you don't like it here as a result of your stupid action: 1. you have lost your sheild 2. you have lost all your plusses 3. You are BANNED!"; mysql_query("INSERT INTO ibwf_penalties SET uid='".$byuid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'"); mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$byuid."'"); mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='2', timesent='".$tm."', reported='1'"); } }else{ $rema = $pmfl - $tm; echo "<img src=\"images/notok.gif\" alt=\"X\"/>"; echo "Flood control: $rema Seconds "; } } echo " <a href=\"inbox.php?action=main&sid=$sid\">Back to inbox</a> "; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; }
add this action index.php
CODE
Code:else if($action=="rukiya") { echo "<card id=\"main\" title=\"Leaderboard \">"; echo "<p align=\"center\">"; if($page=="" || $page<=0)$page=1; $nov = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_users WHERE plusses>4999")); $num_items = nov[0]; $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT id, name,plusses FROM ibwf_users WHERE plusses>4999 ORDER BY plusses DESC LIMIT $limit_start, $items_per_page"; echo " [size="1"]"; $items = mysql_query($sql); echo mysql_error(); while ($item = mysql_fetch_array($items)) { $lnk = "<a href=\"index.php?action=viewuser&who=$item[0]&sid=$sid\">$item[1]</a>"; echo "$lnk - $item[2] "; } echo "[/size]</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"index.php?action=rukiya&page=$ppage&sid=$sid\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"index.php?action=rukiya&page=$npage&sid=$sid\">Next»</a>"; } echo " $page/$num_pages "; if($num_pages>2) { echo getjumper($action, $sid,"index"); } echo "</p>"; echo "</card>"; echo "<card><p align=\"center\">"; echo "</p>"; echo "</card>"; }
Comment
-
PROFILE MOODS
core.php
Code:function getpmood($uid) { $pmood = mysql_fetch_array(mysql_query("SELECT pmood FROM ibwf_users WHERE id='".$uid."'")); return $pmood[0]; }
use as
Code:echo "<a href=\"lists.php?action=pmoods&sid=$sid\">»Profile Moods</a><br/>";
Code:$pmoodlink = getpmood($who); if($pmoodlink=="") { echo ""; }else{ echo "<img src=\"$pmoodlink\" alt=\"$whonick\"/><br/>"; }
Code://////////////////////////////////////////Select Profile Moods else if($action=="uppmoods") { /* Profile Moods Lavalair Modification Editor:opticalpigion forum.wapfuns.com */ addonline(getuid_sid($sid),"Updating Profile Moods",""); $pmoodid = $_GET["pmoodid"]; echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; //$uid = getuid_sid($sid); $pmoodlnk = mysql_fetch_array(mysql_query("SELECT pmoodlink FROM ibwf_profilemood WHERE id='".$pmoodid."'")); $res = mysql_query("UPDATE ibwf_users SET pmood='".$pmoodlnk[0]."' WHERE id='".$uid."'"); if($res) { echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Profile Mood Selected<br/>"; }else{ echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!<br/>"; } echo "<br/>"; echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; echo "</body>"; echo"Script By:opticalpigion"; }
Code://////////////////////////////////Profile Moods else if($action=="pmoods") { /* Profile Moods Lavalair Modification Editor:opticalpigion forum.wapfuns.com */ addonline(getuid_sid($sid),"Viwing The Profile Moods List",""); echo "<head>"; echo "<title>Profile Moods List</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_profilemood")); $num_items = $noi[0]; //changable $items_per_page= 5; $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 id, pmoodlink FROM ibwf_profilemood ORDER BY id DESC LIMIT $limit_start, $items_per_page"; echo "<p>"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { echo "<img src=\"$item[1]\" width=\"119\" height=\"30\" alt=\"Profile Moods\"/><br/>"; echo "<a href=\"genproc.php?action=uppmoods&sid=$sid&pmoodid=$item[0]\">SELECT</a><br/>"; echo "<br/>"; } } echo "</p>"; echo "<p align=\"center\">"; if($page>1) { $ppage = $page-1; echo "<a href=\"lists.php?action=pmoods&page=$ppage&sid=$sid&view=$view\">«PREV</a> "; } if($page<$num_pages) { $npage = $page+1; echo "<a href=\"lists.php?action=pmoods&page=$npage&sid=$sid&view=$view\">Next»</a>"; } echo "<br/>$page/$num_pages<br/>"; if($num_pages>2) { $rets = "<form action=\"lists.php\" method=\"get\">"; $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>"; $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>"; $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>"; $rets .= "<input type=\"submit\" value=\"Go To Page\"/>"; $rets .= "</form>"; echo $rets; } echo "</p>"; ////// UNTILL HERE >> echo "<p align=\"center\">"; echo "<a href=\"index.php?action=cpanel&sid=$sid\">Settings</a><br/>"; echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; echo "</body>"; echo"Script By:opticalpigion"; }
Code:CREATE TABLE `ibwf_profilemood` ( `id` int(10) NOT NULL auto_increment, `pmoodlink` varchar(150) NOT NULL default '', PRIMARY KEY (`id`), UNIQUE KEY `pmoodlink` (`pmoodlink`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=235; -- -- Dumping data for table `ibwf_profilemood` -- INSERT INTO `ibwf_profilemood` VALUES (1, '../profilemoods/0carefree.gif'); INSERT INTO `ibwf_profilemood` VALUES (2, '../profilemoods/0euphoric.gif'); INSERT INTO `ibwf_profilemood` VALUES (3, '../profilemoods/0excited0.gif'); INSERT INTO `ibwf_profilemood` VALUES (4, '../profilemoods/0flirty.gif'); INSERT INTO `ibwf_profilemood` VALUES (5, '../profilemoods/0happy.gif');
Code:pmood varchar(100) latin1_swedish_ci No
make new directory with name"profilemoods" into root
u have to insert image in to sql ur self.
uploading images was not working here
so i have upload to mediafire.
file name is methos profile moods.rar and my profile moods.rar
Comment
-
you can use this code below
Code:$noi = mysql_fetch_array(mysql_query("SELECT timesent FROM ibwf_private WHERE id='".$pmid."'")); $var1 = date("his",$noi[0]); $var2 = time (); $var21 = date("his",$var2); $var3 = $var21 - $var1; $var4 = date("s",$var3); echo "<b>This pm was sent </b>"; $remain = time() - $noi[0]; $idle = gettimemsg($remain); echo "$idle ago<br/>";
Comment
Comment