Results 1 to 13 of 13

Thread: [not a bug] Private Messages Clutter--

  1. #1
    New Member Jason Hung is on a distinguished road
    Join Date
    Jan 2001
    Posts
    18
    I think that the private messages are missing the paging feature... perhaps add << < 1 2 ... > >> feature?
     

  2. #2
    Former Lead Developer, vBulletin Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier's Avatar
    Join Date
    Sep 2000
    Location
    Reading, UK
    Posts
    8,228
    Blog Entries
    6
    Most administrators won't allow you to have more than 50-100 private messages, which is why the multipage nav feature is not currently implemented.
    Meh. | Twitter: @KierDarby | Web: KierDarby.com
     

  3. #3
    New Member Jason Hung is on a distinguished road
    Join Date
    Jan 2001
    Posts
    18
    Time for a hack?
     

  4. #4
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    yeah please, i would like it as an admin as i stored lots of pms myself and hate waiting for 200 to load.... until a "download pm thing" comes along..
     

  5. #5
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    Chris,

    Here's a simple and dirty download hack for you. I've had this running on my BB since 1.1.3:

    1) Open private.php. Find:

    Code:
      if ($delete!="") {
        $what="delete";
      }
    Immediately under it put:

    Code:
      if ($download!="") {
        $what="download";
      }
    Find:

    Code:
        eval("standardredirect(\"".gettemplate("redirect_pmdelete")."\",\"private.php?s=$session[sessionhash]&folderid=$thisfolder\");");
      }
    immediately under it put:

    PHP Code:
      if ($what=="download") {
          
        if (
    is_array($privatemessage)) {
            
    header("Content-disposition: filename=messages.txt");
            
    header("Content-type: application/octetstream");
            
    header("Pragma: no-cache");
            
    header("Expires: 0");

              while(list(
    $key,$val)=each($privatemessage)) {
                
    $downloads mysql_query("SELECT * FROM privatemessage WHERE privatemessageid='$key' AND userid=$bbuserinfo[userid]");
                
    $mydownload mysql_fetch_array($downloads);
                
    $tousername mysql_query("SELECT username FROM user WHERE userid='$mydownload[touserid]'");
                
    $mytousername mysql_fetch_array($tousername);
                
    $fromusername mysql_query("SELECT username FROM user WHERE userid='$mydownload[fromuserid]'");
                
    $myfromusername mysql_fetch_array($fromusername);
                
    $msgdt vbdate($dateformat,$mydownload[dateline]);
                
    $msgtm vbdate($timeformat,$mydownload[dateline]);

                        
                        print(
    "Date/Time Sent: $msgdt, $msgtm\r\n");
                        
    printf("From: %s\r\n"$myfromusername["username"]);
                        
    printf("To: %s\r\n"$mytousername["username"]);
                        
    printf("Subject: %s\r\n\r\n"$mydownload["title"]);
                        
    printf("%s\r\n"$mydownload["message"]);
                        print(
    "=======================================================================\r\n\r\n\r\n");


            } 
    //end while
        
        
    } else {
          eval(
    "standarderror(\"".gettemplate("error_pmnoselected")."\");");
          exit;
        }
      } 
    Upload to server.

    2. Open template privfolder. Find:

    Code:
    <input type="submit" class="bginput" name="move" value="Move" style="background-color:#6C6081;color:#F5D300;font-size:10px;font-weight:bold">
    	$massforwardlink
    	or <input type="submit" class="bginput" name="delete" value="Delete" style="background-color:#6C6081;color:#F5D300;font-size:10px;font-weight:bold">
    change to (change in red):

    Code:
    <input type="submit" class="bginput" name="move" value="Move" style="background-color:#6C6081;color:#F5D300;font-size:10px;font-weight:bold">
    or <input type="submit" class="bginput" name="download" value="Download" style="background-color:#6C6081;color:#F5D300;font-size:10px;font-weight:bold">
    $massforwardlink
    or <input type="submit" class="bginput" name="delete" value="Delete" style="background-color:#6C6081;color:#F5D300;font-size:10px;font-weight:bold">
    That's it. Now, upon selecting message(s) and clicking on "Download", you will be prompted to save the file with the selected messages in it, sorted by descending chronological order. You can then save the file under any name you like.


    This can be tested on my Bulletin Board.

    Cheers,

    Bira
    Last edited by bira; Tue 17th Apr '01 at 9:58am.
     

  6. #6
    Former Lead Developer, vBulletin Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier's Avatar
    Join Date
    Sep 2000
    Location
    Reading, UK
    Posts
    8,228
    Blog Entries
    6
    I've moved this thread out of the vB2 Bug reports forum, as it has turned into more of a hacks thread than a bug report.
    Meh. | Twitter: @KierDarby | Web: KierDarby.com
     

  7. #7
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    Kier, why don't you take my proposal above here and improve it? I don't have your skills and knowledge
     

  8. #8
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    than's bira, that is very useful.

    cheers
     

  9. #9
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    if people are interested in this, I can improve this code to use a template (rather than hard-coded format) and a little less code lines.

    Let me know if you are.
     

  10. #10
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    i am definitely interested, going to test it on your forum as well soon....
     

  11. #11
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    I cleaned the code abit in the above post. The only other change I could probably make is to use a template for the "to:, from:, subject" lines and I don't really know how to use templates I'm afraid

    So This is all I have to offer. All I can say is that it works - it's been working on my BB for over 6 months.
     

  12. #12
    Former Lead Developer, vBulletin Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier's Avatar
    Join Date
    Sep 2000
    Location
    Reading, UK
    Posts
    8,228
    Blog Entries
    6
    bira: I'm actually planning to implement an email-backup system for private messages in 2.1, so this hack can stay your baby
    Meh. | Twitter: @KierDarby | Web: KierDarby.com
     

  13. #13
    Member Flare is on a distinguished road Flare's Avatar
    Join Date
    Feb 2001
    Posts
    77
    I have a bunch of packrats as users ... I would defintely like to see some way to organize huge lists of PMs. Currently, my max PMs are set to 400 per user... and I have users complaining that's too few.

    I realize I may be in the minority, but it's something that can't really hurt and can only help... at least for the customers. I know it might be a pain to code though

    Therei s a market for it though!

    I wonder about an email import/export function for PMs. My users are, more and more, utilizing PMs instead of Email (IE - using PMs as a web based email) .. go figure. Might be an area to explore in the future.
     

Similar Threads

  1. private message error won't allow receiving of private messages
    By DaveFT in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Tue 28th Sep '04, 8:36pm
  2. Private Messages - Show Messages from ... ???
    By BrAinZ in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Sun 25th Aug '02, 12:32am
  3. Private Messages Bug
    By philliplewis in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 4
    Last Post: Sun 25th Nov '01, 9:25am
  4. Replies: 1
    Last Post: Wed 24th Oct '01, 9:21am
  5. [not a bug] private messages << bugs >>
    By dxb in forum Pre beta 4.1 bugs
    Replies: 1
    Last Post: Mon 16th Apr '01, 6:31pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts