Need some coding help. Yumi please help.
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Need some coding help. Yumi please help.
I haven't tried it, but it looks like it should work on MyBB 1.4.  Can't say anything about 1.5/1.6 as they may make that variable private.

There's a number of alternatives:
  • If you don't need it right after everything else, you can hook admin_formcontainer_output_row instead.
  • You might want to consider adding a single checkbox to the Miscellaneous row instead of adding a completely new row (still hook admin_formcontainer_output_row).
  • Use a convoluted solution that I did for getting the XThreads options to appear where I want (I suggest against this though).

Also note that you'll probably also want to add the checkbox for the add group page as well.

Hope that helps.

EDIT: it seems it is private.  Oh well, this elaborate hack will get around it...

PHP Code:
1
2
3
4
5
6
7
if($mybb->version_code >= 1500) {
 $fc = (array)$forum_container;
 $fctitle = $fc["\0".get_class($forum_container)."\0".'_title'];
 unset($fc);
} else $fctitle = $forum_container->_title;

if($fctitle == $lang->misc) ...

Sorry have to go right now, so it may be wrong - just need to double check on that...


My Blog
(This post was last modified: 06-01-2010 12:18 PM by ZiNgA BuRgA.)
06-01-2010 12:07 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Need some coding help. Yumi please help. - ZiNgA BuRgA - 06-01-2010 12:07 PM

 Standard Tools
Forum Jump: