Pop-up Archive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pop-up Archive

    Is anybody have code for Pop-up message archive?
    or somebody may write code for archive for pop-up message?
    Thanks


    this is my pops.php


    Code:
    <?php
    
    
     $uid = getuid_sid($sid);
     $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_pops WHERE touid=&#39;".$uid."&#39; AND unread=&#39;1&#39;"));
      if($nopop[0]>0)
    {
     $sql ="SELECT * FROM ibwf_pops where touid=&#39;".$uid."&#39; AND unread = &#39;1&#39; ORDER BY id LIMIT 0, 1";
     $pd = mysql_query($sql);
     while ($pop = mysql_fetch_array($pd))
      {
      $id = mysql_fetch_array(mysql_query("SELECT touid FROM ibwf_pops WHERE touid=&#39;".$uid."&#39;"));
      if($uid==$id[0])
      {
        $chread = mysql_query("UPDATE ibwf_pops SET unread=&#39;0&#39; WHERE id=&#39;".$pop[0]."&#39;");
      }
      $novo2 = $pop[5];
    $dtop = date("d.m.y - H:i:s",$novo2);
    $by = getnick_uid($pop[2]);
    $msg = htmlspecialchars($pop[1]);
    echo "[size="1"][b]$by:[/b] $msg - $dtop[/size]
    ";
    echo "<input type=\"text\" name=\"msg\" maxlength=\"150\"/>
    ";
    echo "[size="1"]<anchor>odgovori<go href=\"popup.php?action=send&amp;sid=$sid\" method=\"post\">";
    
    echo "<postfield name=\"who\" value=\"$pop[2]\"/>";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    
    echo "</go></anchor>[/size]";
    
    echo "
    ---
    ";
      }
    }


    and my 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 Poruka Poslata za $whonick!";
    echo "
    ========================
    ";
    echo "[b]Online:[/b] <a href=\"index.php?action=online&amp;sid=$sid\">".getnumonline()."</a>";
    echo "
    ===========
    ";
        include (&#39;lastpost_wappyMOD2.php&#39;);
    echo "
    
    <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo "</card>";
    }
    ?>
    </wml>

    #2
    1st say its not your popup codes,then I may code an archive for you

    Comment


      #3
      lol romi here it is popup archive
      put this on list.php
      then put this code where u want popup listing
      in place of fun_pops replace it with ibwf_pops coz u have that table

      echo "<a href=\"list.php?action=archive&amp;sid=$sid\">Popu p Archeive</a>";
      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>//////////////////////////////////User Popups
      else if($action=="archive")
      {
      $who = $_GET["who"];
      addonline(getuid_sid($sid),"Pop Up Archive","");
      if (mypro(getuid_sid($sid), $who))
      {
      echo "<card id=\"main\" title=\"Pop Up Archive\">";
      $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=viewbud&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 "
      ---
      ";
      }
      echo "</p><p align=\"center\">";
      if($page>1)
      {
      $ppage = $page-1;
      echo "<a href=\"lists.php?action=archive&amp;page=$ppage&am p;sid=$sid&amp;who=$who\">«Prev</a> ";
      }
      if($page<$num_pages)
      {
      $npage = $page+1;
      echo "<a href=\"lists.php?action=archive&amp;page=$npage&am p;sid=$sid&amp;who=$who\">Next»</a>";
      }
      echo "
      $page/$num_pages
      ";
      if($num_pages>2)
      {
      $rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
      $rets .= "<anchor>[GO]";
      $rets .= "<go href=\"lists.php\" method=\"get\">";
      $rets .= "<postfield name=\"action\" value=\"$action\"/>";
      $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
      $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
      $rets .= "<postfield name=\"who\" value=\"$who\"/>";
      $rets .= "</go></anchor>";

      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 "</card>";
      }else{
      echo "<card id=\"main\" title=\"Error!!!\">";
      echo "<p align=\"center\">";
      echo "This Popup Archieve is not your&#39;s!
      ";
      echo "
      ";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/> Home</a>";
      echo "</p>";
      echo "</card>";
      }
      }</div>
      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


        #4
        1st say its not your popup codes,then I may code an archive for you[/b]


        of course that not my code
        I find somewhere this popup code and I put them on my forum

        Would you like to code me archive for this bro?

        Comment


          #5
          r u a real dumb or wat???? dont u able to c i posted archieve code???
          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
            Not working

            Comment


              #7
              will work how u hav insert this code lol?
              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


                #8
                Ricky21ster I put your code in list.php and that no work...


                This Popup Archieve is not your&#39;s!

                But archive is mine

                I don`t understand about you talking more?

                Comment


                  #9
                  WTF u r talking about? Arhive is ur coding? R u brain dead?
                  sigpiceeeeerrr....

                  Comment


                    #10
                    1st thing every thing is blaze&#39;s so dont get bother about that ppls just implementing the codes and no one claims any of the codes his or her coz each and every part is of blaze so better dnt get bother u got this free script use it and enjoy i dont use lavalair any more from last one year i hav my own script i totally leave wap codings i love web code its really fun lol dnt get bother about any of the codes lol dacha play with codes n try to fix it some where i think hypetype hav that code working ask him lol
                    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


                      #11
                      1st thing every thing is blaze&#39;s so dont get bother about that ppls just implementing the codes and no one claims any of the codes his or her coz each and every part is of blaze so better dnt get bother u got this free script use it and enjoy i dont use lavalair any more from last one year i hav my own script i totally leave wap codings i love web code its really fun lol dnt get bother about any of the codes lol dacha play with codes n try to fix it some where i think hypetype hav that code working ask him lol[/b]

                      I try and hypetype code but not working

                      Comment


                        #12
                        yes it not work pop up not yours
                        Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                        <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                        Comment


                          #13
                          and me too...but pop archive is mine

                          Comment


                            #14
                            It must hurt when u fall on ur head, am i right?
                            sigpiceeeeerrr....

                            Comment


                              #15
                              and me too...but pop archive is mine [/b]
                              you mind to stop posting bollox?!?
                              thank you
                              locked
                              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                              Comment

                              Working...
                              X