Online Mood Code For Socalled Lava & Wapdesire Script

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

19 replies · 2,883 views · started 18 years ago · 1 min read

TL;DR · summary of 19 replies
  • rukiya requested a fix for an online mood feature in Socalled Lava & Wapdesire script.
  • The code was provided by rukiya, but there were issues with it and the usage instructions needed clarification.
  • There were discussions about removing copyright lines, adding smilies functionality, and ensuring security features like session IDs.

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

4 participants
rukiya Lead · 569 posts #1

the topic where this code was wanted has been closed.so I posted here use this SQL query in your phpmyadmin

ALTER TABLE `ibwf_users` ADD `onlinemsg` VARCHAR( 100 ) NOT NULL AFTER `battlep`;

copy and paste this code in index.php

//////////////////////////////////////////Update online msg & mood
else if($action=="mood")
{
 addonline(getuid_sid($sid),"Updating online msg & mood","");
 echo "<card id=\"main\" title=\"Updating online msg & mood\">";
 echo "

";
 echo "Mood msg: <input name=\"kiss\" maxlength=\"100\"/>
";
 echo "<anchor>Update";
 echo "<go href=\"index.php?action=upolm&sid=$sid\" method=\"post\">";
 echo "<postfield name=\"kiss\" value=\"$(kiss)\"/>";
 echo "</go></anchor>";
 echo "

";
 echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
 echo "Home</a>
";
 echo "© coded by Rukiya";
 echo "</p>";
 echo "</card>";
}
//////////////////////////////////////////Update online msg & mood
else if($action=="upolm")
{
 addonline(getuid_sid($sid),"Updating online msg & mood","");
 $kiss = $_POST["kiss"];
echo "<card id=\"main\" title=\"Updating online msg & mood\">";
 echo "<p align=\"center\">";
 $res = mysql_query("UPDATE ibwf_users SET onlinemsg='".$kiss."' WHERE id='".$uid."'");
  if($res)
  {
    echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your online msg was updated successfully
";
  }else{
    echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your online msg
";
  }
 echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
 echo "Home</a>
";
 echo "© coded by Rukiya";
 echo "</p></card>";
}

replace your $action=="online" in index.php with this code for socalled lavalair script

for socalled wapdesire script

dnt erase the copyright line if you are not enough stupid

Attachments: 2.php 1.php
nclemale36 Lead · 537 posts #3

one thing I have forgotten to post before and thats Usage

 echo "<a href=\"index.php?action=mood&sid=$sid\">Update Online Mood</a>
";

question ??

do smilies work in the moods . as they dont in other code i added . thanks

WhiteWarrior Principal · 1,419 posts #4

the topic where this code was wanted has been closed.so I posted here use this SQL query in your phpmyadmin

ALTER TABLE `ibwf_users` ADD `onlinemsg` VARCHAR( 100 ) NOT NULL AFTER `battlep`;

copy and paste this code in index.php

//////////////////////////////////////////Update online msg & mood
 else if($action=="mood")
 {
  addonline(getuid_sid($sid),"Updating online msg & mood","");
  echo "<card id=\"main\" title=\"Updating online msg & mood\">";
  echo "

";
  echo "Mood msg: <input name=\"kiss\" maxlength=\"100\"/>
";
  echo "<anchor>Update";
  echo "<go href=\"index.php?action=upolm&sid=$sid\" method=\"post\">";
  echo "<postfield name=\"kiss\" value=\"$(kiss)\"/>";
  echo "</go></anchor>";
  echo "

";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>
";
  echo "© coded by Rukiya";
  echo "</p>";
  echo "</card>";
 }
 //////////////////////////////////////////Update online msg & mood
 else if($action=="upolm")
 {
  addonline(getuid_sid($sid),"Updating online msg & mood","");
  $kiss = $_POST["kiss"];
 echo "<card id=\"main\" title=\"Updating online msg & mood\">";
  echo "<p align=\"center\">";
  $res = mysql_query("UPDATE ibwf_users SET onlinemsg='".$kiss."' WHERE id='".$uid."'");
   if($res)
   {
     echo "<img src=\"images/ok.gif\" alt=\"o\"/>Your online msg was updated successfully
";
   }else{
     echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating your online msg
";
   }
  echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>
";
  echo "© coded by Rukiya";
  echo "</p></card>";
 }

replace your $action=="online" in index.php with this code for socalled lavalair script

for socalled wapdesire script

dnt erase the copyright line if you are not enough stupid

it can be done with less coding...

WhiteWarrior Principal · 1,419 posts #6

and whats with the echo "© coded by Rukiya"; Line?..

And nclemale, The Mood smilies do work... post your coded one 🙂

rukiya Lead · 569 posts #8

and whats with the echo "© coded by Rukiya"; Line?..

And nclemale, The Mood smilies do work... post your coded one :-)

LoL who ever played with the script don't know what they where doing because when i first coded it it was working perfect.

anyway the Original chapel action=main in index.php

else if($action=="main")
{
echo "<card id=\"main\" title=\"$sitename\">";
addonline(getuid_sid($sid),"In The Chapel","");
echo "<p align=\"center\">";
echo "<img src=\"images/chapel.jpg\" alt=\"Chapel\"/>
";
echo "Welcome To The Online Chapel!
";
echo "Here You Can Get Wappied To That Special Someone In Your Wap Life!
----
";
echo "<a href=\"chapel.php?action=wnumpty&sid=$sid\">What Is Wappied?</a>
";
$uid = getuid_sid($sid);
$isreq = mysql_fetch_array(mysql_query("SELECT rpen, uid FROM chapel WHERE mid='".$uid."'"));
if ($isreq[0]==1)
{
$wid = $isreq[1];
$wnick = getnick_uid($wid);
echo "$wnick Has Requested To Get Wappied To You
";
echo "Do You Accept:
";
echo "<anchor>YES!";
echo "<go href=\"chapel.php?action=conm&sid=$sid\" method=\"post\">"; 
echo "<postfield name=\"wid\" value=\"$wid\"/>";
echo "</go></anchor>
";
echo "<anchor>NO!";
echo "<go href=\"chapel.php?action=rejm&sid=$sid\" method=\"post\">";  
echo "<postfield name=\"wid\" value=\"$wid\"/>";
echo "</go></anchor>
";
}else{
$mstat = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE id='".$uid."'"));
if ($mstat[0]==0)
{
echo "<a href=\"chapel.php?action=rgetm&sid=$sid\">Get Wappied!</a>
";
}else{
$mstat = mysql_fetch_array(mysql_query("SELECT ismd FROM chapel WHERE id='".$uid."'"));
if ($mstat[0]==1)
{
echo "<a href=\"chapel.php?action=getd&sid=$sid\">Get Devorced</a>
";
}
}
}
echo "<img src=\"images/line.gif\" alt=\"line\"/>";
echo "
<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "

(c)WhiteWarrior";
echo "</p>";
echo "</card>";
}

i know it works 100%

and whats with the echo "

©WhiteWarrior"; line?

WhiteWarrior Principal · 1,419 posts #9

and whats with the echo "

©WhiteWarrior"; line?

Agh ok, aybe you do have a point but i didn't say "dnt erase the copyright line if you are not enough stupid" LoL External image (may be gone)

WhiteWarrior Principal · 1,419 posts #11

dnt you see who said that?

No... i'm blind.

nclemale36 Lead · 537 posts #12

No... i'm blind.

this is my version of online moods . without totally re editing my sites to install the above code to get my smilies workin can anyone point out wer i have gone wrong.

Attachments: mood.rar
Guest #13

rukiya i try this your code and i have error!

 XML parsing failed: not well-formed (Line: 5, Character: 158)<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="main" title="Updating online msg & mood">

Mood msg: <input name="kiss" maxlength="100"/>
<anchor>Update<a href="index.php?action=upolm&sid=7e91a82af45ccb8f67806ad0b501bc4d" method="post"><postfield name="kiss" value="$(kiss)"/></go></anchor>

[url="index.php?action=main&sid=7e91a82af45ccb8f67806ad0b501bc4d"][img]images/home.gif[/img]Home[/url]
© coded by Rukiya</p></card> </wml>
rukiya Lead · 569 posts #14

rukiya i try this your code and i have error!

 XML parsing failed: not well-formed (Line: 5, Character: 158)<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="main" title="Updating online msg & mood">

Mood msg: <input name="kiss" maxlength="100"/>
<anchor>Update<a href="index.php?action=upolm&sid=7e91a82af45ccb8f67806ad0b501bc4d" method="post"><postfield name="kiss" value="$(kiss)"/></go></anchor>

images/home.gifHome
© coded by Rukiya</p></card> </wml>

copy and paste this line

echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>
";

in place of

 echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>
"
Guest #15

copy and paste this line

echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"\"/>Home</a>
";

in place of

 echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
  echo "Home</a>
"

error was here:

i replace this

echo "<go href=\"index.php?action=upolm&sid=$sid\" method=\"post\">";

with this:

echo "<go href=\"index.php?action=upolm&sid=$sid\" method=\"post\">";

External image (may be gone)

alesh Lead · 604 posts #16

lol here on this site is really dangerous 2 put ur coding lol anyway i did this online mood long time ago but lil different... At online and bud list i put select option nd users cannot type anythng they want.... Nd theres just another update page....thts all.... Reason 4 select nd not free choice option is tht user cannot put 10smilies or even a spam link... I didnt look at this code in this topic,cuz of im on my phn,but if users cn spam then its nt good lol btw rukya dnt jump now on me, i just sayin my opinion... Lol

eeeeerrr....

rukiya Lead · 569 posts #17

lol here on this site is really dangerous 2 put ur coding lol anyway i did this online mood long time ago but lil different... At online and bud list i put select option nd users cannot type anythng they want.... Nd theres just another update page....thts all.... Reason 4 select nd not free choice option is tht user cannot put 10smilies or even a spam link... I didnt look at this code in this topic,cuz of im on my phn,but if users cn spam then its nt good lol btw rukya dnt jump now on me, i just sayin my opinion... Lol

I dont believe in cock and bull story, I believe in codes.and its easy to make comments but posting codes.post your codes if you really coded anything and let me see how you code really or keep yourself away from posting your cock and bull story

alesh Lead · 604 posts #18

I dont believe in cock and bull story, I believe in codes.and its easy to make comments but posting codes.post your codes if you really coded anything and let me see how you code really or keep yourself away from posting your cock and bull story

hmmm i hope u dont talk with ur mother with tht dirty mouth kid...... i c tht cock is all the time in ur mouth..... btw no, i wont share anythng anymore on this site... i shared smilies category and regreted...

anyway ill give u a clue how i done it

echo "<form action=\"index.php?action=onlstatus\" method=\"post\">";
echo "rukya is:";
echo "<select name=\"onlinestatus\">";
echo "<option value=\"sick\">sick</option>";
echo "<option value=\"ill\">ill</option>";
echo "<option value=\"bonehead\">bonehead</option>";
echo "</select>";    
echo "<input type=\"submit\" value=\"Okay\"/>";
echo "</form>
";

and the update page should look sumthng like this:

$onlinestatus = $_POST["onlinestatus"];
$update = mysql_query("UPDATE users SET onlstatus='".$onlinestatus."' WHERE id='".$where_u_want."'");
if($update) {
$status = htmlspecialchars($onlinestatus);
echo "Yes lil rukya kid is $status";
}else{
echo " MYSQL ERROR!

";
}

lol kid, u should get fix ur temper first stay cool

eeeeerrr....

rukiya Lead · 569 posts #19

hmmm i hope u dont talk with ur mother with tht dirty mouth kid...... i c tht cock is all the time in ur mouth..... btw no, i wont share anythng anymore on this site... i shared smilies category and regreted...

anyway ill give u a clue how i done it

echo "<form action=\"index.php?action=onlstatus\" method=\"post\">";
echo "rukya is:";
echo "<select name=\"onlinestatus\">";
echo "<option value=\"sick\">sick</option>";
echo "<option value=\"ill\">ill</option>";
echo "<option value=\"bonehead\">bonehead</option>";
echo "</select>";    
echo "<input type=\"submit\" value=\"Okay\"/>";
echo "</form>
";

and the update page should look sumthng like this:

$onlinestatus = $_POST["onlinestatus"];
$update = mysql_query("UPDATE users SET onlstatus='".$onlinestatus."' WHERE id='".$where_u_want."'");
if($update) {
$status = htmlspecialchars($onlinestatus);
echo "Yes lil rukya kid is $status";
}else{
echo " MYSQL ERROR!

";
}

lol kid, u should get fix ur temper first stay cool

btw no, i wont share anythng anymore on this site... i shared smilies category and regreted...

now you should regret again to proof yourself noob I wanted to see your codes to get proof for how noob you are when you copy to make mood feature from this type of code

  echo "<form action=\"genproc.php?action=rateb&sid=$sid&bid=$pminfo[4]\" method=\"post\">";
  echo "<select name=\"brate\">";
  echo "<option value=\"1\">1</option>";
  echo "<option value=\"2\">2</option>";
  echo "<option value=\"3\">3</option>";
  echo "<option value=\"4\">4</option>";
  echo "<option value=\"5\">5</option>";
  echo "</select>
";
  echo "<input type=\"Submit\" Name=\"Rate\" Value=\"Rate\"></form>";

make sure to put session id like here

echo "<form action="index.php?action=onlstatus" method="post">";

will be echo "<form action="index.php?action=onlstatus**&sid=$sid**" method="post">"; session id is more important than to make spam protecting code,but didnot understand this important thing coz you proved youself as noob.your code without session id so unsecure and any1 can enter without login even without making a id and so so.... and check your posts and my posts and see whos mouth is dirty. You noob know abuse but dnt know the importance of session id. a pathetic thing is that being a noob you boast of yourself to much you noob first find out the holes of that you made from copy and paste

hmmm i hope u dont talk with ur mother with tht dirty mouth kid...... i c tht cock is all the time in ur mouth.....

and also learn how to behave

alesh Lead · 604 posts #20

I c now tht u really r an idiot.... I wrote tht code with my phn direct here.... I didnt bother with session.... Nd i didnt copy anythng,especialy nt from u idiot cuz ur code is full uf bugs even easy 4 sql injection.... Nd btw on most of the sites wher u c smilies categories,remember its mine copy lol u stupid ass without even knwing i cn tell ur nt than 15y old boys without having a gf

eeeeerrr....

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