ciaran1987 Posted April 21, 2009 Share Posted April 21, 2009 Hi Guys I am using an open source helpdesk and want to add in a few links to files that I have created but I am having trouble as they do not appear when I run the helpdesk. /* Check if this is a valid include */ if (!defined('IN_SCRIPT')) {die($hesklang['attempt']);} ?> <div align="center"> <center> <table border="0" width="750" cellspacing="1" cellpadding="3" class="white"> <tr> <td align="center" class="admin_white"> <a href="admin_main.php"><?php echo $hesklang['main_page']; ?></a> | <a href="manage_users.php"><?php echo $hesklang['manage_users']; ?></a> | <a href="manage_categories.php"><?php echo $hesklang['manage_cat']; ?></a> | <a href="form.html.php"><?php echo $hesklang['form']; ?></a> | <a href="profile.php"><?php echo $hesklang['profile']; ?></a> | <a href="admin_settings.php"><?php echo $hesklang['settings']; ?></a> <a href="admin.php?a=logout"><?php echo $hesklang['logout']; ?></a> | </td> </tr> </table> </center> </div> This is the code that originally came with the helpdesk.I try and add inn a link to my files by adding | <a href="form.html"><?php echo $hesklang['form']; ?></a> but nothing happens when I run the program.If I delete one of the links shown above then the link will be deleted when I run the program so I am sure I am editing the correct file.Anybody any ideas? Quote Link to comment Share on other sites More sharing options...
9three Posted April 21, 2009 Share Posted April 21, 2009 It's not showing up because the array you are adding does not exist. Find where the array is being stored and it should lead you on how to add another link. Quote Link to comment Share on other sites More sharing options...
ciaran1987 Posted April 21, 2009 Author Share Posted April 21, 2009 It's not showing up because the array you are adding does not exist. Find where the array is being stored and it should lead you on how to add another link. I`m sorry but I am not used to PHP,could you give me an idea on how I would go about doing this,when you say array do you mean $hesklang['form']? Thanks Quote Link to comment Share on other sites More sharing options...
jamesxg1 Posted April 21, 2009 Share Posted April 21, 2009 It's not showing up because the array you are adding does not exist. Find where the array is being stored and it should lead you on how to add another link. I`m sorry but I am not used to PHP,could you give me an idea on how I would go about doing this,when you say array do you mean $hesklang['form']? Thanks what include files do you have on that script ?, and is that the whole script ? Quote Link to comment Share on other sites More sharing options...
ciaran1987 Posted April 21, 2009 Author Share Posted April 21, 2009 what include files do you have on that script ?, and is that the whole script ? There are another main file which uses the file I pasted initially. admin_main.php define('IN_SCRIPT',1); /* Get all the required files and functions */ require_once('hesk_settings.inc.php'); require_once('language/'.$hesk_settings['language'].'.inc.php'); require_once('inc/common.inc.php'); hesk_session_start(); hesk_isLoggedIn(); require_once('inc/database.inc.php'); hesk_dbConnect() or hesk_error("$hesklang[cant_connect_db] $hesklang[contact_webmsater] $hesk_settings[webmaster_mail]!"); /* Print header */ require_once('inc/header.inc.php'); /* Print admin navigation */ require_once('inc/show_admin_nav.inc.php'); ?> </td> </tr> <tr> <td> <h3 align="center"><?php echo $hesklang['open_tickets']; ?></h3> <?php require_once('inc/print_tickets.inc.php'); ?> <hr> <?php require_once('inc/show_search_form.inc.php'); show_admin_nav.inc.php /* Check if this is a valid include */ if (!defined('IN_SCRIPT')) {die($hesklang['attempt']);} ?> <div align="center"> <center> <table border="0" width="750" cellspacing="1" cellpadding="3" class="white"> <tr> <td align="center" class="admin_white"> <a href="admin_main.php"><?php echo $hesklang['main_page']; ?></a> | <a href="manage_users.php"><?php echo $hesklang['manage_users']; ?></a> | <a href="manage_categories.php"><?php echo $hesklang['manage_cat']; ?></a> | <a href="form.html.php"><?php echo $hesklang['form']; ?></a> | <a href="profile.php"><?php echo $hesklang['profile']; ?></a> | <a href="admin_settings.php"><?php echo $hesklang['settings']; ?></a> | <a href="form.html"><?php echo $hesklang['form']; ?></a> <a href="admin.php?a=logout"><?php echo $hesklang['logout']; ?></a> | </td> </tr> </table> </center> </div> Does this give you any more of the info you need? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.