×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How do I change the word "Write" on the "Write Comment" button?

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6724

  • bob brown
  • bob brown's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi All

I would like to change the 'write button' to read something else like 'Add Comment'. I've looked in most of the files and can't figure where it comes from? I'm a designer, not a coder. Any help will be greatly appreciated.
:laugh:

Thanks
epro
:huh:

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6728

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
did you look at the language file? :)

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6731

  • bob brown
  • bob brown's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi Daniel

Thanks for the fast reply. The language file 'english.php' was the first place I looked. The only place I found the word 'write' was on line 13
JOSC_define('_JOOMLACOMMENT_WRITECOMMENT', 'Write comment');

and on line 73
JOSC_define('_JOOMLACOMMENT_ONLYREGISTERED', 'Only registered users can write comments!');

and I figured it would be the word 'write' by it's self. Like I said, I'm not a coder. Any help will be appreciated!

:unsure:

Thanks
bob

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6734

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
just change write comment to add comment :)

P.S. But be carefull - save the file in UTF8!!!

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6735

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
What he means is, where you have this...
JOSC_define('_JOOMLACOMMENT_WRITECOMMENT', 'Write comment');
...change it to this...
JOSC_define('_JOOMLACOMMENT_WRITECOMMENT', 'Add comment');
...easy stuff :)

Yes, make sure it's in UTF8. If you use Windows, do NOT use Notepad. Download and use Notepad++ instead. Or, you can edit the file directly in cPanel (it will keep the UTF8 format).

[Thread stickied - I think this deserves a high-up spot Daniel]

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6737

  • bob brown
  • bob brown's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi

It makes sense now. It was my template that was confusing me. Only the word 'write' was showing.



Is there a class or id defined for the write button? I looked at your JQdefault-emotop css file and found two references to button, '#comment .button' and '#comment .buttoncontainer . Can I reference these in my css to control the appearance of the button? If so which one or both? thanks

:unsure:

Thanks
bob

PS: I use crimson editor.

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6738

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Install firebug and check the button class - it should be the readmore class. Look in your template css file and make the necessary changes to it.

How do I change the word "Write" on the "Write Comment" button? 15 years 3 months ago #6754

  • bob brown
  • bob brown's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi

Thanks, Firebug is alot better than the 'web developer' addon. I have thing working now, I just have one more problem. In the preview the time/date needs a space between it and the comment.



Firebug shows them as the same item, any ideas?

Thanks
bob
  • Page:
  • 1
Time to create page: 0.221 seconds