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
  #12  
Old 07-02-2004, 04:14 PM
ragintajin ragintajin is offline
 
Join Date: Sep 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance you can make a "View New Posts from Subscribed Forums Only?"
Reply With Quote
  #13  
Old 07-02-2004, 04:53 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeh view subscribed posts is a good one :P
Reply With Quote
  #14  
Old 07-02-2004, 09:20 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack,, I will probably install it later
Reply With Quote
  #15  
Old 07-03-2004, 01:18 PM
Jordeh's Avatar
Jordeh Jordeh is offline
 
Join Date: May 2004
Location: Netherlands
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ragintajin
Any chance you can make a "View New Posts from Subscribed Forums Only?"
I would, but that's already in the User CP right? That's where you see a list of new subscribed threads.
Reply With Quote
  #16  
Old 07-05-2004, 04:47 PM
ragintajin ragintajin is offline
 
Join Date: Sep 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jordeh
I would, but that's already in the User CP right? That's where you see a list of new subscribed threads.
There's a slight difference...you're talking about subscribed threads (threads that you started / replied to / manually subscribed to). I'm talking about subscribing to a forum.
Reply With Quote
  #17  
Old 07-05-2004, 04:53 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Threads you've started:
Code:
search.php?do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]
Unfortunately without the need for that file, this hack is really a template mod.
Reply With Quote
  #18  
Old 07-06-2004, 10:49 AM
Jordeh's Avatar
Jordeh Jordeh is offline
 
Join Date: May 2004
Location: Netherlands
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 03-06-2007, 07:41 PM
solinarius's Avatar
solinarius solinarius is offline
 
Join Date: Feb 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, is this mod working fine with 3.6.4-5?
Reply With Quote
  #20  
Old 08-30-2007, 06:23 PM
HotRodGyrl HotRodGyrl is offline
 
Join Date: Jun 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 03-12-2009, 08:07 PM
beyondflassh beyondflassh is offline
 
Join Date: Mar 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work with 3.8.1?
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 09:06 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.07184 seconds
  • Memory Usage 2,309KB
  • Queries Executed 27 (?)
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
  • (8)bbcode_code
  • (2)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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