Announcement

Collapse
No announcement yet.

vB Popup Messaging Utility v.0.1

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

  • #16
    Hmm now there ist goes

    Template "Headinclude"

    </style>
    $headnewmsg
    $headnewpm<font color="#6F6660"></font>

    bewteen style and $headnewpm

    in the global.php after
    PHP Code:
    $headnewpm='';
    if (
    $checknewpm and $bbuserinfo['userid']!=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')."\";");

    add
    PHP Code:
    if ($checkmessages and $bbuserinfo['userid']!=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')."\";");

    this code follows
    PHP Code:
    $header='';
    $footer='';

    // parse header ##################
    eval(gettemplate('phpinclude',0,0)); 

    the both addings in the /mod/index.php and /admin/index.php are simply Links an can be created somewhere in the Nav
    but basicly they are after
    PHP Code:
    <a href="email.php?s=<?php echo $session[sessionhash]; ?>&action=genlist"> Generate mailing list </a><br>
    in the admin/index.php

    and after

    PHP Code:
    <a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=find"> View </a>|
    in the mod/index

    thats all start install.php and update cp and it works..
    impossible.. but feasiblly

    Comment


    • #17
      Np Molinari... (just @work go with it )

      That's why I said in the install, "Only continue if you know what your doing!"
      Thats why Newbes delete files.. format harddisks, destroy CdR´s

      they think they know what they do..

      @GB... what happend whith the Hack.. do U got an Error?
      works it but no message appear, did you have manually controlled the script?

      (@molinari sorry for posting.. but so i can learn this php language a little bit better...)
      impossible.. but feasiblly

      Comment


      • #18
        I don't know what is wrong but I have tried this hack over and over. I installed the install script 2ce which frigged things up i am sure.

        I added the $ command where it should be.

        I also followed Operations directions in case I did it wrong.

        It tells me the messages were sent, but nothing is seen. Please let me know.

        Comment


        • #19
          same here bro

          Comment


          • #20
            Did you resave your board options? All you need to do is go to Options->change options->save options in the Admin CP. This then saves the options along with the checkmessages variable. If you didn't do this the option to send messages is basically "off".

            Scott
            like he say its off if anything else is right
            it must be this.. but u can easy looking

            just enter phpmyadmin and go to
            Table setting and search for
            Code:
            19   | Allow Popup messaging?  | checkmessages |  1 |  This function allows Admins and Mods to send quick private messages to users.  | yesno
            If value is 1 its aktivated and something else is wrong if its 0 its deaktivated.. change it there oder in the cp to 1 and it works..
            impossible.. but feasiblly

            Comment


            • #21
              i know this a shot in the dark....

              is there some way to make the message appear without the user refreashing or even visitng the forums? could this be done with with cookies and checking procediures & persistant login or something?

              Comment


              • #22
                this should be a joke or not?

                i didnt suppose that so what is working...

                how should this working?
                you can not make a pop up whithout a script
                he must reload the site to get the pop up.. if he is not on the site.. no pop up..
                impossible.. but feasiblly

                Comment


                • #23
                  it is not a joke and as i clearly stadet it was a shot in the dark, my point exactly what you stated, what i was asking, or tried to ask, was : is there a way to acheive this without the user activly going to the page, but have the software do it in some way.

                  :water

                  Comment


                  • #24
                    sorry for my hard answer at your last post but..
                    but now..

                    on a vbulletin Forum definitly NOT

                    this exactly enough?


                    Edit: But u can try it like an instant messager system.. but in that case u could take ICQ.. goes faster
                    Last edited by Operations; Fri 24 Aug '01, 4:16am.
                    impossible.. but feasiblly

                    Comment


                    • #25
                      Same things happens to me. It tells me the message was sent but no message!

                      Comment


                      • #26
                        Originally posted by Operations

                        like he say its off if anything else is right
                        it must be this.. but u can easy looking

                        just enter phpmyadmin and go to
                        Table setting and search for
                        Code:
                        19   | Allow Popup messaging?  | checkmessages |  1 |  This function allows Admins and Mods to send quick private messages to users.  | yesno
                        If value is 1 its aktivated and something else is wrong if its 0 its deaktivated.. change it there oder in the cp to 1 and it works..
                        what tells u the phpmyadmin?
                        what is your status?
                        impossible.. but feasiblly

                        Comment


                        • #27
                          238th line ????

                          is this compatible with version 2.0.3 toooo ?????/

                          thanks

                          Comment


                          • #28
                            it is for 2.03 compatible

                            i have this version and it works..
                            impossible.. but feasiblly

                            Comment


                            • #29
                              worked like a spanner and nut

                              THANKS !!

                              Comment


                              • #30
                                Here's my PhPMyAdmin report: 19 Allow Popup messaging? checkmessages 1 This function allows Admins and Mods to send quick private messages to users. yesno 15

                                and:
                                </style>

                                $headnewmsg
                                $headnewpm
                                Is in all the templates.

                                I resaved the control panel options as well.

                                The problem lies in this bit of the install script:

                                echo "<p>Adding extra template for popups...</p>\n";
                                $template = '<script language="JavaScript"> alert_box=alert("$bbtitle Messaging\n\n$popmessage\n");
                                </script>';

                                No custom template is created. Please tell me what to do here and I am sure it will work perfectly. I will also write a new document for other users. Thank you.
                                Last edited by Lordmusic; Fri 24 Aug '01, 11:34am.

                                Comment

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