Icons In Mood
Started on the old forum in June 2008 · view the original in the archive · old links redirect here
what icons?
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
something like this, will prob need editing for your site
CODE<?php
ob_start();
header("Cache-Control: no-cache, must-revalidate");
include("config.inc.php");
header("Pragma: no-cache");
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
echo "<wml>";
$Connect = mysql_connect("$server","$user","$pass");
mysql_select_db("$dbname");
$result=mysql_query("select * from members where username='$username' and session='$session'");
$number_of_rows = mysql_num_rows($result);
if ($number_of_rows>0)
{
include("check.inc.php");
}
if ($ok>0)
{
include("smilies.inc.php");
$uonline = mysql_num_rows(mysql_query("select * from latest"));
//this variable might seem complicated, but it's really simple. The first thing it does is sends the query "select * from latest" to the database. This finds all the entries in the database. After that, it counts the number of entries with mysql_num_rows to find out exactly how many users are online.
//print the variable on our page!
echo "<card id="card1" title="$uonline Users Online">";
echo " ";
$id=1;
?>
<?php $datime=date("H:i"); $dadate=(date("j/m/y")); $sqlthing = mysql_query("SELECT * FROM highest WHERE id='$id'"); $highest=(mysql_result($sqlthing,0,"highest")); if ($highest < $uonline) { $highest=$uonline; $query = "update highest set highest='$highest' where id='$id'"; mysql_query($query); //send the query! } echo "Highest Online: $highest "; if(!isset($_GET['page'])){ $page = 1; } else { $page = $_GET['page']; } $max_results = 15; $from = (($page * $max_results) - $max_results); $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM latest"),0); $total_pages = ceil($total_results / $max_results); $sql = mysql_query("SELECT * FROM latest ORDER by ip asc LIMIT $from, $max_results"); while($row = mysql_fetch_array($sql)){ $name = $row['ip']; $resultST=mysql_query("select * from members where username='$name' and stars='1'"); $number_of_rowsST = mysql_num_rows($resultST); if ($number_of_rowsST == 1){ $stars = "*"; } else { $stars = ""; } $sqlM = mysql_query("SELECT * FROM mood WHERE username='$name'"); $gbvalues=(mysql_result($sqlM,0,"mood")); include("smilies.inc.php"); $sqlSHY = mysql_query("SELECT * FROM members WHERE username='$name'"); $SHY=(mysql_result($sqlSHY,0,"shy")); if ($gbvalues < 0) { $gbvalues = "Too busy bitchin to write a mood";} $sqlthing = mysql_query("SELECT * FROM profile WHERE username='$name'"); $name2=$name; include("smilies.inc.php"); $resultSTTT=mysql_query("select * from members where username='$name' and tech='1'"); $sqlSHY = mysql_query("SELECT * FROM members WHERE username='$name'"); $SHY=(mysql_result($sqlSHY,0,"shy")); $number_of_rowsSTTT = mysql_num_rows($resultSTTT); if ($number_of_rowsSTTT == 1 and $SHY == no){ ?> <?php } $resultSTA=mysql_query("select * from members where username='$name' and admin='1' and head='0'"); $number_of_rowsSTA = mysql_num_rows($resultSTA); if ($number_of_rowsSTA == 1){ ?> <?php } $resultSTA=mysql_query("select * from members where username='$name' and admin='1' and head='1'"); $number_of_rowsSTA = mysql_num_rows($resultSTA); if ($number_of_rowsSTA == 1){ ?> <?php } $resultSTA=mysql_query("select * from members where username='$name' and admin='0' and forumadmin='1'"); $number_of_rowsSTA = mysql_num_rows($resultSTA); if ($number_of_rowsSTA == 1){ ?> <?php } $resultSTO=mysql_query("select * from members where username='$name' and owner='1' and hidden='0'"); $sqlSHY = mysql_query("SELECT * FROM members WHERE username='$name'"); $SHY=(mysql_result($sqlSHY,0,"shy")); $number_of_rowsSTO = mysql_num_rows($resultSTO); if ($number_of_rowsSTO == 1 and $SHY == no){ ?> <?php } $resultSTO=mysql_query("select * from members where username='$name' and owner='1' and hidden='1' and tech='0'"); $number_of_rowsSTO = mysql_num_rows($resultSTO); if ($number_of_rowsSTO == 1){ ?> <?php } $resultSTO=mysql_query("select * from members where username='$name' and owner='0' and admin='0' and forumadmin='0'"); $number_of_rowsSTO = mysql_num_rows($resultSTO); if ($number_of_rowsSTO == 1){ ?> <?php } $sqlSHY = mysql_query("SELECT * FROM members WHERE username='$name'"); $SHY=(mysql_result($sqlSHY,0,"shy")); if ($result3 == ""){ $mood = "Too busy Bitchin to write a mood";} if ($SHY == "1"){ echo ""; } else { echo "<a href=\"profile.php?name=$name&username=$username&session=$session\">$stars$name$stars</a> ($gbvalues) "; } } if($page < $total_pages){ $next = ($page + 1); echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next&username=$username&session=$session\">(Next)</a> "; } if($page > 1){ $prev = ($page - 1); echo " <a href=\"".$_SERVER['PHP_SELF']."?page=$prev&username=$username&session=$session\">(Prev)</a> "; } $i = 1; $i <= $total_pages; $i++; ?> <?php $sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'"); $pmname=(mysql_result($sqlthing,0,"pmname")); $buddyname=(mysql_result($sqlthing,0,"buddyname")); echo "<a title=\"Enter\" href=\"pm.php?username=$username&session=$session\">($pmname Menu)</a>"; echo " "; echo "<a title=\"Enter\" href=\"moodset.php?username=$username&session=$session\">(Change Mood)</a>"; echo " "; echo "<a title=\"Enter\" href=\"forumindex.php?username=$username&session=$session\">(Forums)</a>"; echo " "; echo "<a title=\"Enter\" href=\"chatindex.php?username=$username&session=$session\">(Chat)</a>"; echo " "; echo "<a title=\"Enter\" href=\"welcome.php?username=$username&session=$session\">(Main Menu)</a>"; echo " "; $result = mysql_query($sql); } echo " "; echo "</card>"; echo "</wml>"; $contents = ob_get_contents(); ob_end_clean(); $contents = str_replace("&", "&", $contents); $contents = str_replace("&", "&", $contents); print($contents); ?>*** please use BB code CODEBOX for such long code *** regards metulj External image (may be gone)
:p:p:p
its lava / wapdesire script i think he needs it for . got online moods working but it dont work with smilies .
its lava / wapdesire script i think he needs it for . got online moods working but it dont work with smilies .
somethings always dont work for who knows just to copy and paste of others' coding
what about smilies in the shoutbox?
External image (may be gone) WapCHAT Forum Currenltly changing over to xhtml External image (may be gone) My Dowloads Site External image (may be gone)
who got coding for online list mood with comments? External image (may be gone) share please
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
with smiley mood
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!