Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
TDBF Posted August 24, 2021 Posted August 24, 2021 Followed the instructions of adding an item to the ModCP: class _adminignores { /** * Returns the primary tab key for the navigation bar * * @return string|null */ public function getTab() { return 'adminignores'; } /** * Manage * * @return void */ public function manage() { return 'Test'; } } I also added the 'modcp_' language definition: $lang = array ( 'modcp_adminignores' => 'Admin Ignores', }; However, I am getting the following error: IPS\Http\Url\Exception: INVALID_SEO_TEMPLATE (0) #0 E:\wamp64\www\***.6\init.php(902) : eval()'d code(169): IPS\Http\Url\_Friendly::buildFriendlyUrlComponentFromData('app=core&module...', 'modcp_adminigno...', Array) What am I missing here?
TDBF Posted August 24, 2021 Author Posted August 24, 2021 10 minutes ago, Adriano Faria said: Did you add your FURL do the furl.json? I added this after searching through a lot of core core. { "topLevel": "", "pages": { /* Mod CP */ "modcp_adminignores": { "friendly": "modcp/adminignores", "real": "app=core&module=modcp&controller=modcp&tab=adminignores" }, } }
Daniel F Posted August 25, 2021 Posted August 25, 2021 Thanks, I have added this step to https://invisioncommunity.com/developers/docs/development/extensions/coremodcp-r151/ TDBF and TAMAN 2
Recommended Posts