One thing vb should have!

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

  1. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    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

    Joined:
    May 30, 2003
    Messages:
    1,088
    Likes Received:
    133
    Location:
    Australia
  3. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,444
    Likes Received:
    219
    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

    Joined:
    Aug 19, 2009
    Messages:
    372
    Likes Received:
    8
    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

    Joined:
    Sep 1, 2009
    Messages:
    884
    Likes Received:
    54
    First Name:
    Chani
    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

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    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

    Joined:
    Mar 14, 2009
    Messages:
    342
    Likes Received:
    44
    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

    Joined:
    May 26, 2009
    Messages:
    333
    Likes Received:
    32
    Location:
    Home Sweet Home!
    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

    Joined:
    Jun 7, 2009
    Messages:
    736
    Likes Received:
    12
    Location:
    Campbelltown, New South Wales, Australia
    thanks lynne
     
  10. Michael

    Michael Regular Member

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    Thanks! What is the URL we add "&u=x" to?
     
  11. Lynne

    Lynne Regular Member

    Joined:
    May 26, 2009
    Messages:
    333
    Likes Received:
    32
    Location:
    Home Sweet Home!
    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

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    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

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    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

    Joined:
    May 26, 2009
    Messages:
    333
    Likes Received:
    32
    Location:
    Home Sweet Home!
    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

    Joined:
    Mar 9, 2009
    Messages:
    1,224
    Likes Received:
    61
    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

    Joined:
    May 26, 2009
    Messages:
    333
    Likes Received:
    32
    Location:
    Home Sweet Home!
    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

    Joined:
    Jan 18, 2004
    Messages:
    166
    Likes Received:
    35
    Awesome! Thanks very much.
     

Share This Page