×

Notice

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

TOPIC: How to make changes in the comments module?

How to make changes in the comments module? 14 years 9 months ago #8527

  • Aziz
  • Aziz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Hello all,

I'm just quickly doing a drive by post here so, forgive me if this has already been answered elsewhere.

Everytime I put a comment through using the "Published (notify writer)" button, it sends out a message to the person whose comment it is, as well as anyone else who commented and checked the "Notify" button.

The message that my commenters receive, however, has some language that I want to change and don't want in there at all.

First of all, it's being sent from MY email address, so people don't realize they're getting responses from OTHER people. If someone doesn't include a name clearly, people think *I* wrote the message.

For example, someone put in the "Name" category: "Just making sense." That then looks like a subject line, and people think that because MY email address is on it, it's coming from me.

I guess any responses have to come from my email address that's linked to my site - no way to change that?

Also, the subject line comes in like this:

Fw: RE: PublishedComment: has been published[/quote] And the email sends out my administrator link: "The following comment has been published from http://mywebsite.com/administrator/" I don't want that going out - so how do I change all that language? 1. Change email address? 2. How do I change the subject line? 2. How to get rid of the admin link? BTW, I am fairly new to Joomla, and I don't know how to change the CSS easily.[email subject] has been published


And the email sends out my administrator link:

"The following comment has been published
from mywebsite.com/administrator/ "

I don't want that going out - so how do I change all that language?

1. Change email address?
2. How do I change the subject line?
2. How to get rid of the admin link?

BTW, I am fairly new to Joomla, and I don't know how to change the CSS easily.

How to make changes in the comments module? 14 years 9 months ago #8528

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Here's a tip on CSS at least...
Install Firefox and get the Addon Web Developer

When running around a site in Firefox, just press Ctrl + Alt + Y
-which then turns your cursor into a seeking device, and when you click on something, the screen splits in 2, where the CSS codes will be visible, and where it stems from.

Of course, the Addon can do MUCH more, and yes, there is a similar one for IE, but I find it more difficult to understand. :(

So I have it installed too, but that's more to impress the wife than to actually use. ;)

How to make changes in the comments module? 14 years 9 months ago #8547

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
You can change the e-mail send address/settings in the Joomla global configuration backend.

Changing the actual E-Mail fields is... well, it's in the server code and unfortunately has nothing to do with CSS. And if you are not too great at changing style sheets, then I don't know how I can help you to read and change PHP code :(

I can try though! Which version are you using? 4.0 Beta 2?

EDIT: Try this, i'll explain what you need to do real quickly and you can ask for details on which part you get stuck at or don't understand :)

(1) Go to your server backend (e.g., cPanel) File Manager and open this file on your web server for editing:
{home}/components/com_comment/joscomment/language/english.php

Of course if your site is not english then open the language you are using in JoomlaComment

(2) All those * are just commnts so ignore them. The first thing you should see after that is something like...
JOSC_define('_JOOMLACOMMENT_WRITECOMMENT', 'Write comment');
... which is a variable. '_JOOMLACOMMENT_WRITECOMMENT' is the variable itself, do NOT change these! After the comma though is the value of this variable - 'Write comment' - THIS is what you can change!

(3) Halfway down (or so) that file you opened you should start to see the variables for the various E-Mails JoomlaComment sends ;) Here's the one you want:
JOSC_define('_JOOMLACOMMENT_NOTIFY_PUBLISH_SUBJECT', 'PublishedComment:{title} has been published');
JOSC_define('_JOOMLACOMMENT_NOTIFY_PUBLISH_MESSAGE','<p>The following comment has been published <br />from <a href="{livesite}">{livesite}</a>:</p>'
											. 	'<p><b>Name: </b>{name}<br />'
											. 	'<b>Title: </b>{title}<br />'
											. 	'<b>Text: </b>{comment}<br />'
											. 	'<b>Content item: </b><a href="{linkURL}">{linkURL}</a></p>'
											. 	'<p>Please do not respond to this message as it is automatically generated and is for information purposes only.</p>'

...and here's an example change based on what you're looking for...
JOSC_define('_JOOMLACOMMENT_NOTIFY_PUBLISH_SUBJECT', 'MyWebsite - New Comment "{title}" has been published');
JOSC_define('_JOOMLACOMMENT_NOTIFY_PUBLISH_MESSAGE','<p>The following comment has been published:</p>'
											. 	'<p><b>Name: </b>{name}<br />'
											. 	'<b>Title: </b>{title}<br />'
											. 	'<b>Text: </b>{comment}<br />'
											. 	'<b>Content item: </b><a href="{linkURL}">{linkURL}</a></p>'
											. 	'<p>Please do not respond to this message as it is automatically generated and is for information purposes only.</p>'



Let us know how you go!

How to make changes in the comments module? 14 years 9 months ago #8568

  • Aziz
  • Aziz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Sweet, Thanks for responding!

I guess I have "Version 1.5.14"

Okay, let me see what I can do here.

Well, I can't find the global config backend. Looks like I need a step by step.

How to make changes in the comments module? 14 years 9 months ago #8612

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Global config is not a backend thing.
Use an FTP Access point, and go to the file JonusC points out.

YOURSITE/components/com_comment/joscomment/language/english.php

Download it to some place locally, and then open it for the alterations you want using whatever editor you prefer.

Of course, when you're done just upload it again.
Could be smart not to just overwrite the previous version (just incase), perhaps rename the original to 1english.php or something.

How to make changes in the comments module? 14 years 9 months ago #8643

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
The Global Configuration in the backend was referring to changing the E-Mail address, not the language. You can find it in Site > Global Configuration; Then choose the 'Server' tab and on the bottom right are the mail settings. You would have had to set this all up when you first installed. Note that SMTP is sometimes more reliable than PHP Mail or Sendmail on Shared servers, regardless what you have seems to be working so changing Mail From should be enough.

For editing the english.php file, you can do it through cPanel easily as I mention. If you do it through FTP like Nils said then make sure you use a UTF-8 editor for opening the file (e.g., Windows 7's Notepad or Notepad++)

How to make changes in the comments module? 14 years 9 months ago #8645

  • Nils Ally
  • Nils Ally's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 299
  • Thank you received: 33
Ah, of course! Sorry!

How to make changes in the comments module? 14 years 9 months ago #8648

  • Aziz
  • Aziz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
I'm using "Version 1.5.14," my operating sys. is XP, SP3. Do I need an update - which one would you recommend? What link do I need?

How to make changes in the comments module? 14 years 9 months ago #8649

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Only super admins can see the global configurations. I have the feeling that your account is just an administrator or manager one.

How to make changes in the comments module? 14 years 9 months ago #8650

  • Aziz
  • Aziz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
That's right ... I am now a super. My bad due to lack of experience. So far so good. I changed "write comment" to "add comment."

Next I need to change the e-mail thingy.

JonusC's post 8547 is working - can't thank you guys enough!

Perhaps he or someone else can also answer another question we've had for a while.

We would like to put the "Write Comment" link AFTER the "Read More" link, instead of before/on top of it. We'd like to have it read:

"Write Comment" and then "Read More" on the same line.

Thanks a lot for all the help!

How to make changes in the comments module? 14 years 9 months ago #8651

  • Aziz
  • Aziz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Well, I'm figuring things out, but here's a problem: The link that's included in the outgoing "Published" notifications sends the person to the login page. I don't require people to login to write or read comments.

I would like to have it default to the actual comment that is the subject of the notification! How is that done?

Thanks again for the help.

How to make changes in the comments module? 14 years 9 months ago #8652

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm pretty sure that the link is not a link to the login page, but when you click it, joomla redirects you to the login page. Is the article under which the comments are published for registered members???

How to make changes in the comments module? 14 years 9 months ago #8749

  • Aziz
  • Aziz's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
The link code that is sent out automatically is as follows. No, there is no need to log in to comment, but I do have moderation set.

'<p>To read this comment, please go here: <a href="{linkURL}">{linkURL}</a></p>'

Like I say, when I post a comment and send it through, it comes out with the link to the login page, rather than automatically defaulting to the page the comment is on.

Also, we would like to put the "Write Comment" link AFTER the "Read More" link, instead of before/on top of it. We'd like to have it read:

"Write Comment" and then "Read More" on the same line.

Thanks a lot for all the help!

How to make changes in the comments module? 14 years 9 months ago #8818

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
hey Azis

is {linkUrl} really a link to the yoursite.com/loginpage or yoursite.com/page_with_article ?

And about the write comment search the forum - there is a sticky thread about this.
  • Page:
  • 1
Time to create page: 0.130 seconds