Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Show Only Selected User's Posts Details »»
Show Only Selected User's Posts
Version: 1.1, by Parker Clack Parker Clack is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-27-2006 Last Update: 07-14-2006 Installs: 18
Uses Plugins Template Edits
 
No support by the author.

Description and Usage

This feature allows you to view all posts made by a user in a single thread. This feature is accessed by clicking on the any reply number in a thread listing on the fourmdisplay page. The Who Posted popup will be displayed. Click on the Posts number associated with the username and you will be shown only those posts by that username in a particular thread.

I am using version 3.5.4 and it works well with it.

Download the .zip file and follow the installation instructions.

Show Your Support

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

Comments
  #2  
Old 05-28-2006, 05:32 AM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First post

Thanks i need this !!!
Reply With Quote
  #3  
Old 05-28-2006, 08:16 AM
Ajavas's Avatar
Ajavas Ajavas is offline
 
Join Date: Aug 2004
Location: The Netherlands
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and it works fine on 3.5.4 :bunny:
Reply With Quote
  #4  
Old 05-28-2006, 04:27 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad to hear it is working. My members were really wanting this as we had it with version 2.xx. Gaming Force did all the original code I was just able to figure out how to port it over to 3.5.4.

Parker
Reply With Quote
  #5  
Old 05-28-2006, 09:28 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have found a problem in that if a member has several posts in a thread and the number of posts exceeds the max thread view and you go to the next page via the pagenav you will get everyone else in the thread too.

So it will only display the first page of the posts by a particular user.

Anyone have any ideas on how write this to show only the posts by the user over each page you go to? The earliest version of this hack was written by bira for 2.xx and they was written as a separate .php file outside of the showthread page.
Reply With Quote
  #6  
Old 05-28-2006, 09:33 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those edits to showthread.php should not be necessary - you can alter the sql via plugins.
Reply With Quote
  #7  
Old 05-29-2006, 02:28 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul:

I am not a coder and would appreciate your input into how alter the sql via plugins. Also, if you could look over the sql so that when you click on a number in the Who Posted popup so if the posts are a large number that all of the posts by that member are the only ones that are shown with each page via the pagnav I would appreciate it. Right now it only shows you their posts up to the threadmax limit.

Thanks
Reply With Quote
  #8  
Old 05-30-2006, 02:30 PM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have updated the .zip to inlcude the following. I have added another change to the showthread.php file.

In showthread.php look for

Code:
DEVDEBUG("First Post: $FIRSTPOSTID; Last Post: $LASTPOSTID");

	$pagenav = construct_page_nav($vbulletin->GPC['pagenumber'], $perpage, $totalposts, "showthread.php?" . $vbulletin->session->vars['sessionurl'] . "t=$threadid", ""
		. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage" : "")
		. "$highlightwords"
	);
and change this to

Code:
	DEVDEBUG("First Post: $FIRSTPOSTID; Last Post: $LASTPOSTID");

          $onlybyuserid == $post['userid'];
         
          if ($onlybyuserid != 0) {

	$pagenav = construct_page_nav($vbulletin->GPC['pagenumber'], $perpage, $totalposts, "showthread.php?" . $vbulletin->session->vars['sessionurl'] . "t=$threadid&onlybyuserid=$onlybyuserid", ""
		. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage" : "")
		. "$highlightwords"
	);
         } else {
        
	$pagenav = construct_page_nav($vbulletin->GPC['pagenumber'], $perpage, $totalposts, "showthread.php?" . $vbulletin->session->vars['sessionurl'] . "t=$threadid", ""
		. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage" : "")
		. "$highlightwords"
	);
        }
If anyone can write this as the other changes I have to showthread.php as a plugin I would appreciate it.

Thanks,
Parker
Reply With Quote
  #9  
Old 07-15-2006, 10:08 AM
Bigblah Bigblah is offline
 
Join Date: Mar 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there, I'm a new admin on Gamingforce (whose head admin did the original code for this mod, apparently), and I came across this thread while looking to *ahem* re-implement this feature on our forums -- so thanks for your work on the port

I'm using the hook location showthread_query_postids instead of showthread_post_start, and the plugin code is as follows:
PHP Code:
$onlybyuserid trim($_GET['onlybyuserid']);
$onlybyuserid = ($onlybyuserid 1); // Security
$onlybyuserid = ($onlybyuserid 1); // Security
if ($onlybyuserid 0) {
    
$hook_query_where "AND post.userid = '$onlybyuserid'";
    
$highlightwords .= "&onlybyuserid=$onlybyuserid";

With this, no changes to showthread.php are needed. And yes, I'm hijacking the $highlightwords variable

Tested it and it seems to work fine. This is my first time working with hooks and plugins, so please bear with me if there are any mistakes.
Reply With Quote
  #10  
Old 07-15-2006, 11:41 AM
Parker Clack Parker Clack is offline
 
Join Date: Oct 2001
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bigblah:

Works great. Thanks.

I will modify my .zip file.
Reply With Quote
Reply

Thread Tools

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:01 PM.


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.05307 seconds
  • Memory Usage 2,290KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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