miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Redirect 'You are not allowed to perform this action' alert to to Registration

Author maldoror_x
#1 | Posted: 20 Oct 2008 08:23 
hi there,

I have a minibb forum with forums only for members (guests or anonymous users cant post), working fine.

But i would like to whenever a guest try to post and after clicking ok on the default message box error, the forum redirects to Forums Member Registration Page.

It is possible?

thanks for the attention

Nuno Maldoror_x
OPorto - Portugal

Author Paul
Lead Developer
#2 | Posted: 21 Oct 2008 03:24 
Sorry, the question is not understood. What kind of "default message box error" do you mean?

Author maldoror_x
#3 | Posted: 21 Oct 2008 03:59 
let's see... after the guest user try to post a topic or post a message, appears a message box with the default message 'You are not allowed to perform this action.' (defined in $l_forbidden)...

Well i need to know if its possible, after the appearing of this message, the forum redirects to the registing page, instead staying in the same page.

Nuno Maldoror_x
Oporto - Portugal

Author Paul
Lead Developer
#4 | Posted: 21 Oct 2008 06:22 | Edited by: Paul 
First, you shall no there is nothing impossible in this world ;-)

However in your case, to achieve only that would be a big work, because this JavaScript alert is used in some other cases as well. Earlier I explained the case in the related thread.

Basically, this alert is generated under form.js -> submitForm() function. As you may see there are many conditions which lead to the same result, and not all are related to users guest status. If you are powerful enough to re-code it to make the different result appear only for your private case, you have a go.

Specific miniBB Support Forums / Specific / Redirect 'You are not allowed to perform this action' alert to to Registration Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB