The following warnings occurred:
Warning [2] Undefined array key "mybb" - Line: 352 - File: inc/class_core.php PHP 8.3.26 (Linux)
File Line Function
/inc/class_core.php 352 errorHandler->error
/inc/init.php 216 MyBB->parse_cookies
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined array key "sid" - Line: 352 - File: inc/class_core.php PHP 8.3.26 (Linux)
File Line Function
/inc/class_core.php 352 errorHandler->error
/inc/init.php 216 MyBB->parse_cookies
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.3.26 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 568 - File: global.php PHP 8.3.26 (Linux)
File Line Function
/global.php 568 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 744 - File: global.php PHP 8.3.26 (Linux)
File Line Function
/global.php 744 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 884 - File: global.php PHP 8.3.26 (Linux)
File Line Function
/global.php 884 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 884 - File: global.php PHP 8.3.26 (Linux)
File Line Function
/global.php 884 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 2 - File: global.php(951) : eval()'d code PHP 8.3.26 (Linux)
File Line Function
/global.php(951) : eval()'d code 2 errorHandler->error
/global.php 951 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1016 - File: global.php PHP 8.3.26 (Linux)
File Line Function
/global.php 1016 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5196 - File: inc/functions.php PHP 8.3.26 (Linux)
File Line Function
/inc/functions.php 5196 errorHandler->error
/global.php 1016 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.3.26 (Linux)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions.php 5216 is_member
/global.php 1016 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.3.26 (Linux)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1404 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.3.26 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.3.26 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
{loadmodule} in an Article - How To? - Printable Version

+- Forums (http://forum.notjustbrowsing.org:)
+-- Forum: WWW (http://forum.notjustbrowsing.org:/forumdisplay.php?fid=9)
+--- Forum: Content Management Systems (CMS's) (http://forum.notjustbrowsing.org:/forumdisplay.php?fid=12)
+---- Forum: Joomla (http://forum.notjustbrowsing.org:/forumdisplay.php?fid=18)
+---- Thread: {loadmodule} in an Article - How To? (/showthread.php?tid=6257)



{loadmodule} in an Article - How To? - abdulkarim - 02-14-2020

It is very powerful to be able to load a module from within an article. An article can be called from a menu item, so this means that a module can be called by using a menu item.

How To?

Step 1: Create a module using Module Manager. This module is of a "Module Type" and it has a "Title"
Step 2: Create an article using Article Manager. Add just one line
                      {loadmodule "Module Type","Title"}[attachment=185]
Step 3: Associate the article created in step 2 with a menu item.

PRE-CONDITION: "Content - Load Module" plugin status should be active. Check by using Plugin Manager.
[attachment=182][attachment=183]

Everybody says that "IT IS NOT WORKING".

WHY?

Because the secret is in the "Module Type" that is not explained properly anywhere.
[attachment=184]
In Joomla installation there is a directory called "modules". In above picture, I copied subdirectories of module directory in front of each Module Type.

Important point to note is that when you write {loadmodule Module Type,Titile of your module}, Module Type is the part of directory name starting after mod_ .

Hence if you have a module named "Committees" of type "Articles - Newsflash, you will write
{loadmodule articles_news,Committees}

For Feed Display module type you will write {loadmodule feed,Latest} (if Latest is the Title of your module}

Now you know where Module Type comes from; once your {loadmodule} parameters are correct, it will work and will show you its power and charm.

Notes:
1.
No unnecessary space in {loadmodule module_type,title however it was written}
2.
If {loadposition} is working and {loadmodule} is not working then it is highly likely that there is a mistake in writing module type name.