One thing vb should have!

Discussion in 'vBulletin Discussions' started by Michael, Sep 11, 2009.

  1. Michael

    Michael Regular Member

    166
    35
    104
    Have you ever tried to pull up a list of user x's posted visitor messages? I am quite sure vbulletin does not have this. I cant believe it doesnt, I know theres that page in the usercp but shouldnt we be able to read all posted visitor messages by a user without the need to filter through others posted visitor messages?

    Vbulletin seems to have almost everything but this is something they have seemingly missed and we need!
     
  2. David

    David Regular Member

    1,088
    133
    518
  3. Nick

    Nick Regular Member

    7,441
    218
    458
    I think he means "view a list of all Visitor Messages posted by user". There is no [easy] way to do this, that I know of.

    What you linked to is limited to visitor messages posted only on one other member's profile.
     
  4. twhiting9275

    twhiting9275 Regular Member

    372
    8
    324
    I'm actually putting together a better 'stats' plugin for vb (messages posted in X days by users, referrals in X days, broken down by user, more), and this might be something I add in there.

    I'll see how complicated this is to add in there.
     
  5. Chani

    Chani Grand Master

    884
    54
    134
    I'd have to hack my way through it, and I couldn't verify that it would be up to vBulletin's coding standards, but it really shouldn't be that difficult...:shrug:
     
  6. Michael

    Michael Regular Member

    166
    35
    104
    I would really like to see this implemented, for example if someone was harrassing someone via visitor messaging it would be easy to see what messages have been said without the noise of the other parts conversation or anyone elses.
     
  7. 3Phase

    3Phase Champion

    342
    44
    104
    I am very very very interested! :p

    Are better stat functions something vb 4 is likely to provide? Regardless, it could be quite a few months before vb 4 is up on my forum(s,) and a program such as you describe might be good to have in the meantime. Feel free to pm me if you get it ready, I may not notice a post since I don't see nearly all AA's posts. :)
     
  8. Lynne

    Lynne Regular Member

    333
    32
    164
    Very simple guys.

    hook location: moderation_visitor_messages_start
    PHP:
    $vbulletin->input->clean_gpc('r''u'TYPE_UINT);
    hook location: moderation_visitor_messages_query
    PHP:
    if ($vbulletin->GPC['u'])
    $hook_query_where 'AND visitormessage.postuserid = '.$vbulletin->GPC['u'] ;
    Then just add "&u=x" to the end of the url where x is the userid you wish to view the messages from.
     
    4 people like this.
  9. torque

    torque Regular Member

    735
    12
    104
    thanks lynne
     
  10. Michael

    Michael Regular Member

    166
    35
    104
    Thanks! What is the URL we add "&u=x" to?
     
  11. Lynne

    Lynne Regular Member

    333
    32
    164
    Oh, just when you are on the new visitor messages list in the usercp - moderation.php?do=viewvms&type=new&u=x
     
  12. Michael

    Michael Regular Member

    166
    35
    104
    Awesome, gonna add a link up too so I can just add the userid in when needed :)

    Thanks very much for this!
     
  13. Michael

    Michael Regular Member

    166
    35
    104
    There is a little problem, when you click to go to the next page it doesnt go to the correct page:

    moderation.php?do=viewvms&type=new&page=2

    I think it needs to be this to get onto the next page grrr!

    moderation.php?do=viewvms&type=new&u=X&page=2
     
  14. Lynne

    Lynne Regular Member

    333
    32
    164
    You could add another plugin at moderation_visitor_messages_complete:
    PHP:
    if ($vbulletin->GPC['u'])
    {
    $pagenavbits[] = 'u='.$vbulletin->GPC['u'];
    }

    $pagenavurl 'moderation.php?' $vbulletin->session->vars['sessionurl'] . implode('&'$pagenavbits);
    $pagenav construct_page_nav($pagenumber$perpage$messagetotal$pagenavurl);
    And that will help carry the url. However, I just noticed that if you use the search at the bottom, the userid doesn't get passed unless you modify the form (template - moderation_filter). So, you can add an input field into that form to set u and carry it.

    (I'm not actually using this, so I've never looked into all the specifics of it.)
     
  15. kev

    kev Regular Member

    1,224
    61
    434
    I would like to see a better downloads section. The Downloads II modification is good, but I would like to see something better. Something where I could build a forum, and compete with sites like filefront.
     
  16. Lynne

    Lynne Regular Member

    333
    32
    164
    I decided to just throw this up as a mod at vb.org - View all of a user's Visitor Messages - vBulletin.org Forum It's got the template edits to allow you to input the userid in the form at the bottom of the page.
     
  17. Michael

    Michael Regular Member

    166
    35
    104
    Awesome! Thanks very much.
     

Share This Page