vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Limit Attachments Per Time (https://vborg.vbsupport.ru/showthread.php?t=36044)

ExcErr 03-13-2002 01:56 PM

great hack firefly! my friend run it on his board....works great!
but i can't run it on my ftp, don't know why! can't run queries in phpmyadmin, because it gives me error!
can you give(SORRY AGAIN) queries for manual installation??
thx in advance

Admin 03-13-2002 02:05 PM

Just look at the lapt_queries.php file, there are 3 quereis you need to run (all start with "INERT INTO setting").

ExcErr 03-13-2002 02:17 PM

SQL-query:

$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,27,'Maximum Attachments','limitattachnum','0','Set this to the number of attachments one can post in a given time range (which is set in the setting below). Set this to 0 to disable this feature.','','7')")

Answer MySQL:

You have an error in your SQL syntax near '$DB_site->query("INSERT INTO setting (settingid,settinggroupid,title,varname,val' at line 1

back

Admin 03-13-2002 02:24 PM

Code:

INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,27,'Maximum Attachments','limitattachnum','0','Set this to the number of attachments one can post in a given time range (which is set in the setting below). Set this to 0 to disable this feature.','','7')
is the query. The $DB_site->query(" and ") in that line are PHP bits.

ExcErr 03-13-2002 02:43 PM

works perfectly! thx!

Admin 03-26-2002 07:04 AM

Demo...

Thomas P 05-10-2002 05:34 PM

Hi Chen,

thanks for that wonderful, mega-extreme cool hack.
It works perfectly on 2.2.5 and is very handy on my board.

I added my Board Staff member group to the excluded people (array(5,6,7,8)) and allow 2 attachments every 8 hours, size = 2Megs.

Thanks,
-Tom

Boofo 06-09-2002 07:25 AM

I couldn't find the code for either file in the files themselves. The queries ran just fine but I can't finish the hack until I can find the code to replace. :) Anyone have any ideas on this, please? :)

Admin 06-09-2002 07:26 AM

What version are you running?

Boofo 06-09-2002 07:31 AM

I'm running version 2.2.5 :)

Quote:

Originally posted by FireFly
What version are you running?


All times are GMT. The time now is 01:45 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.01051 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete