Message

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Message

Post by bastiaan.c »

Hi I would like to have the word "message" to be seperate in the front and in the back-end. How can I do this?

Front-end
Image

Back-end
Image
In the Back-end it should only say Message.

Thanks
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Message

Post by mkoch227 »

I'm assuming you updated $hesklang['message'] to include the text you currently have. What I would do is in custom-text.php (if you created it), add a new line:

Code: Select all

$hesklang['message_backend'] = 'Message'; 
And then in admin/new_ticket.php, replace $hesklang['message'] with $hesklang['message_backend'].
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Message

Post by bastiaan.c »

Hi Mike, :)

That did not work unfortunately :( I did exactly what you said.
Anything else that I can do?
Thanks
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Message

Post by mkoch227 »

What about it didn't work? What happened when you tried it?
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Message

Post by bastiaan.c »

The word message in the back-end did not change into message :oops:
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Message

Post by mkoch227 »

If you can copy and paste your contents of admin/new_ticket.php and custom-text.php into either a [ code ][ /code ] block or in a Gist at https://gist.github.com, I can take a look at it and see what's going wrong
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Message

Post by mkoch227 »

I noticed your gist for custom-text has the ".txt" extension at the end. Rename it to ".php" and remove [ code ] and [ /code ] from the file.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Message

Post by bastiaan.c »

Ok sorry :-) That is wrong but on my server it is/was ok. Still having the issue :-(
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Message

Post by bastiaan.c »

Hi,

In my custom-text.php I have:

$hesklang['message']='Further Event Details';
$hesklang['message_backend']='Message';

Also, in admin/new_ticket.php, $hesklang['message'] is replaced with $hesklang['message_backend']

Still the back-end wording is the same as in the front-end.

Please help :oops:
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Message

Post by mkoch227 »

Provide me access to your installation via FTP via a private message so I can look at the files to see what is going on.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Message

Post by bastiaan.c »

I finally understood:

admin_ticket.php

replace:
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>" cols="72"

with:
placeholder="<?php echo htmlspecialchars($hesklang['message_backend']); ?>" cols="72"

replace:
<label for="message" class="col-sm-3 control-label"><?php echo $hesklang['message']; ?>

with:
<label for="message" class="col-sm-3 control-label"><?php echo $hesklang['message_backend']; ?>



Thanks Mike and sorry for the confusion. Because I did not understand I had asked the wrong question :oops:
Post Reply