Log in

View Full Version : Forumid if statement in standard_error template


Cloud Strife
06-25-2008, 12:22 AM
I tried the usual <if condition="in_array($foruminfo[forumid], array(1,2,3,4))">
But I guess theres no forumid specified in the standard_error template? Could someone let me know of a small plugin or php file edit that would allow me to do this. Its really important I get this working as soon as possible, so any help would be greatly appreciated...

Thanks

Dismounted
06-25-2008, 07:22 AM
standard_error() is only a wrapper for a phrase - it only know the phrase to display and nothing else.

Cloud Strife
06-25-2008, 01:19 PM
I see. Is it possible to get it to display a different error message per forum? Basically instead of a no permission error, for a couple of my forums I want it to display a different error message when users try to open threads that they have no permission to open.

Dismounted
06-26-2008, 07:24 AM
You'll have to see when the message is executed and change it.

Cloud Strife
06-26-2008, 02:03 PM
Yep, thanks, I already figured out a solution to this, by creating a plugin within one of the show thread hooks.