![]() |
ViewPosts -- View unanswered threads, threads you've started, you're own posts etc.
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> Code:
<!-- view posts menu --> Code:
<if condition="$action == 'getnew'">$vbphrase[new_posts_nav]<else />$vbphrase[posts_from_last_day]</if> Code:
<if condition="$action == 'getnew'"> 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. |
Nice Hack, Thanks for sharing it with the community...will install it
|
Great idea! I'll install it soon
|
I notice you said: If you have it enabled. . . I followed youinstructions but nothinghappened. Do i have to enable it somewhere?
|
oooh thats a nice wee hack that :D thnx
|
Damn good idea! Thanks for sharing it! :)
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Any chance you can make a "View New Posts from Subscribed Forums Only?"
|
yeh view subscribed posts is a good one :P
|
Nice hack,, I will probably install it later :)
|
Quote:
|
Quote:
|
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] |
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.
|
Hello, is this mod working fine with 3.6.4-5?
|
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 |
does this work with 3.8.1?
|
All times are GMT. The time now is 06:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|