you need move this lines:
// Add meta box to post screen
add_meta_box( 'leaguemanager', __('Match-Report','leaguemanager'), array(&$this, 'addMetaBox'), 'post');
from function __construct() in admin.php
to function menu() in same file.
Enjoy 🙂
Thread Starter
dukens
(@dukens)
you need move this lines:
// Add meta box to post screen
add_meta_box( ‘leaguemanager’, __(‘Match-Report’,’leaguemanager’), array(&$this, ‘addMetaBox’), ‘post’);
from function __construct() in admin.php
to function menu() in same file.
Enjoy 🙂
Thanks a lot! Excellent, I can now use this for my team. 🙂
I tried this, but did first of all not find the phrase under function __construct(). I then copied it out from here and inserted it directly after “function menu(){“.
I’m getting closer, the tab is back again on the edit-window but tells me “Warning: call_user_func() expects parameter 1 to be a valid callback, class ‘ProjectManagerAdminPanel’ does not have a method ‘addMetaBox’ in /home/unterkla/www/scw.unterklassig.ch/wordpress/wp-admin/includes/template.php on line 958”
Can anybody help me?
could you fix it? I could, so I can send you the file by email if you are having the problem
Hi Guillermo
No, I have not been able to, would be great to get the file from you. Please send it to mail@scweinfelden.ch
best regards
Andi
I tried the fix from vitalyc but didn´t work, the report link doesn´t show. Here´s my website: http://www.battlefield3chile.com
Version of Leaguemanaguer 3.8
Version of Wp: 3.4.2
Any ideas?