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

Reply
 
Thread Tools
Posts/Threads created by a specific user, since a specific date. Details »»
Posts/Threads created by a specific user, since a specific date.
Version: 1.00, by merk merk is offline
Developer Last Online: Mar 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-10-2002 Last Update: Never Installs: 21
 
No support by the author.

Requested by Shon/Pitman

Version 1.5
  • ADDED: Top posters since a specified date. Works with both thread creation and post creation.
  • Allows you to choose to either search for threads, or posts created since the specified date.
  • Search by username or userid. [Username uses wildcard searching similar(well the same ) to the admin panel for searching for users]
  • Allows you to open/close, merge, delete, edit (all the things available in the Admin Options drop down on the showthread pages) to each thread returned
  • NOTE: The method of specifying time uses phps 'strtotime' function. To get examples on how to use this please visit http://www.php.net/manual/en/function.strtotime.php

Also, this hack has only been slightly tested. If you find bugs, please tell me! This hack has limited support, follow the instrutions step by step and it WILL work.

Installation [list=1][*]Upload the time.php file to your admin directory.[*]Find the following code in admin/index.php (approx line 283 on a new install) :
PHP Code:
 makenavselect("Users"); 
above that, add
PHP Code:
 makenavoption("Time Search","time.php?action=modify"); 
[/list=1]
Note the change to 'Time Search' in the index.php replacement.

Thats it. Simple hey

Screenshots follow (the style in the screenshots in my old admin panel css, it got annoying having that much black ) NOTE: i didnt update the screenshots, theres another box below the main one

Show Your Support

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

Comments
  #12  
Old 05-22-2002, 03:06 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by merk
I cant remember using javascript?

What errors would they be?
When I submit search with default values (Time='-1 week'), i get 'unvalid char' when displaying page.
So, I guessed it was due to client-side script...
:hurt:
Reply With Quote
  #13  
Old 06-20-2002, 03:11 PM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just so some people know... if you don't edit above where you place the Time Search in the index.php, it will show up on the same line... So, here is a better way to describe what to find...


Find:
Code:
makenavoption("Build Mailing List","email.php?action=genlist");
And replace with:
Code:
makenavoption("Build Mailing List","email.php?action=genlist","<br>");
makenavoption("Time Search","time.php?action=modify");
Reply With Quote
  #14  
Old 06-27-2002, 12:57 PM
Derek Derek is offline
 
Join Date: Mar 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error... I am using 2.2.6 and was using 2.2.5 when I posted the above code fix... Is there that big of a difference between the 2 versions? Can you please post a fix or tell me what I did wrong? Below is the DB error I got... The prob is when I put in a username, but it works when I type in a userid.


Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: SELECT userid,username FROM user WHERE 1=1 AND user.userid=Derek ORDER BY username
mysql error: Unknown column 'Derek' in 'where clause'

mysql error number: 1054

Date: Thursday 27th of June 2002 08:44:50 AM
Script: http://forums.koruptsociety.com/admin/time.php
Referer: http://forums.koruptsociety.com/admi...tion=modify&s=
Reply With Quote
  #15  
Old 06-27-2002, 09:30 PM
merk merk is offline
 
Join Date: Nov 2001
Location: Canberra, Australia
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont know how the above error could occur - remember that there is a 'username' and a 'userid' field, and it seems you entered username into userid.

However, to make the error go away(you wont get any results tho) line 193ish

PHP Code:
  elseif ($searchuserid!="") {
          
$condition.=" AND user.userid=$searchuserid";
  } 
replace with

PHP Code:
  elseif ($searchuserid!="") {
          
$condition.=" AND user.userid=\"$searchuserid\"";
  } 
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 04:23 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.04317 seconds
  • Memory Usage 2,252KB
  • Queries Executed 21 (?)
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
  • (4)bbcode_php
  • (1)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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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