Pm As Popup

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

    Pm As Popup

    Hey who can share the code ive tried it myself but didnt get right to show the pm as a popup in main page like blingywap ive checked in the inboxproc and inbox for the code got the right one but didnt work

    #2
    I will give it. But cant do it nw because im using my phone. Check tomorow again

    click here to join blingywap.co.za
    http://blingywap.co.za


    IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!

    Comment


      #3
      kwl tanx bru i got that code in the inbox but it didnt show like urs but hey atleast i can say ive tried

      Comment


        #4
        Originally posted by Numb
        kwl tanx bru i got that code in the inbox but it didnt show like urs but hey atleast i can say ive tried
        Originally posted by Numb
        hehe sub most ppl cant read we must excuse them
        like you cant read such simple thing in script.... right?
        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


          #5
          well im still learning dnt make asif im stupid everday im learning bit for bit mabe soon ill be moding and coding own stuff

          Comment


            #6
            here u go numb

            ///////////////////////////////////create a file named popups.php and add

            PHP Code:
            <?
              
            /*
            2wap forums group
            [url]www.coding-talk.com[/url]
            */

              $umsg = getunreadpm(getuid_sid($sid));
              if ($umsg>0)
              {
                $uid = getuid_sid($sid);
                $lshout = mysql_fetch_array(mysql_query("SELECT text, byuid, timesent, touid, reported, id, title  FROM ibwf_private WHERE touid='".$uid."' AND unread='1' ORDER BY timesent DESC LIMIT 1"));
                $umsg = getunreadpm(getuid_sid($sid));
              
                $text = getpoppm($sid);
              
                  echo "<div>";
                    echo "$lightgreyh";
                        echo "<center>[size="1"][u]PopUp PM[/u][/size]</center></div>";
                    echo "$lightgreyb";
                        echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"169\">";
                            echo "<tr>";
                                echo "<td class=\"IL-R\" width=\"147\"><small>";
                                      echo "$text";
                                      echo "<a href=\"inbox.php?action=readpm&amp;pmid=$lshout[5]&amp;sid=$sid\">Read</a>";
                                      echo " / ";
                                      echo "<a href=\"inbxproc.php?action=poppmsent&amp;sid=$sid&amp;pmid=$lshout[5]\">Reply</a>";
                                      echo " / ";
                                      echo "<a href=\"inbox.php?action=folderunread&amp;sid=$sid\">Inbox</a>($umsg)
            ";
                                echo "<small></td>";
                            echo "</tr>";
                        echo "</table>";
                    echo "</div>";
                echo "</div>";
              }

            /////////////////////////////////////////add this codes on index.php
            PHP Code:
            $popuppm mysql_fetch_array(mysql_query("SELECT popuppm FROM ibwf_users WHERE id='".$uid."'")); 
            *add the upper code under the following*^

            PHP Code:
            $action $_GET["action"];
            $sid $_GET["sid"];
            $page $_GET["page"];
            $who $_GET["who"];
            $uid getuid_sid($sid); 
            /////////////////////////////////////under this code on the main part
            PHP Code:
            $fmsg htmlspecialchars(getfmsg());
            echo 
            "<center>$fmsg</center>"
            //////////////add this

            PHP Code:
            include ("popups.php"); 

            click here to join blingywap.co.za
            http://blingywap.co.za


            IF YOU NEED HELP JUST ASK AND ALWAYS SAY THANK YOU!

            Comment


              #7
              tanx allot bru

              Comment


                #8
                PHP Code:
                /////////////////////////////////////////////Function PopUp PM

                function getpoppm($sid)
                {

                $uid getuid_sid($sid);
                $lstpm mysql_fetch_array(mysql_query("SELECT text, byuid, timesent, touid, reported, title**FROM ibwf_private WHERE touid='".$uid."' AND unread='1' ORDER BY timesent DESC LIMIT 1"));
                $pmbynick getnick_uid($lstpm[1]);
                $poppm .= "[i]<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$lstpm[1]\">".$pmbynick."</a>[/i]: $lstpm[5]
                "
                ;
                $poppm .= parsepm($lstpm[0], $sid);
                $poppm .= "
                "
                ;

                return 
                $poppm
                add this in the core.php

                Comment


                  #9
                  what about inbox pm also popup in 2nd window?

                  thanks

                  Comment


                    #10
                    not working getting this message

                    Fatal error: Cannot redeclare getunreadpm() (previously declared in /home2/dhruv/public_html/web/core.php:1064) in /home2/dhruv/public_html/web/core.php on line 2101

                    please help me someone

                    Comment


                      #11
                      Fatal error: Call to undefined function popuppm() in /home2/dhruv/public_html/web/popups.php on line 8


                      sorry i m getting this message

                      Comment


                        #12
                        <div class='quotetop'>QUOTE (dhruva @ Mar 12 2009, 02:08 PM) <{POST_SNAPBACK}></div>
                        not working getting this message

                        Fatal error: Cannot redeclare getunreadpm() (previously declared in /home2/dhruv/public_html/web/core.php:1064) in /home2/dhruv/public_html/web/core.php on line 2101

                        the error explains it its self m8 you got getunreadpm() function in core.php 2 times lol tells you what lines aswell pmsl[/b]

                        Comment


                          #13

                          Fatal error: Call to undefined function popuppm() in /home2/dhruv/public_html/web/popups.php on line 8

                          i meant above one, i used the function that is made by rider...... so pleae help me guys

                          Comment


                            #14
                            poppm sent

                            rk01 can u please add this file from ur inboxproc here please
                            poppmsent

                            i dnt have that one and ive checked in my inbox wich other one to use but nothing

                            Comment


                              #15
                              I got a totally new allert popup pm works 100% u go into cpanel and switch the allert on and off and it will popup the pm its on mobizonez script

                              Comment

                              Working...
                              X