Announcement

Collapse
No announcement yet.

vB Popup Messaging Utility v.0.1

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

  • #31
    look in your phpmy admin
    enter
    "SELECT * from template where title like "head_newmsg" LIMIT 0, 30 " if there is the template that all is ok..
    if there is none enter new template

    Code:
    templateid  templatesetid  title                       template  
    Your id   -             1                head_newmsg   <script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script>
    You have to Create a template called "head_newmsg"

    Insert in the template
    Code:
    <script language="JavaScript"> alert_box=alert("$bbtitle  Messaging\n\n$popmessage\n");
    </script>
    ok?
    impossible.. but feasiblly

    Comment


    • #32
      Yep I have 4 and I have applied this to all of them. I am still working on it. I customy added all the MySQL stuff, added the $ command to all sections, and the template. Still no luck. I have tried everything. I get no errors, but I get no popups eigther.

      Everything should be working perfectly, any ideas?
      Last edited by Lordmusic; Fri 24 Aug '01, 4:45pm.

      Comment


      • #33
        | 6222 | -1 | head_newmsg | ".addslashes($template)."
        |
        | 6223 | 1 | head_newmsg | <script language="JavaScript"> aler
        t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
        </script> |
        | 6224 | 6 | head_newmsg | <script language="JavaScript"> aler
        t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
        </script> |
        | 6226 | 7 | head_newmsg | <script language="JavaScript"> aler
        t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
        </script> |
        | 6227 | 8 | head_newmsg | <script language="JavaScript"> aler
        t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
        </script> |
        | 6225 | 9 | head_newmsg | <script language="JavaScript"> aler
        t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
        </script> |
        +------------+---------------+-------------+------------------------------------
        ----------------------------------------------------------------+
        6 rows in set (0.01 sec)
        _________________________________________

        $WOLenable = "1";
        $WOLguests = "1";
        $WOLresolve = "1";
        $WOLrefresh = "60";
        $allowimgsizefailure = "0";
        $allowvbcodebuttons = "1";
        $memberAllGood = "1";
        $checkmessages = "1";
        _________________________________________

        a.pageNum:hover {color: #ffffff; background-color: #a0a0a0;}
        </style>

        $headnewmsg
        $headnewpm |
        ________________________________________
        In Global.php base directory, not admin...

        $newpmmsg=0;
        $headnewpm='';
        if ($checknewpm and $bbuserinfo['userid']!=0 and $bbuserinfo['pmpopup']==2) {
        if ($noshutdownfunc) {
        $DB_site->query("UPDATE user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]");
        } else {
        $shutdownqueries[]="UPDATE LOW_PRIORITY user SET pmpopup=1 WHERE userid=$bbuserinfo[userid]";
        }
        $newpmmsg=1;
        eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
        }
        if ($checkmessages and $bbuserinfo['userid']!=0 and $bbuserinfo['messagepopup']==2) {
        $popupmessages = $DB_site->query("SELECT * FROM popupmsgs WHERE userid=$bbuserinfo[userid] ORDER BY nummessages DESC");
        while ($popmsg = $DB_site->fetch_array($popupmessages)) {
        $popmessage .= "Von:$popmsg[sender]\n";
        $popmessage .= "Nachricht:$popmsg[message]\n\n";
        $DB_site->query("DELETE FROM popupmsgs WHERE nummessages=$popmsg[nummessages] AND userid=$bbuserinfo[userid]");
        }
        $DB_site->query("UPDATE user SET messagepopup=1 WHERE userid=$bbuserinfo[userid]");
        eval("\$headnewmsg = \"".gettemplate('head_newmsg')."\";");
        }
        $header='';
        $footer='';
        ___________________________________

        Weird isn't it...
        Last edited by Lordmusic; Sun 26 Aug '01, 12:27am.

        Comment


        • #34
          But that is the default template as u said. I have 5 different layouts/colors and that is it. And yes I am using IE. And if that was my problem how do I fix it.

          Comment


          • #35
            If iam right Molinari means you shold use a template like
            | 6223 | 1 | head_newmsg | <script language="JavaScript"> aler
            t_box=alert("$bbtitle Messaging\n\n$popmessage\n");
            </script> |

            //your other templates //

            instead of .addslashes
            impossible.. but feasiblly

            Comment


            • #36
              Just tell me exactly what to do please, I am illiterate with this stuff, I am somewhat of a hardware guy more than a programmer.

              Comment


              • #37
                Try to enter
                Code:
                <script language="JavaScript"> aler 
                t_box=alert("$bbtitle Messaging\n\n$popmessage\n"); 
                </script>
                in the Template instead of
                Code:
                ".addslashes($template)."
                because more than malfunction like now is impossible..

                You can do it directly in the myadmin or in the p..
                impossible.. but feasiblly

                Comment


                • #38
                  Ok, well problem, ".addslashes($template)." in template -1 is from a template that is not used or visible at all. Hence it should have no effect on the outcome of any of this. What else could be wrong.

                  Comment


                  • #39
                    Oh Boy... ok
                    my settings are

                    [code]1544 -1 head_newmsg <script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n"); </script> [code]


                    Code:
                    $checkmessages = "1";
                    Code:
                    </style> $headnewmsg $headnewpm<font color="#6F6660"></font
                    i can only tell u that because molinari makes the hack.. i just try to help...
                    impossible.. but feasiblly

                    Comment


                    • #40
                      thanks s.molinari for this great hack ..it works like a charm for me ... I have only one problem

                      let say I have these users

                      josh
                      josh1


                      and I want to send the message to josh ....it will send it to josh1 first then it will ask me to continue

                      that means all the other users will get the message which I dont wont to ...

                      now is there is a way of giving a choice not to send the message to the other users except the one I want



                      I hope you got what I mean
                      Last edited by dxb; Tue 28 Aug '01, 1:55pm.

                      Comment


                      • #41
                        Great hack...

                        I installed it 2 hours ago and have already put it to use! We love it!

                        Comment


                        • #42
                          waaw I'm just a bug squasher ...I'll be waiting for your update

                          Comment


                          • #43
                            Very useful hack !! Thanks man !! good work !!

                            Comment


                            • #44
                              guess whats next on my install list !!!
                              Talking loud but aint saying nothing.

                              Comment


                              • #45
                                two error

                                i use vbulletin 2.0.0

                                i install your script and its works but when i call popupmsginstall.php in the bottom appear this error :

                                Fatal error: Failed opening required '' in ./global.php on line 45



                                In the admin CP when i send a message appear this error :

                                Warning: Variable $numof is not an array or string in /home/sites/site57/web/forumprova/admin/adminpopupmsg.php on line 116


                                what is it???

                                Thanks

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X