×

Notice

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

TOPIC: Hide Username on Comment/Increase Title Size/Inserting Dropdown Box

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9937

  • nik
  • nik's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hello,

I have a few questions please forgive me I am not too skilled at programming

1. Im wondering if their is any way to hide the poster's username on his/her comment so that the comment appears anonymous?

2. Is there a way to increase the size of individual comment titles?

3. How would you go about inserting a dropdown box with a couple options as an extra field for commenters?


Thanks so much for the help guys!

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9938

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
1. what do you mean with hide? You don't want to show any names or what? What is the idea behind this?
2. Yes, You can make this with css. But what do you mean with "individual comment titles"?
3. This is a complicated task that will require you to understand a little bit of php and mysql.
Cheers,
Daniel

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9939

  • nik
  • nik's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hey Daniel thanks for the response.

1. Yes I want to make it so that when a registered user posts a comment, the comment does not show their name at all. Similar to how Formspring.me hides the poster's name. If this is not possible my next hope would be to replace their username with some similar title like "Guest" or "Anonymous" on the posted comment. The goal is anonymity.

2. By individual comment titles I simply mean the title that the user has to input when posting a comment. Where would I find this in the css file?

Thanks!

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9940

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
1. Go to your joomlacomment index.html template file and find the {username} tag and remove it.

2. About the title there is a class .posttitle - you can style it.
.posttitle {
font-size: 20px;
}

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9956

  • nik
  • nik's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
thanks! i am also having a problem involving replying to comments. I am currently able to reply to my own posted comments and I am wondering why is this problem occurring? How can I fix this?

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9957

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Reply to only your comments? That sounds impossible :)
In the backend under posting is Allow nested comments: set to yes and Only moderators set to no???

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 5 months ago #9967

  • nik
  • nik's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hah no the problem I am having is that users are able to reply to the comments that they posted. This is an issue because I have made my comments anonymous so the person who posted a comment can make it look like he/she got a bunch of replies when in fact they are the ones making the replies. Is there any way to make it so users cannot reply to their own comments or is this just how the component works?

Hide Username on Comment/Increase Title Size/Inserting Dropdown Box 14 years 4 months ago #10025

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Sorry for the delay.
Sop here is what you have to do - open components/com_comment/joscomment/comment.class.php
and find this line
		if ($this->_tree) {
			if ( !$this->_mlink_post || ($isModerator) )
                          $edit = $this->linkPost($id);
               }
this is in the JOSC_post class I can't tell you exact line, because I'm testing with compojoomCommend and here this class is in its own file.
Anyway - change the above code to this:
if ($this->_tree) {
// if ( !$this->_mlink_post || ($isModerator) )
if($name != JFactory::getUser()->name)
$edit = $this->linkPost($id);
}
Now you should see a reply button on only comments that are not made from you.
  • Page:
  • 1
Time to create page: 0.135 seconds