vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Editing the floodcheck message (https://vborg.vbsupport.ru/showthread.php?t=55695)

MaDCaT75 07-28-2003 10:59 PM

Editing the floodcheck message
 
How would I edit this message here:

Sorry! The administrator has specified that users can only post one message every $vboptions[floodchecktime] seconds.

So that it would generate random sayings such as:

Sorry! The administrator has specified that you may "give us a piece of your mind" every $vboptions[floodchecktime] seconds.

or do another random message like:

Sorry! The administrator has specified that you may "spew forth your knowlege" every $vboptions[floodchecktime] seconds.

Thanks for your help in advance.

mx3 07-29-2003 11:03 AM

Hmm....I'll see what i can do. :)

Edit global.php

find

PHP Code:

?> 

add above

PHP Code:

// Random flood check message
$floodcheckrandom=rand(1,2);
if(
$floodcheckrandom=1){
$fcm="post a message";
} else {
$fcm="share their novel ideas";
}
// End random flood check message 

Then edit the template and replace the entire template with:

Sorry! The administrator has specified that users may $fcm every $vboptions[floodchecktime] seconds.

All done. I think.

NTLDR 07-29-2003 12:15 PM

As mentioned numerous times already vB3 Hacks are NOT allowed.

mx3 07-29-2003 12:29 PM

I don't think this is a vB3 hack...
what i did was for vb2....

NTLDR 07-29-2003 12:30 PM

Since when has the $vboptions array been in vB2? :rolleyes:

Anyway the origional request was for vB3 and should require no hacking to achive anyway.

mx3 07-29-2003 12:39 PM

Heh...i guess i'm not as good with vB as i thought...
Sorry. :)


All times are GMT. The time now is 10:00 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.00946 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete