2012-03-29, 03:28 AM
I working on a plugin and i have a few questions.
I have the code to redirect to another area (login area)
I take forums by id and usergroups by id.
The usergroups works fine, but when i have to go and take the forum id it does not work, i have four options on plugin.
1.- Forums by id where the mod works
2.- Groups id for users who does not view content and redirect to login page (this works fine)
3.- Time to redirect to another page
4.- What page is taken for redirection.
Only the forums by id not works, i take the hook
forumdisplay_thread
and on that way declare on global the var $forum
and i put a conditional like usergroups with the data
$forum['id']
But still not works, if i have a forum with the id on array this value make a response, but i have no idea how to. If someone has any idea i apreciate it.
Thanks in advice.
I have the code to redirect to another area (login area)
I take forums by id and usergroups by id.
The usergroups works fine, but when i have to go and take the forum id it does not work, i have four options on plugin.
1.- Forums by id where the mod works
2.- Groups id for users who does not view content and redirect to login page (this works fine)
3.- Time to redirect to another page
4.- What page is taken for redirection.
Only the forums by id not works, i take the hook
forumdisplay_thread
and on that way declare on global the var $forum
and i put a conditional like usergroups with the data
$forum['id']
But still not works, if i have a forum with the id on array this value make a response, but i have no idea how to. If someone has any idea i apreciate it.
Thanks in advice.