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
Limit # of searches possible at once Details »»
Limit # of searches possible at once
Version: 1.00, by Neo Neo is offline
Developer Last Online: Dec 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-05-2002 Last Update: Never Installs: 2
 
No support by the author.

just could not wait, but yet another hack reguest filled by Neo(tm)...... the link: https://vborg.vbsupport.ru/showthrea...threadid=35583

Ok kids... this is a big hack... not for people that only want to install a hack in 5 mins... the instruction file tells all.... let me repate and say this.... this is a big hack to your search.php so back it up before you do anything to it... cuz I wont trouble shoot that at all....

this has a admin cp to change the amount of searches possible at once... and it works pretty well on my vb... as you can in my images...

User Thing:


Admin Thing:



and here is the file..... BOOOOOOOOOOOOOOOM! *smoke raises and Neo falls on his ass*

Updated.

Show Your Support

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

Comments
  #2  
Old 03-06-2002, 10:41 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not use a setting in the setting table, so you don't need another field / file?
Reply With Quote
  #3  
Old 03-06-2002, 10:46 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ohh good point. I never knew about that.
Reply With Quote
  #4  
Old 03-06-2002, 10:56 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh and what's the point in the Admin thing if you have this in your code?
Code:
if ($userssearch>=5) {
Reply With Quote
  #5  
Old 03-06-2002, 10:59 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have hardcoded values in your code

PHP Code:
if ($userssearch>=5) { 
also why not simply add it to the settings table, that would be like one query and would save people having to upload a file.
Reply With Quote
  #6  
Old 03-06-2002, 11:00 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

errrr... hold on a sec I ziped the wrong file.
Reply With Quote
  #7  
Old 03-06-2002, 11:00 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

damn chen got there first lol
Reply With Quote
  #8  
Old 03-06-2002, 12:51 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shiznit!

The only part I'm worried about is if it's possible for a user to shut down their browser or crash or something and have their flag stuck at "1" ? Have you had any flags accumulate stuck at "1" yet?

AWESOME request filled, thanks neo... Since I'm the requestor I will definitely try it out and let you know about things getting stuck or how many complaints I get about it Should be a big help for big sites.

I haven't installed it yet, but I see this in the code:

PHP Code:
$usdbamt mysql_query("SELECT varname FROM setting WHERE varname='ups'");
$usdbamt_query mysql_fetch_row($usdbamt);
$userssearchamt $usdbamt_query[0
It's missing the semi-colon at the end of the last line.. but really you don't need these lines at all. When you put something into the setting table, it is automatically loaded with every page. All you have to do is reference the name of the variable "$ups" and it will be there without that extra query.
Reply With Quote
  #9  
Old 03-06-2002, 04:41 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow
Shiznit!

The only part I'm worried about is if it's possible for a user to shut down their browser or crash or something and have their flag stuck at "1" ? Have you had any flags accumulate stuck at "1" yet?

AWESOME request filled, thanks neo... Since I'm the requestor I will definitely try it out and let you know about things getting stuck or how many complaints I get about it Should be a big help for big sites.

I haven't installed it yet, but I see this in the code:

PHP Code:
$usdbamt mysql_query("SELECT varname FROM setting WHERE varname='ups'");
$usdbamt_query mysql_fetch_row($usdbamt);
$userssearchamt $usdbamt_query[0
It's missing the semi-colon at the end of the last line.. but really you don't need these lines at all. When you put something into the setting table, it is automatically loaded with every page. All you have to do is reference the name of the variable "$ups" and it will be there without that extra query.
Once I finished making it I didnt have any flags stuck as I know of. But if you find any, feel free to tell me.

Usually when I cute and paste code I either leave the $ or the ; out.... I am not to careful about that, and I never knew about the settings that for the info. I will update it right away.
Reply With Quote
  #10  
Old 03-06-2002, 04:48 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw neo you should use vBulletins database class this is just an example cause $ups will have the value as you now know.

PHP Code:
$usdbamt_query $DB_site->query_first("SELECT varname FROM setting WHERE varname='ups'");
$userssearchamt $usdbamt_query[0]; 
this allows you to have nice error reporting, just you will have to remember to globalize $DB_site in any function which accesses the database.
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 03:05 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.08662 seconds
  • Memory Usage 2,306KB
  • 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
  • (1)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
  • (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