Need some coding help. Yumi please help.
walkman Offline
Junior Member
**
Posts: 36
Joined: May 2010
Post: #3
RE: Need some coding help. Yumi please help.
(06-01-2010 12:07 PM)ZiNgA BuRgA Wrote:  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...


It didn''t work. Would be too much if I asked if you could put the whole plugin file together because maybe I am not doing it right?

Thank you very much for making time to help me. I really appreciate it sir Smile
06-02-2010 01:06 AM
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. - walkman - 06-02-2010 01:06 AM

 Standard Tools
Forum Jump: