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: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Flood Error Message

Post by Exclusive » Thu Jul 05, 2018 10:06 am

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 537 times
BR,
Exclusive
Last edited by kinerity 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 Website!

User avatar
david63
Jr. Extension Validator
Posts: 14726
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Flood Error Message

Post by david63 » 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.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68309
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Flood Error Message

Post by KevC » Thu Jul 05, 2018 10:21 am

Is this to counter spam as you seem to have no registration spam protection at all?
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
Exclusive
Registered User
Posts: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Flood Error Message

Post by Exclusive » Thu Jul 05, 2018 2:19 pm

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 Website!

User avatar
Exclusive
Registered User
Posts: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Flood Error Message

Post by Exclusive » Thu Jul 05, 2018 2:20 pm

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 Website!

User avatar
david63
Jr. Extension Validator
Posts: 14726
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Flood Error Message

Post by david63 » 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.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68309
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Flood Error Message

Post by KevC » 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.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

User avatar
Exclusive
Registered User
Posts: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Flood Error Message

Post by Exclusive » Thu Jul 05, 2018 3:13 pm

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 Website!

User avatar
Exclusive
Registered User
Posts: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Flood Error Message

Post by Exclusive » Thu Jul 05, 2018 3:15 pm

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 Website!

User avatar
Exclusive
Registered User
Posts: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Flood Error Message

Post by Exclusive » Thu Jul 05, 2018 3:37 pm

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 Website!

User avatar
david63
Jr. Extension Validator
Posts: 14726
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Flood Error Message

Post by david63 » Thu Jul 05, 2018 4:31 pm

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!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20112
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Flood Error Message

Post by Mick » Sat Jul 07, 2018 6:46 am

Exclusive wrote:
Fri Jul 06, 2018 9:12 pm
i 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

There are no ‘threads’ in phpBB, they are topics.

User avatar
Exclusive
Registered User
Posts: 96
Joined: Mon Jun 25, 2018 1:33 pm
Contact:

Re: Flood Error Message

Post by Exclusive » Sat Jul 07, 2018 7:12 am

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 Website!

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20112
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Flood Error Message

Post by Mick » Sat Jul 07, 2018 7:21 am

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

There are no ‘threads’ in phpBB, they are topics.

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: Mannix_ and 3 guests