Flood Error Message

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Flood Error Message

Post by Exclusive »

Hello, I don't know if this is the right place to post this topic?

I have successfully set a flood/time interval on my forum as follows:

ACP > GENERAL > Board Configuration > Post settings > Flood interval

Now, I want to change the error message in en/language/posting.php

From:

Code: Select all

You cannot make another post so soon after your last. 
To this:

Code: Select all

This forum requires that you wait (the time set in flood interval) between posts. Please try again in (time remaining to after posting time).
I need a code to archive the following:

1. (the time set in flood interval)
2. (time remaining to after posting time)

Example:
time.png
time.png (2.23 KiB) Viewed 958 times
BR,
Exclusive
Last edited by Kailey on Fri Jul 06, 2018 1:32 pm, edited 2 times in total.
Reason: Moved to phpBB Custom Coding
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Flood Error Message

Post by david63 »

Whilst it is fairly simple in theory to do, you will need to have two placeholders in the language variable, the problem is that you will have to modify core code to arrive at the variables that need passing to the language file.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72343
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Flood Error Message

Post by KevC »

Is this to counter spam as you seem to have no registration spam protection at all?
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

david63 wrote: Thu Jul 05, 2018 10:18 am Whilst it is fairly simple in theory to do, you will need to have two placeholders in the language variable, the problem is that you will have to modify core code to arrive at the variables that need passing to the language file.
So how do I go about this?
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

KevC wrote: Thu Jul 05, 2018 10:21 am Is this to counter spam as you seem to have no registration spam protection at all?
How do you mean @KevC?
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Flood Error Message

Post by david63 »

Exclusive wrote: Thu Jul 05, 2018 2:19 pm So how do I go about this?
You will have to write some PHP code in the correct place in the appropriate files and add the template variable via that same file.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72343
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Flood Error Message

Post by KevC »

Your registration page only requires an email address, username and password. There is no captcha or Q&A to stop the registration bots. When they find you, you'll wake up in the morning to find you have 300 new members on the board and they've posted a lot of spam.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

david63 wrote: Thu Jul 05, 2018 2:23 pm
Exclusive wrote: Thu Jul 05, 2018 2:19 pm So how do I go about this?
You will have to write some PHP code in the correct place in the appropriate files and add the template variable via that same file.
To me, your responses are adding no solutions to my questions, if I had known how to do this, I wouldn't have posted for supports!
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

KevC wrote: Thu Jul 05, 2018 2:23 pm Your registration page only requires an email address, username and password. There is no captcha or Q&A to stop the registration bots. When they find you, you'll wake up in the morning to find you have 300 new members on the board and they've posted a lot of spam.
Actually, but users are complaining about the the verification. Thanks, I will include them.
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

If you don't mind, all I need is the code for the time!
Last edited by Mick on Thu Jul 05, 2018 5:55 pm, edited 1 time in total.
Reason: Removed unnecessary quoting.
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Flood Error Message

Post by david63 »

Exclusive wrote: Thu Jul 05, 2018 3:37 pm If you don't mind, all I need is the code for the time!
If you want code writing then you should be asking in the Custom coding forum - not support
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Flood Error Message

Post by Mick »

Exclusive wrote: Fri Jul 06, 2018 9:12 pmi have posted it here(viewtopic.php?f=556&t=2477906) but i received no official support
There is no “official support” in custom coding, the forum description says:

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM

If someone replies and you get the answer you want well good, if you don’t no laws have been broken.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

Alright @Mick, then where can I get official support? :cry:
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Flood Error Message

Post by Mick »

For what exactly, your request in post number one? There is none, it’s your code/idea and if someone helps you all well and good but if they don’t there’s nothing you can do about it. Editing core code is no longer recommended as extensions are designed to take away the need for code editing.

I would suggest in this case you make an extension request.

This is the official line where to post what viewtopic.php?f=556&t=2376856#location
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Exclusive
Registered User
Posts: 676
Joined: Mon Jun 25, 2018 1:33 pm

Re: Flood Error Message

Post by Exclusive »

Please someone should help me achieve this. Any help on this?

***Bump****
Use Search Button to get Instant Results | Follow Forum Rules
Avoid Spams in the forum to prevent banning the offending account. | ⟿ Visit My Awesome phpBB Forum! ⬳

Best Web Hosting with 99.9% Uptime! | ✔ Buy Cheap Domain Names
Post Reply

Return to “phpBB Custom Coding”