show newthread or newreply button in hack
Hi,
I have this situation where the hack need to check if the user can post new thread or new reply depending on the displayed page. So on forums page the new thread button will be shown and on the thread page the new reply button will be show. With forcing the permissions of the forum or the user. Like if the forums does not allow post the new thread button shouldn't be displayed.
like this code in a plugin
if(allow new post)// What it should be written here-the condition
{
//do this
}else if (allow new reply)// What it should be written here
{
//do other thing
}
Regards,
|