Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding 'quick search' fucnctions to the admin CP Details »»
Adding 'quick search' fucnctions to the admin CP
Version: , by SemperFidelis SemperFidelis is offline
Developer Last Online: Feb 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-25-2003 Last Update: Never Installs: 0
 
No support by the author.

Ok
Ive played around with this a bit now.
And Ive got a couple of questions.

1.
How do I get this code to actually return the templates searched for rather than the "Thats All Folks" message ?
PHP Code:
// Additional Quick Searches
doformheader('template''get');
makehiddencode('action''modify');
makehiddencode('group''all');
makehiddencode('s'$session[sessionhash]);
maketableheader('User Tools');
makelabelcode('Quick Template Finder:''<input type="text" name="name" size="23"> <span id="submitrow"><input type="submit" value=" Go "></span>');
dotablefooter(); 
2.
How do I incorporate my code above (once fixed) into this so it displays correctly just below the quick user search ?
PHP Code:
$onlineusers '<b>' number_format($getmembers $getguests) . '</b> (' $members ' and ' $guests ')';

doformheader('user''find');
makehiddencode('action''find');
makehiddencode('s'$session[sessionhash]);
maketableheader('User Tools');
makelabelcode('Quick User Finder:''<input type="text" name="ausername" size="23"> <span id="submitrow"><input type="submit" value=" Go "></span>');
makelabelcode('Useful Links:''<select onchange="jumpto(this.options[this.selectedIndex].value)">' .
              
'<option>&raquo; Select link...</option>' .
              
'<option value="http://www.vbulletin.com/">vBulletin Home Page</option>' .
              
'<option value="http://www.vbulletin.com/members/">vBulletin Members Area</option>' .
              
'<option value="http://www.vbulletin.com/forum/">vBulletin Support Forums</option>' .
              
'<option value="http://www.vbulletin.com/manual/">vBulletin Online Manual</option>' .
              
'<option>--------------------</option>' .
              
'<option value="http://www.php.net/">PHP Home Page</option>' .
              
'<option value="http://www.php.net/manual/">PHP Online Manual</option>' .
              
'<option value="http://www.mysql.com/">MySQL Home Page</option>' .
              
'<option value="http://www.mysql.com/documentation/">MySQL Documentation</option></select>');
maketableheader('Site Statistics');
makelabelcode('Online Users:'$onlineusers); 

All the above refers to code in /admin/index.php
I am also thinking of adding other quick search options in a similar way.

Before I continue, I just want to learn if Im going about it the right way or not.
Any assistance would be greatly appreciated.

Show Your Support

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

Comments
  #2  
Old 01-26-2003, 08:53 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best way to learn is to look at adminfunctions.php for each function you see listed above, in your code.
In this way, you can understand better how to change the code.
You can also look at my hack, admin stats. Check my profile.
Reply With Quote
  #3  
Old 01-27-2003, 12:39 PM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Teck, thanks for the time you have taken to reply to my question.

I have looked at adminfunctions.php and I already have installed your adminstats hack (I thought you would have recognised the code I posted above actually).

And the code above is what I came up with.

The only problem is that it appears to do the search, but doesnt display the actual template I was searching for


I assume there is just a simple error with the code, hence why I asked here for some assistance.
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 06:46 PM.


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.03483 seconds
  • Memory Usage 2,225KB
  • Queries Executed 16 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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