The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
ViewPosts -- View unanswered threads, threads you've started, you're own posts etc. Details »» | |||||||||||||||||||||||||||
ViewPosts -- View unanswered threads, threads you've started, you're own posts etc.
Developer Last Online: Nov 2004
This is my first hack ever, I hope everything goes well. I called it ViewPosts.
Latest version: 1.0 What does it do?: It replaces the 'New Posts' button in the navigation bar with a popup menu (for those that have it enabled) containing extra functionality to search for threads or posts with one click of a button. What are these new functions?: - Your Posts -- This will return a list of all of your own posts, call it an ego search. - Unanswered Threads -- This will give you a list of all those threads that have 0 replies. Could be useful for support forums. - Threads you've started -- A list of threads you've created. Made a thread last night and it's all the way at page 6 at a fast moving forum? In that case, this would be really useful. Install Instructions: Installing is easy, it only takes a couple of template modifications and a few new phrases. There's also a file you need to upload in your forum root directory, it's called viewposts.php (attached). Template modifications: In template navbar find the first occurrence of: Code:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> Code:
<td id="viewposts" class="vbmenu_control"><a href="#viewposts">$vbphrase[view_posts_nav]</a> <script type="text/javascript"> vbmenu_register("viewposts"); </script></td> Code:
</if> <!-- / NAVBAR POPUP MENUS --> </if> Code:
<!-- view posts menu --> <div class="vbmenu_popup" id="viewposts_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">$vbphrase[view_posts_nav]</td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&userid=$bbuserinfo[userid]">$vbphrase[your_posts_nav]</a></td></tr> <tr><td class="vbmenu_option"><a href="viewposts.php?$session[sessionurl]do=getunanswered">$vbphrase[unanswered_posts_nav]</a></td></tr> <tr><td class="vbmenu_option"><a href="viewposts.php?$session[sessionurl]do=getownthreads">$vbphrase[own_threads_nav]</a></td></tr> </table> </div> Code:
<if condition="$action == 'getnew'">$vbphrase[new_posts_nav]<else />$vbphrase[posts_from_last_day]</if> Code:
<if condition="$action == 'getnew'"> $vbphrase[new_posts_nav] <else /> <if condition="$action == 'getunanswered'"> $vbphrase[unanswered_posts_nav] <else /> <if condition="$action == 'getownthreads'"> $vbphrase[own_threads_nav] <else /> $vbphrase[posts_from_last_day] </if> </if> </if> your_posts_nav: Your Posts view_posts_nav: View Posts unanswered_posts_nav: Unanswered Threads own_threads_nav: Threads you've started Works like a charm on 3.0.1, I think it'll work on 3.0.0 too but haven't tested this myself. Show Your Support
|
Comments |
#12
|
|||
|
|||
Any chance you can make a "View New Posts from Subscribed Forums Only?"
|
#13
|
||||
|
||||
yeh view subscribed posts is a good one :P
|
#14
|
||||
|
||||
Nice hack,, I will probably install it later
|
#15
|
||||
|
||||
Quote:
|
#16
|
|||
|
|||
Quote:
|
#17
|
||||
|
||||
This is a cool idea for a hack, Jordeh, but unless it does something I'm not aware of I think the viewposts.php is unnecessary. The search.php can be used to find your threads and unanswered threads like so:
Unanswered Threads: Code:
search.php?do=process&replyless=1&replylimit=0&dontcache=1 Code:
search.php?do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username] |
#18
|
||||
|
||||
Wow you're absolutely right. I wonder why I didn't think of that haha. I'll fix this in the next version along with the subscribed forum thing.
|
#19
|
||||
|
||||
Hello, is this mod working fine with 3.6.4-5?
|
#20
|
|||
|
|||
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/mikesper/public_html/forums/includes/adminfunctions_template.php(3596) : eval()'d code on line 222
I NEED HELP Someone help I was adding this |
#21
|
|||
|
|||
does this work with 3.8.1?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|