MyBB Community Forums

Full Version: [solved]need help calling thread['fid'] in global.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all..
I tryed to much to do it my salf but no luck..

what am trying to is.
adding an var that well be parsed in the whole pages (header template)
except some fid, and thread['fid']
as example in globale.php
I used the following
if($mybb->input['fid'] !=43 && $mybb->input['fid'] !=46 && $thread['fid'] != 43 && $thread['fid'] != 46){
$my_data = "anything";
}
else{
$my_data = "no_thing";
}
the code working in forumdisplay pages with no probelms.. but the exception not applyed to the showthread pages
and I need to do the same with $thread['fid'] !=x
but it's not working..
shortly,, what am trying to do is adding a variable in the global.php after $plugins->run_hooks("global_start");
this var should replaced with some html codes in all the forum pages
execpt some fids and it's threads
as example the code should be replaced with "" in fid 10 and all the threads in this fid..
so any help?
EDIT: the problem solved all the credits back for k776 thanks mate Smile