Topic: Ban - only in the forums?

I have integrated the forum on my homepage (or the other way around) by including the common.php file in every file of my homepage. Because of this you can be logged in to the whole homepage, but also be banned on the whole homepage! Is there a way to get around this problem so the users are only banned from the forums and not on the other pages?

2

Re: Ban - only in the forums?

Ohhhh I'm integrating the forum on all the website ... it's a good new smile

Re: Ban - only in the forums?

You could define a constant whenever you include common.php from outside the forums and then check if that constant is defined in common.php and run/don't run check_bans() accordingly.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

4

Re: Ban - only in the forums?

Rod wrote:

Ohhhh I'm integrating the forum on all the website ... it's a good new smile

you speak english like a spanish cow rod, arf.

Re: Ban - only in the forums?

Rickard wrote:

You could define a constant whenever you include common.php from outside the forums and then check if that constant is defined in common.php and run/don't run check_bans() accordingly.

ok, thought I had to do something like that! Thank you.