Popups For Lavascript That Work Well Here It Is

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Popups For Lavascript That Work Well Here It Is

    put this in pages where u want popups to appear

    $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
    $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
    $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";


    if ($unreadinbox[0]>0)
    {
    $uid = getuid_sid($sid);
    echo "<p align=\"center\">";
    $popsenabled=mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($popsenabled[0]==1)
    {
    $pminfo = mysql_fetch_array(mysql_query("SELECT id, text, byuid, timesent,touid, reported FROM ibwf_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
    $pmfrm = getnick_uid($pminfo[2]);

    $pmurd = mysql_query("UPDATE ibwf_private SET unread=&#39;0&#39; WHERE id=&#39;".$pminfo[0]."&#39;");
    echo "POP-UP Message From $pmfrm";
    echo "

    ";
    $tmstamp = $pminfo[3];
    $tmdt = date("d m Y - H:i:s", $tmstamp);
    $pmtext = parsepm($pminfo[1], $sid);
    $pmtext = str_replace("/llfaqs","<a href=\"lists.php?action=faqs&amp;sid=$sid\">$siten ame F.A.Qs</a>", $pmtext);
    $pmtext = str_replace("/reader",getnick_uid($pminfo[4]), $pmtext);
    $pmid=$pminfo[0];
    echo "Msg:
    $pmtext
    ";

    echo "Send Reply to $pmfrm
    ";
    echo "<input name=\"pmtext\" maxlength=\"500\"/>
    ";
    echo "<anchor>SEND<go href=\"inbxproc.php?action=sendpm2&amp;who=$pminfo[2]&amp;sid=$sid&amp;pmid=$pminfo[0]\" method=\"post\">";
    echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
    echo "</go></anchor>
    ";
    $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($popmsgs[0]==1){
    echo "<a href=\"index.php?action=popdisable&amp;sid=$sid\"> Disable PopUps</a>
    ";
    }
    // $res = mysql_query("INSERT INTO ibwf_online SET userid=&#39;".$uid."&#39;, actvtime=&#39;".$tm."&#39;, place=&#39;".$place."&#39;, placedet=&#39;".$plclink."&#39;");
    $location = mysql_fetch_array(mysql_query("SELECT placedet FROM ibwf_online WHERE userid=&#39;".$uid."&#39;"));
    $loca = $location[0];
    }else{
    echo "
    <a href=\"inbox.php?action=main&amp;sid=$sid\">»Inbox $unrd</a>";
    }
    echo "</p>";
    }

    add ths next bit into inboxproc.php

    else if($action=="sendpm2")
    {
    echo "<card id=\"main\" title=\"Inbox\">";
    echo "<p align=\"center\">";
    $pmid = $_GET["pmid"];
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    $tm = time();
    $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid=&#39;".$byuid."&#39;"));
    $pmfl = $lastpm[0]+getpmaf();
    $pmurd = mysql_query("UPDATE ibwf_private SET unread=&#39;0&#39; WHERE id=&#39;".$pmid."&#39;");

    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=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
    }else{
    $res = true;
    }
    if($res)
    {

    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&#39;t Send PM to $whonick

    ";
    }
    }else{
    $bantime = time() + (30*24*60*60);
    echo "<img src=\"../images/notok.gif\" alt=\"X\"/>";
    echo "Can&#39;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&#39;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!";
    $user = getnick_sid($sid);
    mysql_query("INSERT INTO ibwf_mlog SET action=&#39;autoban&#39;, details=&#39;Wap Desire auto banned $user for spamming inbox&#39;, actdt=&#39;".time()."&#39;");
    mysql_query("INSERT INTO ibwf_penalties SET uid=&#39;".$byuid."&#39;, penalty=&#39;1&#39;, exid=&#39;1&#39;, timeto=&#39;".$bantime."&#39;, pnreas=&#39;Banned: Automatic Ban for spamming for a crap site&#39;");
    mysql_query("UPDATE ibwf_users SET plusses=&#39;0&#39;, shield=&#39;0&#39; WHERE id=&#39;".$byuid."&#39;");
    mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;1&#39;, timesent=&#39;".$tm."&#39;");
    }
    }else{
    $rema = $pmfl - $tm;
    echo "<img src=\"../images/notok.gif\" alt=\"X\"/>";
    echo "Flood control: $rema Seconds

    ";
    }
    $uid = getuid_sid($sid);
    $location = mysql_fetch_array(mysql_query("SELECT placedet FROM ibwf_online WHERE userid=&#39;".$uid."&#39;"));
    $loca = $location[0];
    echo "
    <a href=\"$loca&amp;sid=$sid\">Ok!</a>";
    if($lastloc=="cht"){
    $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($popmsgs[0]==0){
    echo "
    <a href=\"index.php?action=popenable&amp;sid=$sid\">E nable Pop-Ups</a>
    ";
    }else{
    echo "
    <a href=\"index.php?action=popdisable&amp;sid=$sid\"> Disable Pop-Ups</a>
    ";
    }
    echo "
    <a href=\"chat.php?sid=$sid&amp;rid=$rid\">Back To $rname</a>
    ";
    echo "

    <a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox</a>
    ";
    echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyL ist</a>
    ";
    echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chat</a>
    ";
    $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
    while($fcat=mysql_fetch_array($fcats))
    {
    $catlink = "<a href=\"index.php?action=viewcat&amp;sid=$sid&amp;c id=$fcat[0]\">$fcat[1]</a>";
    echo "$catlink

    ";
    }
    echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p></card>";
    }else{
    $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($popmsgs[0]==0){
    echo "
    <a href=\"index.php?action=popenable&amp;sid=$sid\">E nable Pop-Ups</a>
    ";
    }else{
    echo "
    <a href=\"index.php?action=popdisable&amp;sid=$sid\"> Disable Pop-Ups</a>
    ";
    } echo "

    <a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox</a>
    ";
    echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyL ist</a>
    ";
    echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chat</a>
    ";
    $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
    while($fcat=mysql_fetch_array($fcats))
    {
    $catlink = "<a href=\"index.php?action=viewcat&amp;sid=$sid&amp;c id=$fcat[0]\">$fcat[1]</a>";
    echo "$catlink

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

    now on each page wif popup u hav to add the pages link into the addonline function like this

    addonline(getuid_sid($sid),"Main Menu","index.php?action=$action");

    other wise when u type ur popup reply the next page wont let u bak to where u were u would get 404 not found

    enjoy any questions feel free 2 ask me

    #2
    where is pop up sql????

    Comment


      #3
      does it work on the wml lavalair
      http://img235.imageshack.us/my.php?i...sc00464af9.jpg



      http://matthewdowd.bebo.com

      Comment


        #4
        i just tried it did not work

        Comment


          #5
          u have to edit core.php and ibwf_user sql n put popup table there then it will works
          get cheap web hosting ever AdzeHost
          ===================
          get free hosting for life time hostwebswap not allowed
          ===================
          get free cpanel web hosting free cpanel hostingwap are allowed
          ===================

          ===================

          Comment


            #6
            put this in pages where u want popups to appear

            $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
            $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid=&#39;".$uid."&#39;"));
            $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";


            if ($unreadinbox[0]>0)
            {
            $uid = getuid_sid($sid);
            echo "<p align=\"center\">";
            $popsenabled=mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            if($popsenabled[0]==1)
            {
            $pminfo = mysql_fetch_array(mysql_query("SELECT id, text, byuid, timesent,touid, reported FROM ibwf_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
            $pmfrm = getnick_uid($pminfo[2]);

            $pmurd = mysql_query("UPDATE ibwf_private SET unread=&#39;0&#39; WHERE id=&#39;".$pminfo[0]."&#39;");
            echo "POP-UP Message From $pmfrm";
            echo "

            ";
            $tmstamp = $pminfo[3];
            $tmdt = date("d m Y - H:i:s", $tmstamp);
            $pmtext = parsepm($pminfo[1], $sid);
            $pmtext = str_replace("/llfaqs","<a href=\"lists.php?action=faqs&amp;sid=$sid\">$siten ame F.A.Qs</a>", $pmtext);
            $pmtext = str_replace("/reader",getnick_uid($pminfo[4]), $pmtext);
            $pmid=$pminfo[0];
            echo "Msg:
            $pmtext
            ";

            echo "Send Reply to $pmfrm
            ";
            echo "<input name=\"pmtext\" maxlength=\"500\"/>
            ";
            echo "<anchor>SEND<go href=\"inbxproc.php?action=sendpm2&amp;who=$pminfo[2]&amp;sid=$sid&amp;pmid=$pminfo[0]\" method=\"post\">";
            echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
            echo "</go></anchor>
            ";
            $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            if($popmsgs[0]==1){
            echo "<a href=\"index.php?action=popdisable&amp;sid=$sid\"> Disable PopUps</a>
            ";
            }
            // $res = mysql_query("INSERT INTO ibwf_online SET userid=&#39;".$uid."&#39;, actvtime=&#39;".$tm."&#39;, place=&#39;".$place."&#39;, placedet=&#39;".$plclink."&#39;");
            $location = mysql_fetch_array(mysql_query("SELECT placedet FROM ibwf_online WHERE userid=&#39;".$uid."&#39;"));
            $loca = $location[0];
            }else{
            echo "
            <a href=\"inbox.php?action=main&amp;sid=$sid\">»Inbox $unrd</a>";
            }
            echo "</p>";
            }

            add ths next bit into inboxproc.php

            else if($action=="sendpm2")
            {
            echo "<card id=\"main\" title=\"Inbox\">";
            echo "<p align=\"center\">";
            $pmid = $_GET["pmid"];
            $whonick = getnick_uid($who);
            $byuid = getuid_sid($sid);
            $tm = time();
            $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid=&#39;".$byuid."&#39;"));
            $pmfl = $lastpm[0]+getpmaf();
            $pmurd = mysql_query("UPDATE ibwf_private SET unread=&#39;0&#39; WHERE id=&#39;".$pmid."&#39;");

            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=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
            }else{
            $res = true;
            }
            if($res)
            {

            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&#39;t Send PM to $whonick

            ";
            }
            }else{
            $bantime = time() + (30*24*60*60);
            echo "<img src=\"../images/notok.gif\" alt=\"X\"/>";
            echo "Can&#39;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&#39;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!";
            $user = getnick_sid($sid);
            mysql_query("INSERT INTO ibwf_mlog SET action=&#39;autoban&#39;, details=&#39;Wap Desire auto banned $user for spamming inbox&#39;, actdt=&#39;".time()."&#39;");
            mysql_query("INSERT INTO ibwf_penalties SET uid=&#39;".$byuid."&#39;, penalty=&#39;1&#39;, exid=&#39;1&#39;, timeto=&#39;".$bantime."&#39;, pnreas=&#39;Banned: Automatic Ban for spamming for a crap site&#39;");
            mysql_query("UPDATE ibwf_users SET plusses=&#39;0&#39;, shield=&#39;0&#39; WHERE id=&#39;".$byuid."&#39;");
            mysql_query("INSERT INTO ibwf_private SET text=&#39;".$pmtext."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;1&#39;, timesent=&#39;".$tm."&#39;");
            }
            }else{
            $rema = $pmfl - $tm;
            echo "<img src=\"../images/notok.gif\" alt=\"X\"/>";
            echo "Flood control: $rema Seconds

            ";
            }
            $uid = getuid_sid($sid);
            $location = mysql_fetch_array(mysql_query("SELECT placedet FROM ibwf_online WHERE userid=&#39;".$uid."&#39;"));
            $loca = $location[0];
            echo "
            <a href=\"$loca&amp;sid=$sid\">Ok!</a>";
            if($lastloc=="cht"){
            $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            if($popmsgs[0]==0){
            echo "
            <a href=\"index.php?action=popenable&amp;sid=$sid\">E nable Pop-Ups</a>
            ";
            }else{
            echo "
            <a href=\"index.php?action=popdisable&amp;sid=$sid\"> Disable Pop-Ups</a>
            ";
            }
            echo "
            <a href=\"chat.php?sid=$sid&amp;rid=$rid\">Back To $rname</a>
            ";
            echo "

            <a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox</a>
            ";
            echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyL ist</a>
            ";
            echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chat</a>
            ";
            $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
            while($fcat=mysql_fetch_array($fcats))
            {
            $catlink = "<a href=\"index.php?action=viewcat&amp;sid=$sid&amp;c id=$fcat[0]\">$fcat[1]</a>";
            echo "$catlink

            ";
            }
            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
            echo "Home</a>";
            echo "</p></card>";
            }else{
            $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            if($popmsgs[0]==0){
            echo "
            <a href=\"index.php?action=popenable&amp;sid=$sid\">E nable Pop-Ups</a>
            ";
            }else{
            echo "
            <a href=\"index.php?action=popdisable&amp;sid=$sid\"> Disable Pop-Ups</a>
            ";
            } echo "

            <a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox</a>
            ";
            echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyL ist</a>
            ";
            echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chat</a>
            ";
            $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id");
            while($fcat=mysql_fetch_array($fcats))
            {
            $catlink = "<a href=\"index.php?action=viewcat&amp;sid=$sid&amp;c id=$fcat[0]\">$fcat[1]</a>";
            echo "$catlink

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

            now on each page wif popup u hav to add the pages link into the addonline function like this

            addonline(getuid_sid($sid),"Main Menu","index.php?action=$action");

            other wise when u type ur popup reply the next page wont let u bak to where u were u would get 404 not found

            enjoy any questions feel free 2 ask me[/b]
            scripts r nt complete
            like no action=popdisable in index.php smae case in action=popenable index.php,hw will ppl use these incomplete scripts

            Comment


              #7
              i have made alot of modifications since then and there not part the inbox anymore they seperate plus its pretty easy to make a code to enable n disable lol

              Comment


                #8
                i have made alot of modifications since then and there not part the inbox anymore they seperate plus its pretty easy to make a code to enable n disable lol[/b]
                if that you should post here complete script

                Comment


                  #9
                  my complete script? lol keep dreaming i didnt do all my hard work 4 nothing i dnt mind helping ppl get few features going but puttin my whole script would take the fun away from ppl coding things themselves... ill try and post the full popup bits u need but may not work as most my script has been remade

                  Comment


                    #10
                    my complete script? lol keep dreaming i didnt do all my hard work 4 nothing i dnt mind helping ppl get few features going but puttin my whole script would take the fun away from ppl coding things themselves... ill try and post the full popup bits u need but may not work as most my script has been remade[/b]
                    so why is this 4?


                    "enjoy any questions feel free 2 ask me"

                    Comment


                      #11
                      cos the original lavalair is **** lol thats why... with my touches i made it better and tonnes more secure

                      Comment


                        #12
                        cos the original lavalair is **** lol thats why... with my touches i made it better and tonnes more secure[/b]
                        need only an complete popup scripts.no need to judge irisblaze&#39;s script

                        Comment


                          #13
                          He&#39;s just a dickryder he doesnt have the complete script...let the real wap coders talk.!!!

                          Comment


                            #14
                            i think its better to use alert link rather than popups..in my script i have 2 messaging system..the main inbox and the other one is for the alert messages..popups is not "in" nowadays..btw its just my opinion..

                            Comment


                              #15
                              Originally posted by ACIDCORE View Post
                              i think its better to use alert link rather than popups..in my script i have 2 messaging system..the main inbox and the other one is for the alert messages..popups is not "in" nowadays..btw its just my opinion..

                              and you felt it necessary to drag up a 5yr old topic to share that gem of information with us?

                              Comment

                              Working...
                              X