MyBB Community Forums

Full Version: Using get_unvieable_threads() in global.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on a little modification which displays a text on every page of the forum. I need to use the function get_unviewable_threads() for this mod so I added
$unviewable_threads = get_unviewable_threads();
in the global.php (where doesn't matter for my problem).
After adding I was not able to open any post in the forum (you don't have the permission to view this post...).

Does someone have any clue why the function is not working in global.php?
Moving to the correct forum.
You've made that function yourself ? Cause get_unviewable_threads() doesn't exist.