Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2007, 07:20 PM
lrshelby lrshelby is offline
 
Join Date: Jun 2002
Location: TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Searching for users with a certain number of posts in a period of time?

I have a question regarding user searches. I would like to search for users with a certain number of posts within a given period of time.

In my experience, through the Admin CP I can create a list of members using:
Last Post is After
Last Post is Before
and
Posts are greater than (but this is total posts, not number of posts within the designated period of time)

But this doesn't exactly do what I am looking for. I would like to generate a list of users with a certain number of posts within a given period, such as a minimum of 5 posts between January 1, 2007 and February 28, 2007. Is there a way to do this? Am I misunderstanding how to use the search features in the Admin CP and I actually can do this? Or do I need a separate search query of some sort?

Any help would be appreciated.
RS
Reply With Quote
  #2  
Old 01-30-2007, 02:34 PM
lrshelby lrshelby is offline
 
Join Date: Jun 2002
Location: TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone???
Reply With Quote
  #3  
Old 01-30-2007, 05:54 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can submit a search to vBulletin with a URL, just like you can with the search form. http://www.yourforums/search.php?do=process&query=searchword , where searchword is the word for which you are searching.

Here is a list of the extra search parameters you can add to the URL. When you add a search parameter to the URL you need to add this to the end of the URL:
&variable_name=value
Search field: Search by Key Word

Variable name: titleonly
Values:
  • 0 = Search Entire Posts
  • 1 = Search Titles Only
Search field: Search by User Name

Variable name: searchuser
Values: Enter a username

Variable name: starteronly
Values:
  • 0 = Find Posts by User
  • 1 = Find Threads Started by User
Variable name: exactname
Values:
  • 0 = Partial name
  • 1 = Exact name
Search field: Find Threads with

Variable name: replyless
Values:
  • 0 = At Least
  • 1 = At Most
Variable name: replylimit
Values: Any integer values

Search field: Find Posts from

Variable name: searchdate
Values:
  • 0 = Any Date
  • lastvisit = Your Last Visit
  • 1 = Yesterday
  • 7 = A Week Ago
  • 14 = 2 Weeks Ago
  • 30 = A Month Ago
  • 90 = 3 Months Ago
  • 180 = 6 Months Ago
  • 365 = A Year Ago
Variable name: beforeafter
Values:
  • after = and Newer
  • before = and Older
Search field: Sort Results by

Variable name: sortby
Values:
  • rank = Relevancy
  • title = Title
  • replycount = Number of Replies
  • views = Number of Views
  • threadstart = Thread Start Date
  • lastpost = Last Posting Date
  • postusername = User Name
  • forum = Forum
Variable name: order
Values:
  • descending = in Descending Order
  • ascending = in Ascending Order
Search field: Show Results as

Variable name: showposts
Values:
  • 0 = Show Results as Threads
  • 1 = Show Results as Posts
Search field: Search in Forum(s)

Variable name: forumchoice[]





Values: Do not include this variable in the URL to search all forums. If you want to search specific forums then you need to add an instance for each forumid. For example:
&forumchoice[]=X&forumchoice[]=Y&forumchoice[]=Z
Where X, Y, and Z are the forumids of the forums in which you want to search.

Variable name: childforums
Values:
  • 0 = Do not search in child forums
  • 1 = Also search in child forums
Reply With Quote
  #4  
Old 01-30-2007, 08:10 PM
lrshelby lrshelby is offline
 
Join Date: Jun 2002
Location: TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much for the information. :up: I will experiment and see what I can come up with. Again, thank you.
RS

Automerged Update 01/30/2007
I guess I don't really understand how to string the URL together. I’m getting nothing but HTTP 404 Not Found errors. I can’t even put together a basic search. Maybe I’m lost in the syntax of it all but also, how does vB check for permissions to do these searches. If you’re just typing the url into the browser how does it know if you are allowed to make that search? I’ve tried numerous different possibilities and got nothing but error messages. Can you give me an example?

Also, can you use the same variable twice? In my case I would be looking to use the beforeafter variable twice. Once to specify the after date and the second time to specify the before date.


Automerged Update 10:14am 01/31/2007
Ok, I'm slowly getting things figured out but I need a bit more help.

The information you gave is great because now I realize that I can put together some "canned" forum searches that my users might like but my original goal was to search for users, not a list of threads or posts. So, instead of...

http://www.yourforums/search.php?do=process

I think I need to use...

http://www.yourforums.com/forums/admincp/user.php?do=find

And I guess the answer to my permissions question is that the permissions issues are handled because the search originates from the admincp.

Now, my question is, what are the variables for user searches? You listed all those variables for forum searches but now I need to know what the variables are for user searches so that I can set them properly and get the user list I am looking for. Do you have a list of the variables that you could post?
Reply With Quote
  #5  
Old 02-13-2007, 09:03 PM
lrshelby lrshelby is offline
 
Join Date: Jun 2002
Location: TX
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now, my question is, what are the variables for user searches? You listed all those variables for forum searches but now I need to know what the variables are for user searches so that I can set them properly and attempt to get the user list I am looking for. Do you or anyone have a list of these variables that you could post? Or can anyone tell me where I could get them?
Thanks.
Reply With Quote
  #6  
Old 02-13-2007, 10:09 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm not sure i understand...

Search field: Search by User Name

Variable name: searchuser
Values: Enter a username

Variable name: starteronly
Values:
  • 0 = Find Posts by User
  • 1 = Find Threads Started by User
Variable name: exactname
Values:
  • 0 = Partial name
  • 1 = Exact name
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 01:56 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
  • Page Generation 0.06563 seconds
  • Memory Usage 2,221KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete