Page 1 of 1

Message

Posted: Mon May 04, 2015 5:19 pm
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

Re: Message

Posted: Mon May 04, 2015 5:54 pm
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'].

Re: Message

Posted: Thu May 07, 2015 7:05 am
by bastiaan.c
Hi Mike, :)

That did not work unfortunately :( I did exactly what you said.
Anything else that I can do?
Thanks

Re: Message

Posted: Thu May 07, 2015 12:06 pm
by mkoch227
What about it didn't work? What happened when you tried it?

Re: Message

Posted: Fri May 08, 2015 11:53 am
by bastiaan.c
The word message in the back-end did not change into message :oops:

Re: Message

Posted: Fri May 08, 2015 1:34 pm
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

Re: Message

Posted: Sat May 09, 2015 10:26 am
by bastiaan.c

Re: Message

Posted: Sat May 09, 2015 7:48 pm
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.

Re: Message

Posted: Mon May 11, 2015 8:53 am
by bastiaan.c
Ok sorry :-) That is wrong but on my server it is/was ok. Still having the issue :-(

Re: Message

Posted: Sat Dec 05, 2015 3:23 pm
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:

Re: Message

Posted: Thu Dec 10, 2015 9:11 pm
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.

Re: Message

Posted: Sat Dec 12, 2015 5:41 pm
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: