Changing the text on individual pages, possible?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
DigiMon
Posts: 29
Joined: Sat Aug 12, 2006 12:01 am

Changing the text on individual pages, possible?

Post 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
DigiMon
Posts: 29
Joined: Sat Aug 12, 2006 12:01 am

Post 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.
miccas
Posts: 22
Joined: Mon Jul 03, 2006 9:56 pm

Post 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>
MiCCAS
---------

Hesk is the BEST!
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
DigiMon
Posts: 29
Joined: Sat Aug 12, 2006 12:01 am

Post by DigiMon »

Good thinking and thanks for the replies. I'll start a notepad doc of my changes.
Hunter
Posts: 3
Joined: Thu Apr 05, 2007 3:05 am

Post 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 :)
Post Reply