Alerts/popup

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

    #76
    wht and where did i go wrong that it dnt work? guys help me out

    Comment


      #77
      brou im usin rw wml script

      Comment


        #78
        wats ur site link

        Comment


          #79
          brou ill pm u the link ok?its not my site its someone elses site i only edit it for him coz he my mate

          Comment


            #80
            ok this is for XHTML

            make popups.php

            <?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;who=$pop[2]\"><font color=\"00FF00\">RELPY</a>";
            echo "
            <font color=\"0000FF\">---</font>
            ";
            }
            }
            ?>



            Then Make popus.php

            <?php
            include("xhtmlfunctions.php");
            header("Content-type: text/html; charset=ISO-8859-1");
            echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
            echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
            ?>


            <?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)
            {
            $pstyle = gettheme1("1");
            echo xhtmlhead("FlareZone",$pstyle);
            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 xhtmlfoot();
            exit();
            }
            $uid = getuid_sid($sid);
            if(isbanned($uid))
            {
            $pstyle = gettheme1("1");
            echo xhtmlhead("FlareZone",$pstyle);
            echo "<p align=\"center\">";
            echo "<img src=\"images/notok.gif\" alt=\"x\"/>
            ";
            echo "You are Banned
            ";
            $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 xhtmlfoot();
            exit();
            }


            else if($action=="send")
            {
            addonline(getuid_sid($sid),"Sending pop-up MSG","");
            $pstyle = gettheme($sid);
            echo xhtmlhead("FlareZone Pop ups",$pstyle);
            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 "<font color=\"00FF00\">Popup Message Sent to $whonick!</font>
            ";

            echo "
            <font color=\"0000FF\">---</font>
            <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
            echo "</p>";
            echo xhtmlfoot();
            exit();

            }
            else if($action=="sendto"){

            $who = $_get[&#39;who&#39;];

            addonline(getuid_sid($sid),"Sending pop-up MSG","");
            $pstyle = gettheme($sid);
            echo xhtmlhead("FlareZone Pop ups",$pstyle);
            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 "SEND<go href=\"popus.php?action=send&amp;who=$who&amp;sid= $sid\"
            method=\"post\">";
            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
            echo "</go>
            ";


            echo "

            -

            <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
            ";
            }
            echo "</p>";
            echo xhtmlfoot();
            ?>


            Add This To List.php

            ///////////////////////////////////////////POP UPS

            else if($action=="sendto"){

            addonline(getuid_sid($sid),"Sending pop-up MSG","");
            $pstyle = gettheme($sid);
            echo xhtmlhead("Pop Up MSG",$pstyle);
            echo "<p align=\"center\">";
            echo "$getbuttons

            ";
            $whonick = getnick_uid($who);
            $byuid = getuid_sid($sid);
            echo "Sending to ".$whonick."
            ";
            echo "<form action=\"popus.php?action=send&amp;who=$who&amp;si d=$sid\"
            method=\"post\">";
            echo "<input name=\"msg\" maxlength=\"150\"/>
            ";

            echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
            echo "<postfield name=\"who\" value=\"$(who)\"/>";
            echo "<input type=&#39;submit&#39; value=&#39;Send&#39;/></form>
            ";


            echo "

            -

            <a href=\"index.php?action=main&amp;sid=$sid\">Home</a>
            ";
            echo "</p>";
            echo xhtmlfoot();

            }





            And Use The SQL That Was Posted By Subzero ,

            Comment


              #81
              someone also post the wml workin pupups

              Comment


                #82
                hey all even in having problem with pop up on my rw script could someone tell me wht exactly is wrong here
                oh lists.php i added like this


                //////////////////////////////////Pop-Up

                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>";
                }


                then on users profile where u have send pm i added link like this


                echo "</small>";
                }
                echo "<a href=\"lists.php?action=sendto&amp;sid=$sid\">Send Pop-Up</a>
                ";
                echo "<a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">Send PM</a>
                ";
                $uid = getuid_sid($sid);
                if(budres($uid, $who)==0)
                {
                echo "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid =$sid&amp;todo=add\">Add to buddy list</a>
                ";
                }else if(budres($uid, $who)==1)


                and after clickin on send popup till next page it works fine i get input box and send msg but after i click on send the next page i get this




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

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


                Popup Message Sent to !

                ---
                Home



                and on main index page i added include


                echo "
                ";
                include (&#39;popups.php&#39;);
                echo "</p>

                <small>";


                but somethin strange i see where i added this code there is this symbol


                



                can someone of you please guide me what i did wrong and where???
                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


                  #83
                  hey all even in having problem with pop up on my rw script could someone tell me wht exactly is wrong here
                  oh lists.php i added like this
                  //////////////////////////////////Pop-Up

                  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>";
                  }
                  then on users profile where u have send pm i added link like this
                  echo "</small>";
                  }
                  echo "<a href=\"lists.php?action=sendto&amp;sid=$sid\">Send Pop-Up</a>
                  ";
                  echo "<a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">Send PM</a>
                  ";
                  $uid = getuid_sid($sid);
                  if(budres($uid, $who)==0)
                  {
                  echo "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid =$sid&amp;todo=add\">Add to buddy list</a>
                  ";
                  }else if(budres($uid, $who)==1)
                  and after clickin on send popup till next page it works fine i get input box and send msg but after i click on send the next page i get this
                  Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxx.com/public_html/re/popus.php:1) in /home/xxxx/domains/xxx.com/public_html/re/popus.php on line 2

                  Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxxx.com/public_html/re/popus.php:1) in /home/xxxx/domains/xxx.com/public_html/re/popus.php on line 3
                  Popup Message Sent to !

                  ---
                  Home
                  and on main index page i added include
                  echo "
                  ";
                  include (&#39;popups.php&#39;);
                  echo "</p>

                  <small>";
                  but somethin strange i see where i added this code there is this symbol
                  
                  can someone of you please guide me what i did wrong and where???[/b]









                  use it

                  add this code in ur index.php


                  echo"<a href=\"index.php?action=viewbud&amp;who=$who&amp;s id=$sid\">Send pop up msg</a>
                  ";

                  b4



                  echo "<a href=\"inbox.php?action=sendpm&amp;who=$who&amp;si d=$sid\">Send PM</a>
                  ";
                  Attached Files

                  Comment


                    #84
                    its not workin it takes me to the main login page
                    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


                      #85
                      its not workin it takes me to the main login page[/b]
                      just given my scripts which is working fine,find out where u made mistakes by urself

                      Comment


                        #86
                        lol exactly , they must find their errors them selves

                        Comment


                          #87
                          atleast tell me bro how do you people link it exactly and do i have to also do somethin in lists.php ect?
                          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


                            #88
                            atleast tell me bro how do you people link it exactly and do i have to also do somethin in lists.php ect?[/b]



                            man i gave u a complete script with a read me.txt,in my script u can find an action index.php
                            n the link is


                            echo"<a href=\"index.php?action=viewbud&amp;who=$who&amp;s id=$sid\">Send pop up msg</a>
                            "


                            and the link 4 ur codes in list.php will b

                            echo"<a href=\"lists.php?action=sendto&amp;who=$who&amp;si d=$sid\">Send pop up msg</a>
                            "

                            Comment


                              #89
                              ok i did everythin right bro but after i click on send popup i get this


                              Fatal error: Call to undefined function getuid_sid() in /home/xxxx/domains/xxx.com/public_html/pops.php on line 4
                              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


                                #90
                                and when i click on this link

                                echo"<a href=\"index.php?action=viewbud&amp;who=$who&amp;s id=$sid\">Send pop up msg</a>
                                "

                                it takes me to main index page where u login
                                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

                                Working...
                                X