Back to vBulletin 3.0 Add-Ons

ViewPosts -- View unanswered threads, threads you've started, you're own posts etc.
Mod Version: 1.00, by Jordeh

This modification is in the archives.
vB Version: 3.0.1 Rating: (0 vote - 0 average) Installs: 18
Released: 02 Jul 2004 Last Update: Never Downloads: 24
Not Supported  

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>
Replace it with:
Code:
<td id="viewposts" class="vbmenu_control"><a href="#viewposts">$vbphrase[view_posts_nav]</a> <script type="text/javascript"> vbmenu_register("viewposts"); </script></td>
In template navbar find the following:
Code:
</if>
<!-- / NAVBAR POPUP MENUS -->
</if>
Add the following before:
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>
In template search_results find:
Code:
<if condition="$action == 'getnew'">$vbphrase[new_posts_nav]<else />$vbphrase[posts_from_last_day]</if>
Replace it with:
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>
Add the following phrases to the phrase group GLOBAL (phrase name: phrase):
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.

Download

This modification is archived and cannot be downloaded.

Screenshots

 

Similar Mods

Show Thread Enhancements View threads started in postbit vBulletin 3.6 Add-ons
threads I started with new posts in navbar vBulletin 3.5 Add-ons
[Re-release v2.2.0] Combined threads started + percent of total posts, plus more vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024