Lavalair Pop Ups

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

    #16
    Put amp; after & thats popup.php?action=sendto&who=$who&sid=$sid\ "method

    Comment


      #17
      Code:
      <?php
      header("Content-type: text/vnd.wap.wml");
      header("Cache-Control: no-store, no-cache, must-revalidate");
      echo("<?xml version=\"1.0\"?>");
      echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
      ?>
      <wml>
      <?php
      include("config.php");
      include("core.php");
      connectdb();
      $action = $_GET[&#39;action&#39;];
      $sid = $_GET[&#39;sid&#39;];
      $who = $_GET[&#39;who&#39;];
      $msg = $_POST["msg"];
      if(islogged($sid)==false)
      {
          echo "<card id=\"main\" title=\"$sitename\">";
            echo "<p align=\"center\">";
            echo "You are not logged in
      ";
            echo "Or Your session has been expired
      
      ";
            echo "<a href=\"index.php\">Login</a>";
            echo "</p>";
            echo "</card>";
            echo "</wml>";
            exit();
      }
      $uid = getuid_sid($sid);
      if(isbanned($uid))
          {
              echo "<card id=\"main\" title=\"$sitename\">";
            echo "<p align=\"center\">";
            echo "<img src=\"images/notok.gif\" alt=\"x\"/>
      ";
            echo "You are [b]Banned[/b]
      ";
            $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
            $remain = $banto[0]- time();
            $rmsg = gettimemsg($remain);
            echo "Time to finish your penalty: $rmsg
      
      ";
            //echo "<a href=\"index.php\">Login</a>";
            echo "</p>";
            echo "</card>";
            echo "</wml>";
            exit();
          }
      if($action=="send"){
      
      addonline(getuid_sid($sid),"Sending pop-up MSG","");
      echo "<card id=\"main\" title=\"Popup-PM\">";
            echo "<p align=\"center\">";
      echo "$getbuttons 
      
      ";
      $whonick = getnick_uid($who);
      $byuid = getuid_sid($sid);
      echo "Sending Popup-PM to ".$whonick."
      ";
      echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
      ";
      echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&amp;who=$who&amp;sid=$sid\"method=\"post\">";
      echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
      echo "</go></anchor>[/size]";
      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")
      {
      addonline(getuid_sid($sid),"Sending pop-up MSG","");
      echo "<card id=\"main\" title=\"Send Pop-up\">";
      echo "<p align=\"center\">";
      $whonick = getnick_uid($who);
      $byuid = getuid_sid($sid);
      $tm = time();
      $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
      echo "Popup Message Sent to $whonick!
      ";
      echo "
      
      <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</p>";
      echo "</card>";
      }
      ?>
      </wml>
      STILL DON,T WORK I GOT THE SAME ERROR

      if ($who!=$uid) {
      echo "<a href=\"popup.php?action=send&amp;who=$who&amp;sid= $sid\">Send Popup PM</a>
      ";
      } this is the line added to viewuser

      Comment


        #18
        popup.php
        Code:
        <?php
        header("Content-type: text/vnd.wap.wml");
        header("Cache-Control: no-store, no-cache, must-revalidate");
        echo("<?xml version=\"1.0\"?>");
        echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
        ?>
        <wml>
        <?php
        include("config.php");
        include("core.php");
        connectdb();
        $action = $_GET[&#39;action&#39;];
        $sid = $_GET[&#39;sid&#39;];
        $who = $_GET[&#39;who&#39;];
        $msg = $_POST[&#39;msg&#39;];
        if(islogged($sid)==false)
        {
            echo "<card id=\"main\" title=\"$sitename\">";
              echo "<p align=\"center\">";
              echo "You are not logged in
        ";
              echo "Or Your session has been expired
        
        ";
              echo "<a href=\"index.php\">Login</a>";
              echo "</p>";
              echo "</card>";
              echo "</wml>";
              exit();
        }
        $uid = getuid_sid($sid);
        if(isbanned($uid))
            {
                echo "<card id=\"main\" title=\"$sitename\">";
              echo "<p align=\"center\">";
              echo "<img src=\"images/notok.gif\" alt=\"x\"/>
        ";
              echo "You are [b]Banned[/b]
        ";
              $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
              $remain = $banto[0]- time();
              $rmsg = gettimemsg($remain);
              echo "Time to finish your penalty: $rmsg
        
        ";
              //echo "<a href=\"index.php\">Login</a>";
              echo "</p>";
              echo "</card>";
              echo "</wml>";
              exit();
            }
        if($action=="send"){
        
        addonline(getuid_sid($sid),"Sending pop-up MSG","");
        echo "<card id=\"main\" title=\"Popup-PM\">";
              echo "<p align=\"center\">";
        echo "$getbuttons 
        
        ";
        $whonick = getnick_uid($who);
        $byuid = getuid_sid($sid);
        echo "Sending Popup-PM to ".$whonick."
        ";
        echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
        ";
        echo "[size="1"]<anchor>Send<go href=\"popup.php?action=sendto&amp;who=$who&amp;sid=$sid\" method=\"post\">";
        echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
        echo "</go></anchor>[/size]";
        echo "
        
        <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo "</card>";
        }
        else if($action=="sendto")
        {
        addonline(getuid_sid($sid),"Sending pop-up MSG","");
        echo "<card id=\"main\" title=\"Send Pop-up\">";
        echo "<p align=\"center\">";
        $whonick = getnick_uid($who);
        $byuid = getuid_sid($sid);
        $tm = time();
        $res = mysql_query("INSERT INTO popup SET text=&#39;".$msg."&#39;,byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
        echo "Popup Message Sent to $whonick!
        ";
        echo "
        
        <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";
        echo "</card>";
        }
        ?>
        </wml>
        try it.
        demo url http://bdfun.co.cc/wap

        Comment


          #19
          this work thanks lol

          Comment


            #20
            i got one more little problem wen i send popup the person that get the popup get error

            XML Parsing Error: not well-formed
            Location: http://sitenameinfo/index.php?action=main&...2c0d29d898cb98f
            Line Number 12, Column 56:Location: http://sitename/index.php?action=main&...2c0d29d898cb98f
            -------------------------------------------------------^

            Comment


              #21
              use this pop.php
              Code:
              <?php
              $uid = getuid_sid($sid);
              $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM popup WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
                if($nopop[0]>0)
              {
              $sql ="SELECT * FROM popup where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT  1";
              $pd = mysql_query($sql);
              while ($pop = mysql_fetch_array($pd))
                {
              $id = mysql_fetch_array(mysql_query("SELECT touid FROM popup WHERE touid=&#39;".$uid."&#39;"));
                if($uid==$id[0])
                {
                  $chread = mysql_query("UPDATE popup SET unread=&#39;0&#39; WHERE id=&#39;".$pop[0]."&#39;");
                }
              $dtop = date("d/m/y - H:i:s a",$pop[5]);
              $by = getnick_uid($pop[2]);
              $msg = parsepm($pop[1], $sid);
              echo "
              [b]Popup-PM
              by
               $by: $dtop
              
               $msg [/b]
              ";
              echo "<a href=\"popup.php?action=send&amp;who=$pop[2]&amp;sid=$sid\">RELPY</a>";
              echo "
              =======";
                }
              }
              echo "
              ";
              ?>

              Comment


                #22
                thanks bro thanks alot

                Comment


                  #23
                  u have any pop archive plz share for this one

                  Comment


                    #24
                    yeah i would really like to have the pop up archive to put on my site.... any help?

                    WapCHAT Forum Currenltly changing over to xhtml

                    My Dowloads Site

                    Comment


                      #25
                      Let me make everything very easy for you guys, ill share my xhtml popups and archive

                      after im done with my new script ill share my old lava edit.

                      Ok now...

                      popus.php
                      Code:
                      <?
                      echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
                      ?>
                      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                      
                      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
                      
                      <?php
                      
                      include("config.php");
                      
                      include("core.php");
                      
                      //session_start();
                      echo "<head>\n";
                      echo "<title>jerrele</title>\n";
                      echo &#39;<style type="text/css">
                      body {
                          background-color: #000000;
                          font-family : Verdana, Arial, Helvetica, sans-serif;
                          font-size: small;
                          margin: 0px;
                          padding: 2px;
                          color: #FFFFFF;
                      }
                      input {
                        color: #000000; 
                        background-color: #f6f6f6;
                        font-size: [img]http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/tease.gif[/img]t;
                        border-bottom:#0099FF1px solid; 
                        border-left:#0099FF1 1px solid; 
                        border-right:#0099FF1 1px solid; 
                        border-top:#0099FF1 1px solid 
                      }
                      
                      p {padding:0px;margin: 0px 0px 0px 0px;}
                      input,select {
                          color: #3A3A3A;
                      
                      }
                      a, a:active  {
                          color: #B36B00;
                      }
                      a:visited {
                          color: #805600;
                      }
                      a:hover {
                          color: #C4C400;
                      }
                      head {
                          font-family : Verdana, Arial, Helvetica, sans-serif;
                          font-size: small;
                       }
                       img { border: 0; }
                       div.ahblock2 {
                          margin: 2px 0px 2px 0px;
                          padding: 0px 0px 0px 0px;
                          color: #F00;
                          background-color: #1F1F1F;
                          border: 1px solid #3A3A3A;
                          text-align: center;
                      }
                      a.nav, a.nav:active  {color: #993300;}
                      a.nav:visited  {color: #993333;}
                      a.nav:hover  {color: #CC0000;}
                      
                      hr {
                              background-color: #993333;
                              color: #993333;
                              border: none;
                              height: 1px;
                      }
                      </style>&#39;;
                      echo "<meta name=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";  
                      echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n";
                      echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
                      echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
                      echo "<meta name=\"title\" content=\"jerrele\" />\n";
                      echo "<meta name=\"robots\" content=\"index, follow\" />\n";
                      echo "<meta name=\"revisit-after\" content=\"7\" />\n";
                      echo "</head>\n
                      <body>\n";
                      
                      connectdb();
                      $action = $_GET[&#39;action&#39;];
                      $sid = $_GET[&#39;sid&#39;];
                      $page = $_GET[&#39;page&#39;];
                      $who = $_GET[&#39;who&#39;];
                      $pmid = $_GET[&#39;pmid&#39;];
                      if(islogged($sid)==false)
                      {
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                            echo "<p align=\"center\">";
                            echo "You are not logged in
                      ";
                            echo "Or Your session has been expired
                      
                      ";
                            echo "<a href=\"index.php\">Login</a>";
                            echo "</p>";
                            echo "</body>";
                            echo "</html>";
                            exit();
                      }
                      $uid = getuid_sid($sid);
                      if(isbanned($uid))
                          {
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                            echo "<p align=\"center\">";
                            echo "<img src=\"images/notok.gif\" alt=\"x\"/>
                      ";
                            echo "You are [b]Banned[/b]
                      ";
                            $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
                            $remain = $banto[0]- time();
                            $rmsg = gettimemsg($remain);
                            echo "Time to finish your penalty: $rmsg
                      
                      ";
                            //echo "<a href=\"index.php\">Login</a>";
                            echo "</p>";
                            echo "</body>";
                            echo "</html>";
                            exit();
                          }
                      
                      
                      else if($action=="send")
                      {
                      addonline(getuid_sid($sid),"Sending pop-up MSG","");
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                      echo "<p align=\"center\">";
                      $whonick = getnick_uid($who);
                      $byuid = getuid_sid($sid);
                      $tm = time();
                      
                      $res = mysql_query("INSERT INTO fun_pops SET text=&#39;".$msg."&#39;, byuid=&#39;".$byuid."&#39;, touid=&#39;".$who."&#39;, timesent=&#39;".$tm."&#39;");
                      
                      
                      
                          echo "<img src=\"images/ok.gif\" alt=\"O\"/>
                      ";
                          echo "Popup Message Sent to $whonick!
                      ";
                      
                          
                      echo "
                      ---
                      <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
                      echo "</p>";
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                      echo "</body>";
                      echo "</html>";
                      exit();
                      
                      }
                      else if($action=="sendto"){
                      
                      $who = $_get[&#39;who&#39;];
                      
                      addonline(getuid_sid($sid),"Sending pop-up MSG","");
                      
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                      echo "<p align=\"center\">";
                      echo "$getbuttons 
                      ";
                      
                      $who = $_get[&#39;who&#39;];
                      
                      
                      $whonick = getnick_uid($who);
                      $byuid = getuid_sid($sid);
                      echo "<form action=\"popus.php?action=send&amp;who=$who&amp;sid=$sid\" method=\"post\">";
                      echo "<input name=\"msg\" maxlength=\"150\"/>
                      ";
                      echo "<input type=\"submit\" value=\"Send\"></form>";
                      
                      
                      echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
                      }
                      echo "</p>";
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                      echo "</body></html>";
                      ?>
                      popups.php
                      Code:
                      <?php
                      $uid = getuid_sid($sid);
                      $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_pops WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
                      if($nopop[0]>0)
                      {
                      $sql ="SELECT * FROM fun_pops where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT 1";
                      $pd = mysql_query($sql);
                      while ($pop = mysql_fetch_array($pd))
                      {
                      $id = mysql_fetch_array(mysql_query("SELECT touid FROM fun_pops WHERE touid=&#39;".$uid."&#39;"));
                      if($uid==$id[0])
                      {
                      $chread = mysql_query("UPDATE fun_pops SET unread=&#39;0&#39; WHERE id=&#39;".$pop[0]."&#39;");
                      }
                      
                      $dtop = date("d/m/y - H:i:s",$pop[5]);
                      $by = getnick_uid($pop[2]);
                      $msg = parsepm($pop[1]);
                      
                      echo "$getbuttons 
                      ";
                      $who = $_get[&#39;who&#39;];
                      echo "(!)Popup";
                      echo "
                      [b]$by:[/b] $msg
                      ";
                      $whonick = getnick_uid($who);
                      $byuid = getuid_sid($sid);
                      
                      echo "<form action=\"popus.php?action=send&amp;who=$who&amp;sid=$sid&amp;who=$pop[2]\" method=\"post\">";
                      echo "<input name=\"msg\" maxlength=\"150\"/>
                      ";
                      echo "<input type=\"submit\" value=\"Send Popup\"></form>";
                      
                      echo "---
                      ";
                      }
                      }
                      ?>
                      Archive, plase in lists.php
                      Code:
                      else if($action=="archive")
                      {
                        $who = $_GET["who"];
                          addonline(getuid_sid($sid),"Pop Up History","");
                      if (mypro(getuid_sid($sid), $who))
                      {
                      
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                        $uid = getuid_sid($sid);
                        if($page=="" || $page<=0)$page=1;
                          $myid = getuid_sid($sid);
                          $pms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_pops WHERE touid=$uid ORDER BY timesent"));
                          echo mysql_error();
                          $num_items = $pms[0]; //changable
                          $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;
                          if($num_items>0)
                          {
                            echo "
                      
                      ";
                            $pms = mysql_query("SELECT byuid, touid, text, timesent FROM fun_pops WHERE touid=$uid ORDER BY timesent DESC LIMIT $limit_start, $items_per_page");
                            while($pm=mysql_fetch_array($pms))
                            {
                                  if(isonline($pm[0]))
                        {
                          $onlby = "<img src=\"images/onl.gif\" alt=\"+\"/>";
                        }else{
                          $onlby = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
                        }
                                  if(isonline($pm[1]))
                        {
                          $onlto = "<img src=\"images/onl.gif\" alt=\"+\"/>";
                        }else{
                          $onlto = "<img src=\"images/ofl.gif\" alt=\"-\"/>";
                        }
                        $bylnk = "<a href=\"index.php?action=viewuser&amp;who=$pm[0]&amp;sid=$sid\">".getnick_uid($pm[0])."</a>";
                        //$tolnk = "<a href=\"index.php?action=viewuser&amp;who=$pm[1]&amp;sid=$sid\">$onlto".getnick_uid($pm[1])."</a>";
                        echo "$bylnk
                      ";
                        $tmopm = date("D d M y - h:i:s",$pm[3]);
                        echo " $tmopm
                      ";
                        
                              echo parsepm($pm[2], $sid);
                      
                        
                        echo "
                      [size="1"]---[/size]
                      ";
                            }
                            echo "</p><p align=\"center\">";
                            if($page>1)
                          {
                            $ppage = $page-1;
                            echo "<a href=\"lists.php?action=archive&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
                          }
                          if($page<$num_pages)
                          {
                            $npage = $page+1;
                            echo "<a href=\"lists.php?action=archive&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
                          }
                          echo "
                      $page/$num_pages
                      ";
                          if($num_pages>2)
                          {
                              $rets = "<form action=\"lists.php\" method=\"get\">";
                              $rets .= "<input name=\"page\" style=\"-wap-input-format: &#39;*N&#39;\" 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;
                            }
                            }else{
                              echo "<p align=\"center\">";
                              echo "NO DATA";
                      }
                      
                        echo "</p>";
                          echo "<p align=\"center\">";
                          $unick = getnick_uid($who);
                          echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                      echo "Home</a>";
                        echo "</p>";
                            echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                          echo "</body>";
                      }else{
                      
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                            echo "<p align=\"center\">";
                            echo "This is NOT your pop up archive!
                      ";
                            echo "
                      ";
                            echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/> Home</a>";
                            echo "</p>";
                          echo "<div class=\"ahblock2\">";
                          getAd();
                          echo "</div>";
                      
                            echo "</body>";
                      } 
                      }
                      Add in core.php
                      Code:
                      function mypro($uid, $tid)
                      {
                        if($uid==$tid)
                        {
                          return true;
                        }
                      }
                      My layout and stuff are different than the other lava versions.
                      Might need some editing...

                      Enjoy.

                      Click here!!!

                      Comment


                        #26
                        what about the sql bro?

                        WapCHAT Forum Currenltly changing over to xhtml

                        My Dowloads Site

                        Comment


                          #27
                          any other input required in inbox.php?

                          thanks

                          Comment


                            #28
                            @ bro Rukiya
                            your wml script works in wap but it send popup without any text...oponent can also reply it but no text when other received popup...Thanks help

                            Comment


                              #29
                              ok i change table edit text from blob to char 255

                              so now i can see msg ...but how to get xhtml version brother?
                              coz if i reply or send from web browser it download popup.php

                              Comment


                                #30
                                pop code does not work for me

                                Comment

                                Working...
                                X