Announcement

Collapse
No announcement yet.

[re-release vb2.0] Download PMs to file

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

  • #16
    Hi, if i click in the user cp on the link 'Private Messaging' I get just the following error messsage:

    Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in e:\apache\apache\nsdocs\forum\private.php on line 695

    Comment


    • #17
      restore private.php and see if that works then rehack.
      You probably deleted a , or } or something.

      See my hack based on this one to Email the selected PM's to the registered email address here
      http://161.58.84.213/forum/showthrea...threadid=18991
      Last edited by Zarkov; Sat 9 Jun '01, 2:53am.

      Comment


      • #18
        I did it three times!

        Comment


        • #19
          did it work OK when you re up the original file?

          Comment


          • #20
            yes

            Comment


            • #21
              Then it must be something to do with the hack, either your doing something wrong or possibly your using PHP 3 and it maybe it doesnt work with 3 ( that is only a guess as i have never tried it on 3).

              Comment


              • #22
                Originally posted by slip
                i installed everything exactly as it should be done, yet when i try to download some pm's, i just get a blank page (completely blank, no errors)

                any help?


                can anyone help me?
                I'm using PHP4 and I did everything like I should have..

                Comment


                • #23
                  What browser you using?

                  I found that the code in the hack worked in IE 5 but not 5.5, I had to do a little digging around,But i assume its to do with http versions, IE 5 being http 1.0 complient and 5.5 being http 1.1 compliant.

                  I did work out and get it to work in IE.5.5 and netscape 4.7, but at the moment im at work and dont have access to the code, but ill post the changes later for anyone to use.

                  Please note that from mmy playing you can have it work in IE 5 or 5.5 but not both

                  Comment


                  • #24
                    yup, i'm running IE 5.5

                    those code modifications that you did would be GREATLY appreciated..

                    Comment


                    • #25
                      OK look for this code in private.php
                      PHP Code:
                      if (is_array($privatemessage)) { 
                      header("Content-type: application/octet-stream"); 
                      header("Content-disposition: attachment; filename=messages.txt"); 
                      header("Pragma: no-cache"); 
                      header("Expires: 0"); 
                      and replace it with
                      PHP Code:
                      if (is_array($privatemessage)) { 
                      header("Content-disposition: attachment; filename=messages.txt"); 
                      header("Content-type: uknown/unknown"); 
                      header("Pragma: no-cache"); 
                      header("Expires: 0"); 
                      Dont forget to change the filename=messages.txt to what ever you want to call the downloaded file.

                      Comment


                      • #26
                        This is how it worked for me...

                        Bira, first of all GREAT HACK!

                        For Zarkov & Norritt & Slip & Bira :

                        I had the same error as Norritt (Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in e:\apache\apache\nsdocs\forum\private.php on line 695), and it wasn't my fault, after a while I found out the error. I had to modify the last EVAL() in this way:

                        PHP Code:
                        // Original code by Bira
                              
                        eval("standarderror(\"".gettemplate("error_pmnoselected")."");");
                              exit;
                              }

                        // My modification
                              eval("
                        standarderror(\"".gettemplate("error_pmnoselected")."\");");
                              exit;
                              } 
                        One other thing: I use IE 5.5 and the hack works greatly without applying Zarkov's modifications.
                        "Sometimes men stumble upon the truth and then hurry off as if nothing happened"
                        - Winston Churchill -

                        Comment

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