Alerts/popup

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

    #61
    ok change ya plans!!
    ok use this
    make a file [ 1.php ] !! right

    include("1.php"); anywhere you like it to show!!

    place this in it!!

    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 = htmlspecialchars($pop[1]);
    echo "
    [b]$by:[/b] $msg - $dtop
    ";
    echo "<a href=\"lists.php?action=sendto&amp;sid=$sid&amp;who=$pop[2]\">RELPY</a>";
    echo "
    ---";  }}?>
    ============================done================== ==================
    now make popups.php

    place this code in it

    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;];
    $page = $_GET[&#39;page&#39;];
    $who = $_GET[&#39;who&#39;];
    $pmid = $_GET[&#39;pmid&#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();
        }
    else if($action=="send")
    {
    addonline(getuid_sid($sid),"Sending pop-up MSG","");
    echo "<card id=\"main\" title=\"sent!!\">";
    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/sent.gif\" alt=\"O\"/>
    ";
        echo "Popup Message Sent to $whonick!
    ";
    
        
    echo "
    ---
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    echo "</p>";
    echo "</card>";
    echo "</wml>";
    exit();
    
    }
    else if($action=="sendto"){
    
    $who = $_get[&#39;who&#39;];
    
    addonline(getuid_sid($sid),"Sending pop-up MSG","");
    echo "<card id=\"main\" title=\"popups\">";
    echo "<p align=\"center\">";
    echo "$getbuttons 
    ";
    
    $who = $_get[&#39;who&#39;];
    $whonick = getnick_uid($who);
    $byuid = getuid_sid($sid);
    
    echo "<input name=\"msg\" maxlength=\"150\"/>
    ";
    echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid=$sid\" method=\"post\">";
    echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
    echo "</go></anchor>
    ";
    echo "
    
    -
    
    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
    ";
    }
    echo "</p>";
    echo "</card>";
    ?>
    </wml>
    ====================done==============
    try that now get the code for lists in list code ok[/b]






    ok i did all that bot how i sent a pop up ?

    Comment


      #62
      luck at my eror (
      Attached Files

      Comment


        #63
        <?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 = htmlspecialchars($pop[1]);
        echo "
        $by: $msg - $dtop
        ";
        echo "<a href=\"lists.php?action=sendto&amp;sid=$sid&amp;wh o=$pop[2]\">reply</a>";
        echo "
        ---";
        }
        }
        ?>

        =================================================
        HOW CAN I GET A REPLY BOX ON THIS PAGE WITHOUT CAUSIN AN ERROR?
        =================================================

        * i tried to make 1 but i get errors wit my mobile, but not on pc *

        Comment


          #64
          Maybe it wsnt meant to ever workout

          Comment


            #65
            Maybe it wsnt meant to ever workout[/b]
            <?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;");
            }
            $alerta = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent,touid, reported FROM fun_pops WHERE id=&#39;".$id."&#39;"));
            $dtop = date("d/m/y - H:i:s",$pop[5]);
            $by = getnick_uid($pop[2]);
            $msg = parsepm($pop[1]);
            if(isspam($msg))
            {
            if(($alerta[4]=="0") && ($alerta[1]!=1))
            {
            mysql_query("UPDATE fun_pops SET reported=&#39;1&#39; WHERE id=&#39;".$id."&#39;");
            }
            }
            echo "$getbuttons
            ";
            $who = $_get[&#39;who&#39;];
            echo "(!)alert";
            echo "
            $by: $msg
            ";
            $whonick = getnick_uid($who);
            $byuid = getuid_sid($sid);


            echo "<input name=\"msg\" maxlength=\"150\"/>
            ";
            echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid&amp;who=$pop[2]\" method=\"post\">";
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
            echo "</go></anchor>
            ";

            echo "---
            ";
            }
            }
            ?>




            enjoy..with my code you have the replay text after the alert;)

            Comment


              #66
              <?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 "(!)alerta";
              echo "
              $by: $msg
              ";
              $whonick = getnick_uid($who);
              $byuid = getuid_sid($sid);


              echo "<input name=\"msg\" maxlength=\"150\"/>
              ";
              echo "<anchor>SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid&amp;who=$pop[2]\" method=\"post\">";
              echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
              echo "</go></anchor>
              ";

              echo "---
              ";
              }
              }
              ?>





              try this one, the other has some other codes is for wml version

              Comment


                #67
                now it works but idont find the code for the emotion plssss

                Comment


                  #68
                  now it works but idont find the code for the emotion plssss[/b]
                  what do you mean? are you talking about the smilies?

                  Comment


                    #69
                    what do you mean? are you talking about the smilies?[/b]


                    yes emotionbut ==>that is not a problem no more / it works now .

                    Comment


                      #70
                      now who ghives me a free+good host /http://enryke.com its not free any more

                      Comment


                        #71
                        sorry for this dumb question but now that pop-ups is set up, wat u do to recieve them?

                        Comment


                          #72
                          hello belthazar,


                          I had done this script from wizard xhtml site i edit to wml-php scripts.

                          To give you idea try to search before you post any topic
                          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                          Visit: WapMasterz Coming Back Soon!
                          _______
                          SCRIPTS FOR SALE BY SUBZERO
                          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                          _______
                          Info & Tips
                          php.net
                          w3schools.com

                          Comment


                            #73
                            Read Properly!!!!!!! Belthazer And You Should No

                            Comment


                              #74
                              some one plz help me with this popups
                              i got all the files uploaded and also on list.php i added ////////////////////////////popups msg
                              but after doin all this when i try to access popus.php page i get this error


                              Warning: Cannot modify header information - headers already sent by (output started at /home/pfaalo01/domains/cyberside.eu/public_html/re/popus.php:1) in /home/pfaalo01/domains/cyberside.eu/public_html/re/popus.php on line 2

                              Warning: Cannot modify header information - headers already sent by (output started at /home/pfaalo01/domains/cyberside.eu/public_html/re/popus.php:1) in /home/pfaalo01/domains/cyberside.eu/public_html/re/popus.php on line 3


                              and when i try to access popus.php i get this


                              Fatal error: Call to undefined function getuid_sid() in /home/pfaalo01/domains/cyberside.eu/public_html/re/popups.php on line 2


                              and after addin the include("popups.php"); on main page i see just this  help me put the popup sub brou or wizard bro i cnt figure out wots wrong

                              Comment


                                #75
                                wat script r u using it with?

                                Comment

                                Working...
                                X