Jump to content

Adding links in an open source Helpdesk


ciaran1987

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

 

 

 

 

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.