Alerts/popup

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

    #16
    |||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||
    |||||||

    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 "
    ---";
      }
    }
    ?>
    where will i place this one?

    Comment


      #17
      |||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||
      |||||||

      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 "
      ---";
        }
      }
      ?>
      where will i place this one?[/b]
      put it whereever you want the popup message to show like on the main page, on the forum pages etc...

      Comment


        #18
        anywhere you like a popup message to show


        include("popups.php"); is just a popup
        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


          #19
          i did everythin correctly as u told.. but popup msg doesnt appear.. plz help me.. my ite is http://arawap.net

          Comment


            #20
            u have
            Code:
            echo "<postfield name=\"msg\" value=\"$msg\"/>";
            change to
            Code:
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";

            Comment


              #21
              u meant i have change <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>echo "<postfield name=\"msg\" value=\"$(msg)\"/>";</div>
              to <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>echo "<postfield name=\"msg\" value=\"$msg\"/>";</div>
              ??

              Comment


                #22
                put it whereever you want the popup message to show like on the main page, on the forum pages etc...[/b]
                im still having problem about this.. can you specify where should i place include("popups.php");

                and this code..

                <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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]\">RELPY</a>";
                echo "
                ---";
                }
                }
                ?></div>

                tnx

                Comment


                  #23
                  u meant i have change <div class='codetop'>CODE
                  <div class='codemain' style='height:200px;white-space:pre;overflow:auto'>echo "<postfield name=\"msg\" value=\"$(msg)\"/>";</div>
                  to <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>echo "<postfield name=\"msg\" value=\"$msg\"/>";</div>
                  ??[/b][/quote]

                  yup..

                  Comment


                    #24
                    dude!! place all over your site at where to show grrrrrrr 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


                      #25
                      dude!! place all over your site at where to show grrrrrrr lol[/b]
                      yes i have place this on my main page.. but it&#39;s invalid wml.. do i need to exclude something in the script?

                      Comment


                        #26
                        echo "<p align=\"center\">";

                        include("popups.php");

                        stuff here
                        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


                          #27
                          echo "<p align=\"center\">";

                          include("popups.php");

                          stuff here[/b]
                          still doesn&#39;t work on me..

                          Comment


                            #28
                            echo "<p align=\"center\">";

                            include("popups.php");

                            stuff here[/b]
                            what i did is.. i put the script in
                            Code:
                            if($action=="main")
                            right after my forum message..
                            include("popups.php");
                            and below this.. is where i put the script..
                            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 "
                            ---";  }}?>
                            anything wrong in what i did?

                            Comment


                              #29
                              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 "
                              ---";  }}?>
                              thats is popups.php 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


                                #30
                                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 "
                                ---";  }}?>
                                thats is popups.php lol![/b]
                                should i make a link? but it is not working..

                                Comment

                                Working...
                                X