miniBB ®®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Specific miniBB Community Forum / Specific /

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

 
maldoror_x
Forums Member
#1 | Posted: 20 Oct 2008 08:23
Reply 
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
Paul
CEO
#2 | Posted: 21 Oct 2008 03:24
Reply 
Sorry, the question is not understood. What kind of "default message box error" do you mean?
maldoror_x
Forums Member
#3 | Posted: 21 Oct 2008 03:59
Reply 
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
Paul
CEO
#4 | Posted: 21 Oct 2008 06:22 | Edited by: Paul
Reply 
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.
 
Your Reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 47
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®