Not Solved Expander
#17
Not Solved
OHHHH I got it, I understand now. (Basically in non php peoples terms for people who encounter this problem in the future, read below)

A plugin will call to the functions it uses from global in it somewhere. It will look similar to this (my situation)

function sb_output_control($page_data)
{
	global $mybb, $templates, $sf_shoutbox, $lang, $theme;

All you need to do is add the $collapsed function so it actually interacts like its supposed to like so:
function sb_output_control($page_data)
{
	global $mybb, $templates, $sf_shoutbox, $lang, $theme, $collapsed;


Thanks a lot G33K you just pushed me to understand the way MyBB is coded a lot more than I did, I assumed that the plugins just picked up everything in global, similar to WordPress, but anywho....Thanks again.
Reply


Messages In This Thread
Expander - by ~Rs - 2010-12-06, 04:31 PM
RE: Expander - by Firestryke31 - 2010-12-06, 06:12 PM
RE: Expander - by ~Rs - 2010-12-06, 08:42 PM
RE: Expander - by Firestryke31 - 2010-12-07, 06:25 PM
RE: Expander - by ~Rs - 2010-12-08, 05:57 PM
RE: Expander - by Firestryke31 - 2010-12-08, 07:03 PM
RE: Expander - by ~Rs - 2010-12-08, 07:26 PM
RE: Expander - by Firestryke31 - 2010-12-08, 10:25 PM
RE: Expander - by - G33K - - 2010-12-08, 11:05 PM
RE: Expander - by ~Rs - 2010-12-08, 11:26 PM
RE: Expander - by steven1022 - 2011-01-27, 04:02 AM
RE: Expander - by - G33K - - 2011-01-27, 09:57 AM
RE: Expander - by steven1022 - 2011-01-29, 11:02 PM
RE: Expander - by - G33K - - 2011-01-31, 11:27 AM
RE: Expander - by steven1022 - 2011-01-31, 07:33 PM
RE: Expander - by - G33K - - 2011-02-01, 12:50 AM
RE: Expander - by steven1022 - 2011-02-01, 11:51 PM
RE: Expander - by Shadowsword - 2011-02-24, 07:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)