TinyPortal
Development => Support => Topic started by: Tokzu on September 23, 2015, 05:00:14 AM
Hi~
I've integrated MediaWiki (v1.25.2) with my forum (v2.11) using the AuthSMF extension plus I've adapted the MW skin for it looks identical to my SMF theme using SSI.php to integrate it.
The problem is the menus added by TP (such like "Forum" and "TP Admin" buttons) aren't displayed.
I searched in the code and the problem was the variable $context['TPortal'] wasn't defined. I tried adding it manually and calling TPortal_init() but the menu is still missing the TP buttons. Help!! :'( And thanks. :)
how are you adding your menu?
With SSI.php and the function ssi_menubar().
are there any other menu buttons from other mods missing?
No, only the TP buttons.
Sorry, I forgot put my web URL and the wiki:
hxxp://www.kaero-webs.com
hxxp://wiki.kaero-webs.com/
The "Products" and "Downloads" menus are added by mods and when you visit the wiki they are displayed, but the "Forum" and "TP admin" menus not.
TPassimilate.php
function tpAddMenuItems(&$buttons)
{
global $context, $scripturl, $txt;
after that add
TPortal_init();
It works!!! Thanks ;)
you are welcome.