My Topics & My Replies in UserCP Menu

Discussion in 'Admin Talk Support & Feedback' started by Tex, Jan 10, 2010.

  1. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    Greetings!

    Small request, but could we have My Topics and My Replies added to the UserCP menu, perhaps under Miscellaneous? I've provided the code below so you should be able to simply paste it into the navbar template where your usercp menu code is.

    HTML:
    <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Topics</a></td></tr>
    
    <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a></td></tr>
    
    Cheers for your consideration! :cheers:
     
  2. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    Sorry, I should mention I was referring to the UserCP drop down menu in the navbar, not the menu on usercp.php

    Cheers!
     
  3. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Sure, I have no problem with this. I have something similar set up on my Linnie Forum, so there's no reason not to do it here as well. :)
     
  4. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Note: In the "My posts" link, I had to change the 0 in &showposts=0 to a 1, so that the results would be displayed as posts instead of threads. ;)
     
  5. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake

    Interesting, I just copied and pasted straight from my navbar template, I better look into this. Thanks so much Nick!!
     
  6. Dan

    Dan Future Proof

    Joined:
    Jul 16, 2009
    Messages:
    368
    Likes Received:
    84
    Location:
    Staffordshire
    First Name:
    Dan
    So the new code would be
    Code:
    <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="search.php?$session[sessionurl]do=process&showposts=1&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Topics</a></td></tr>
    
    <tr><td class="vbmenu_option" align="$stylevar[left]"><a href="search.php?$session[sessionurl]do=process&showposts=1&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a></td></tr> 
    ?
     
    2 people like this.
  7. Tex

    Tex Adept

    Joined:
    Oct 23, 2009
    Messages:
    193
    Likes Received:
    22
    First Name:
    Blake
    That looks right Dan.

    I kept it on 0 though because it's easier to check the thread for latest posts with thread view instead of your post view, plus the members were used to it with 0.
     

Share This Page