![]() |
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:
|
All times are GMT. The time now is 07:47 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:
|