Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 22nd November 2011, 10:54
Student13 Student13 is offline
Junior Member
 
Join Date: Nov 2011
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Default How to create a new module that only contains a guide for users?

HI!

I have added a menu item in "Support" menu in "Help" module.

//* Add a menu item with the label 'Manual'
$items[] = array( 'title' => 'Manual',
'target' => 'content',
'link' => 'help/support_manual.php');

------------------

(support_manual.php)

<?php

//* Include the basic application and configuration files
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');

//* Check permissions for module
$app->auth->check_module_permissions('help');

echo "SHOW GUIDE: <hr><a href='http://www.mkzsoluciones.com/manuales/GUIA_ISPCONFIG.pdf'>http://www.mkzsoluciones.com/manuales/GUIA_ISPCONFIG.pdf</a><hr>";

?>

And all this works perfectly.

But, now I want to create a new module that only contains this menu item. I have tried the follow steps:

mkdir manual/
mkdir manual/form
mkdir manual/lib
mkdir manual/lib/lang
mkdir manual/list
mkdir manual/templates

In manual/ folder, I have created this file called "support_manual.php":

<?php

//* Include the basic application and configuration files
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');

//* Check permissions for module
$app->auth->check_module_permissions('help');

echo "SHOW GUIDE: <hr><a href='http://www.mkzsoluciones.com/manuales/GUIA_ISPCONFIG.pdf'>http://www.mkzsoluciones.com/manuales/GUIA_ISPCONFIG.pdf</a><hr>";

?>

In /lib folder, I have created this file called "module.conf.php":

<?php

//* Name of the module. The Module name must match the name of the module directory. The module name may not contain spaces.
$module['name'] = 'manual';

//* Title of the module. The title is dispalyed in the top navigation.
$module['title'] = 'Manual';

//* The templates file of the module. This is always module.tpl.htm if you do not have any special requirements like a 3 column layout.
$module['template'] = 'module.tpl.htm';

//* The width of the tab. Normally you should leave this empty and let the browser define the width automatically.
$module['tab_width'] = '';

//* The page that is displayed when the module is loaded.
$module['starpage'] = 'manual/support_manual.php';

//*** Menu Definition ***

//* Make sure that the items array is empty.
$items = array();

//* Add a menu item with the label 'Manual ISPConfig'.
$items[] = array('title' => 'Manual ISPConfig',
'target' => 'content',
'link' => 'manual/support_manual.php');

//* Add the menu items defined above
$module['nav'][] = array('title' => 'Manuales',
'open' => 1,
'items' => $items);
?>

And, also I have created this file called "admin.conf.php":

<?php

/*
The admin.conf.php file contains menu definitions to be displayed in the administration module.
*/
?>

All this creates a new module called "Manual" and inside this module is created a menu called "Manual ISPConfig".

The PROBLEM:

This module doesn't show the link that redirects to the guide for users.

Why doesn't it show?
How can I solve this problem?


THANKS!
------------------------

This is my first post in English language, so there may be several mistakes.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
SMTP Authentication not enabled on 3.0.1.3 / Ubuntu 9.04 fuban Installation/Configuration 7 17th June 2009 09:31
Chilispot on dd-wrt + freeradius / phpmyprepaid on Centos 5 wrong user password treeman HOWTO-Related Questions 0 31st May 2009 06:49
ISPConfig 2.2.0 - Unrecoverable error during installation danf.1979 Installation/Configuration 2 14th March 2006 08:48


All times are GMT +2. The time now is 18:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.