TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,026
  • Total Topics: 21,333
  • Online today: 916
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 386
  • Total: 386

Integrate TP menu with MediaWiki

Started by Tokzu, September 23, 2015, 05:00:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tokzu

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. :)

illori


Tokzu

With SSI.php and the function ssi_menubar().

illori

are there any other menu buttons from other mods missing?

Tokzu

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.

illori

TPassimilate.php

function tpAddMenuItems(&$buttons)
{
global $context, $scripturl, $txt;


after that add
TPortal_init();

Tokzu


illori


This website is proudly hosted on Crocweb Cloud Website Hosting.