Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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.
Version: 1.00, by Jordeh Jordeh is offline
Developer Last Online: Nov 2004 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 07-01-2004 Last Update: Never Installs: 18
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-01-2004, 10:58 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack, Thanks for sharing it with the community...will install it
Reply With Quote
  #3  
Old 07-01-2004, 11:22 PM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea! I'll install it soon
Reply With Quote
  #4  
Old 07-01-2004, 11:24 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I notice you said: If you have it enabled. . . I followed youinstructions but nothinghappened. Do i have to enable it somewhere?
Reply With Quote
  #5  
Old 07-01-2004, 11:53 PM
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Location: Glasgow
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oooh thats a nice wee hack that thnx
Reply With Quote
  #6  
Old 07-02-2004, 12:26 AM
Tradjick Tradjick is offline
 
Join Date: Jan 2004
Posts: 219
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn good idea! Thanks for sharing it!
Reply With Quote
  #7  
Old 07-02-2004, 09:35 AM
Jordeh's Avatar
Jordeh Jordeh is offline
 
Join Date: May 2004
Location: Netherlands
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ryancooper
I notice you said: If you have it enabled. . . I followed youinstructions but nothinghappened. Do i have to enable it somewhere?
Well, you have to have search enabled for starters. Also you have to be able to see the other popup menus (like search, quick links) otherwise you'll just see a New Posts button.
Reply With Quote
  #8  
Old 07-02-2004, 12:12 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jordeh
Well, you have to have search enabled for starters. Also you have to be able to see the other popup menus (like search, quick links) otherwise you'll just see a New Posts button.
I have both enabled but the drop down box does not show? Any Ideas what could be worng.
Reply With Quote
  #9  
Old 07-02-2004, 12:52 PM
Jordeh's Avatar
Jordeh Jordeh is offline
 
Join Date: May 2004
Location: Netherlands
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ryancooper
I have both enabled but the drop down box does not show? Any Ideas what could be worng.
That's strange, I just registered to your site and didn't see it either. Are you 100% sure you made the template modifications in the navbar template? If you are, could you please pm me the contents of your navbar template, then I can look into it.
Reply With Quote
  #10  
Old 07-02-2004, 03:13 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jordeh
That's strange, I just registered to your site and didn't see it either. Are you 100% sure you made the template modifications in the navbar template? If you are, could you please pm me the contents of your navbar template, then I can look into it.
Will Do thanks a million!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05010 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete