Page 1 of 1

Changing the text on individual pages, possible?

Posted: Sun Apr 29, 2007 12:44 am
by DigiMon
Script URL: private for now
Version of script: Latest 0.94
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
checning page text, custom text, changing text on pages

Write your message below:

My Hesk is working great and I love it!

I'm just wondering if it's possible for me to make extensive changes to the text on each page.

For example, on the main page where the user is presented with "Open a new ticket", I would like to be able to modify / add paragrpahs of text in there. I'm a bit afraid to touch the english.inc.php file as far as adding large amounts of text / html, as I assume that will break something.

I would like to be able to add text and HTML to two locations on the main page:

- Between the header.txt and the border around the "Submit ticket" area.

- Inside the "Submit ticket" area between the site name and "Open a new ticket" text.

The reason I don't want to use header.txt for this is because that shows up on every page, and I only want to add text and html to specific pages, such as the main page.

I will continue to search the forum for anything on this subject.
Thanks,
Digi

Posted: Sun Apr 29, 2007 2:28 am
by DigiMon
I think I may have found the answer to part of my question! Hopefully someone can tell me if this is bad / wrong to do...

In index.php I found the section that looks like:

<h3 align="center"><?php echo $hesk_settings['hesk_title']; ?></h3>
<p><b><?php echo $hesklang['open_ticket']; ?></b></p>
<p><a href="index.php?a=add"><?php echo $hesklang['sub_support']; ?></a> </p>

And then I simply inserted my own text / HTML between hesk_title call and the open_ticket call, something like this:

<h3 align="center"><?php echo $hesk_settings['hesk_title']; ?></h3>
<p>Welcome to the HelpDesk! Please us the link below to send an email support request.</p>
<p><b><?php echo $hesklang['open_ticket']; ?></b></p>
<p><a href="index.php?a=add"><?php echo $hesklang['sub_support']; ?></a> </p>

That seems to have answered part of my question (how to place custom text and html inside the "Submit ticket" area between the site name and "Open a new ticket" text), but I'm still a bit stumped on the other question (how to place custom text and html between the header.txt and the border around the "Submit ticket" area).

Hopefully someone can tell me if my first solution is bad / wrong to do.

Posted: Sun Apr 29, 2007 9:53 am
by miccas
Example:

<h3 align="center"><?php echo $hesk_settings['hesk_title']; ?></h3>

<p>Whack your paragraph here!</p>

<p><b><?php echo $hesklang['open_ticket']; ?></b></p>
<p><a href="index.php?a=add"><?php echo $hesklang['sub_support']; ?></a> </p>

Posted: Sun Apr 29, 2007 2:54 pm
by Klemen
Sure, you can do that. I just recommend that you keep a record of what changes you did, will be easier to customize again in future versions.

Posted: Sun Apr 29, 2007 6:05 pm
by DigiMon
Good thinking and thanks for the replies. I'll start a notepad doc of my changes.

Posted: Mon Apr 30, 2007 1:41 am
by Hunter
DigiMon wrote:.... I'll start a notepad doc of my changes.
I do something very similar except I created my own extension (install.rty) for example. I gave it a unique icon so I can find it easier when digging through my notes.

The reason for the unique extension is because it tells me right off that I've added additional notes or made a new page (install.txt) for example. I used my initials as the extension. I'm not a Coder so I do make allot of notes :)