{"id":659,"date":"2013-03-14T19:57:16","date_gmt":"2013-03-14T23:57:16","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/03\/14\/add-a-new-custom-module-in-php-nuke\/"},"modified":"2021-08-16T23:18:34","modified_gmt":"2021-08-17T03:18:34","slug":"add-a-new-custom-module-in-php-nuke","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/","title":{"rendered":"Add new custom module in PHP-Nuke"},"content":{"rendered":"<p>In this article I&#8217;m going to teach you how to add a new custom module to your PHP-Nuke website.<\/p>\n<p>In PHP-Nuke, modules are used in order to build up the menu items of your site. You could create for example a module that has some simple text content and a link to a remote website. Visitors to your site would be able to get to this page by clicking on the module&#8217;s link in your <strong>Modules<\/strong> menu.<\/p>\n<h2>Creating a new module in PHP-Nuke<\/h2>\n<p>Following the steps below I&#8217;ll walk you through creating a new custom module called <strong>Support<\/strong>, that simply has some text and then a link back to our support center.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\" rel=\"noopener\">Login to your cPanel<\/a><\/li>\n<li>Under the <em>Files<\/em> section, click on <strong><a href=\"\/support\/edu\/cpanel\/using-file-manager-in-cpanel\/\">File Manager<\/a><\/strong>, select <strong>Web Root<\/strong> and click on <strong>Go<\/strong>.<\/li>\n<li>Navigate to the directory you&#8217;ve installed PHP-Nuke to, then go into the <strong>modules<\/strong> directory.<\/li>\n<li>In the top menu, click on <strong>+ New Folder<\/strong>, then name the folder what you&#8217;d like to name your module. In this case I&#8217;ve named mine <strong>Support<\/strong>, then click on <strong>Create New Folder<\/strong>.<\/li>\n<li>Now click on the newly created <strong>Support<\/strong> modules folder.<\/li>\n<li>Next click on <strong>+ New File<\/strong>, name your new file <strong>index.php<\/strong>, then click on <strong>Create New File<\/strong>.<\/li>\n<li>Now right-click on the newly created <strong>index.php<\/strong> script, and select <strong>Edit<\/strong>.<\/li>\n<li>This is the example code I have used for my module:\n<p class=\"code_block\" style=\"width: 500px;\">&lt;?php<br \/> if (!eregi(&#8220;modules.php&#8221;, $PHP_SELF)) {<br \/> die (&#8220;You can&#8217;t access this file directly&#8230;&#8221;);<br \/> }<br \/> $index = 1;<br \/> require_once(&#8220;mainfile.php&#8221;);<br \/> $module_name = basename(dirname(__FILE__));<br \/> get_lang($module_name);<br \/> include(&#8220;header.php&#8221;);<\/p>\n<p>echo &#8220;&lt;p&gt;This is a test module!&lt;\/p&gt;&#8221;;<\/p>\n<p> echo &#8216;&lt;a href=&#8221;https:\/\/www.inmotionhosting.com\/support&#8221;&gt;InMotion Support Center&lt;\/a&gt;&#8217;;<\/p>\n<p> include(&#8220;footer.php&#8221;);<br \/> ?&gt;<\/p>\n<\/li>\n<li>Now click on <strong>Save Changes<\/strong> up at the top-right.<\/li>\n<\/ol>\n<h2>Activating newly created module in PHP-Nuke<\/h2>\n<p>Now that you&#8217;ve created a new module, we need to login to PHP-Nuke to set it to active. Follow along with these steps to accomplish that.<\/p>\n<ol class=\"article_list\">\n<li>Login to your PHP-Nuke admin dashboard.<\/li>\n<li>In the 2nd row, 4 icons over, click on <strong>Modules<\/strong>.<\/li>\n<li>Scroll down till you see the newly created <strong>Support<\/strong> module, and click on the cog icon to the far-right of it to enable the module.<\/li>\n<li>Now if you navigate back to your PHP-Nuke main page, you should see under the <strong>Modules<\/strong> menu the new <strong>Support<\/strong> one, and clicking on it will take you to the page that includes our text and link! <\/li>\n<\/ol>\n<p>You should now understand the very basics of creating a new custom module to use with PHP-Nuke.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article I&#8217;m going to teach you how to add a new custom module to your PHP-Nuke website. In PHP-Nuke, modules are used in order to build up the menu items of your site. You could create for example a module that has some simple text content and a link to a remote website.<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[106,4288],"tags":[],"class_list":["post-659","post","type-post","status-publish","format-standard","hentry","category-php-nuke","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Add new custom module in PHP-Nuke | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this article I&#039;m going to teach you how to add a new custom module to your PHP-Nuke website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add new custom module in PHP-Nuke | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article I&#039;m going to teach you how to add a new custom module to your PHP-Nuke website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-14T23:57:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:18:34+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"Add new custom module in PHP-Nuke\",\"datePublished\":\"2013-03-14T23:57:16+00:00\",\"dateModified\":\"2021-08-17T03:18:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\"},\"wordCount\":439,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"PHP-Nuke\",\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\",\"name\":\"Add new custom module in PHP-Nuke | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-03-14T23:57:16+00:00\",\"dateModified\":\"2021-08-17T03:18:34+00:00\",\"description\":\"In this article I'm going to teach you how to add a new custom module to your PHP-Nuke website.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add new custom module in PHP-Nuke\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add new custom module in PHP-Nuke | InMotion Hosting","description":"In this article I'm going to teach you how to add a new custom module to your PHP-Nuke website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/","og_locale":"en_US","og_type":"article","og_title":"Add new custom module in PHP-Nuke | InMotion Hosting","og_description":"In this article I'm going to teach you how to add a new custom module to your PHP-Nuke website.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-03-14T23:57:16+00:00","article_modified_time":"2021-08-17T03:18:34+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"Add new custom module in PHP-Nuke","datePublished":"2013-03-14T23:57:16+00:00","dateModified":"2021-08-17T03:18:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/"},"wordCount":439,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["PHP-Nuke","Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/","name":"Add new custom module in PHP-Nuke | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-03-14T23:57:16+00:00","dateModified":"2021-08-17T03:18:34+00:00","description":"In this article I'm going to teach you how to add a new custom module to your PHP-Nuke website.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/php-nuke\/add-a-new-custom-module-in-php-nuke\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Add new custom module in PHP-Nuke"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":84793,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/659\/revisions\/84793"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}