Alerts/popup

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

    Alerts/popup

    hello does anyone know how i add alerts or popups to the rw script?

    #2
    yes

    Comment


      #3
      yes[/b]
      plese add that file here or send it to me thanks alot have a nice weekend

      Comment


        #4
        http://mobilelife.tk/fun_popup_bugfree.rar (

        Comment


          #5
          how can i use this? its in xhtml format.. how can i add popups on wml? what do i need to configure in my hosting panel.. tnx

          Comment


            #6
            im doing popus in wml just need to wait and see ok im half way to doing it
            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


              #7
              im doing popus in wml just need to wait and see ok im half way to doing it[/b]
              gee tnx..[/b]

              Comment


                #8
                im done converting it to wml

                Comment


                  #9
                  im done converting it to wml[/b]
                  r u willing to post it here?

                  Comment


                    #10
                    im done converting it to wml[/b]
                    if ya done something that was free in the first place share it ffs!!


                    |||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||
                    |||||||

                    this is place

                    include("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 = 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 "
                    ---";
                      }
                    }
                    ?>
                    |||||||||||||||

                    in lists.php place this code

                    Code:
                    else if($action=="sendto"){
                    
                    addonline(getuid_sid($sid),"Sending pop-up MSG","");
                    echo "<card id=\"main\" title=\"popups\">";
                    echo "<p align=\"center\">";
                    echo "$getbuttons 
                    
                    ";
                    $whonick = getnick_uid($who);
                    $byuid = getuid_sid($sid);
                    echo "Sending to ".$whonick."
                    ";
                    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 "<postfield name=\"who\" value=\"$(who)\"/>";
                    echo "</go></anchor>
                    ";
                    
                    
                    echo "
                    
                    -
                    
                    <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
                    ";
                    echo "</p>";
                    echo "</card>";
                    }
                    place in lists.php !!
                    |||||||||||||

                    now make

                    popus.php


                    place this code!

                    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>
                    the sql for it

                    Code:
                    -- 
                    -- Table structure for table &#39;fun_pops&#39;
                    -- 
                    
                    DROP TABLE IF EXISTS fun_pops;
                    CREATE TABLE fun_pops (
                      id int(100) NOT NULL auto_increment,
                      `text` blob NOT NULL,
                      byuid int(100) NOT NULL default &#39;0&#39;,
                      touid int(100) NOT NULL default &#39;0&#39;,
                      unread char(1) NOT NULL default &#39;1&#39;,
                      timesent int(100) NOT NULL default &#39;0&#39;,
                      PRIMARY KEY  (id)
                    ) ENGINE=MyISAM;
                    WELL DONE WORKS!!


                    all thanks to wizard!! for sharing this code !!
                    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


                      #11
                      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 "
                      ---";
                        }
                      }
                      ?>
                      [/b]
                      sub u shouldnt close this page with ?>

                      leave it as
                      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 "
                      ---";
                        }
                      }

                      Comment


                        #12
                        it works on my site lol its all 100% working members loving it lol

                        Tentatively passed validation
                        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


                          #13
                          he he lol.... alright, mine works open

                          Comment


                            #14
                            open tags can make the sie **** not sure but my works lol
                            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


                              #15
                              if ya done something that was free in the first place share it ffs!!
                              |||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||
                              |||||||

                              this is place

                              include("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 = 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 "
                              ---";
                                }
                              }
                              ?>
                              |||||||||||||||

                              in lists.php place this code

                              Code:
                              else if($action=="sendto"){
                              
                              addonline(getuid_sid($sid),"Sending pop-up MSG","");
                              echo "<card id=\"main\" title=\"popups\">";
                              echo "<p align=\"center\">";
                              echo "$getbuttons 
                              
                              ";
                              $whonick = getnick_uid($who);
                              $byuid = getuid_sid($sid);
                              echo "Sending to ".$whonick."
                              ";
                              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 "<postfield name=\"who\" value=\"$(who)\"/>";
                              echo "</go></anchor>
                              ";
                              echo "
                              
                              -
                              
                              <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
                              ";
                              echo "</p>";
                              echo "</card>";
                              }
                              place in lists.php !!
                              |||||||||||||

                              now make

                              popus.php
                              place this code!

                              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>
                              the sql for it

                              Code:
                              -- 
                              -- Table structure for table &#39;fun_pops&#39;
                              -- 
                              
                              DROP TABLE IF EXISTS fun_pops;
                              CREATE TABLE fun_pops (
                                id int(100) NOT NULL auto_increment,
                                `text` blob NOT NULL,
                                byuid int(100) NOT NULL default &#39;0&#39;,
                                touid int(100) NOT NULL default &#39;0&#39;,
                                unread char(1) NOT NULL default &#39;1&#39;,
                                timesent int(100) NOT NULL default &#39;0&#39;,
                                PRIMARY KEY  (id)
                              ) ENGINE=MyISAM;
                              WELL DONE WORKS!!
                              all thanks to wizard!! for sharing this code !![/b]
                              i agree to that.. share your knowledge..

                              Comment

                              Working...
                              X