Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Hide Username on Comment/Increase Title Size/Inserting Dropdown Box
Pages: [1]   Go Down
  Print  
Author Topic: Hide Username on Comment/Increase Title Size/Inserting Dropdown Box  (Read 1541 times)
0 Members and 1 Guest are viewing this topic.
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« on: June 02, 2010, 14:24:08 »

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!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: June 02, 2010, 16:11:57 »

1. Open /components/com_jcomments/tpl/default/tpl_comment.php and replace:

Code: (php)
<?php echo $comment->author?>
with:
Code: (php)
<?php echo JText::_('Guest'); ?>

2. Open /components/com_jcomments/tpl/default/style.css and set any font size in line:
Code: (css)
#comments .comment-title {color: #b01625;font: bold 1em Verdana, Arial, Sans-Serif;margin: 0;padding: 0}
(you could replace 1em with 1.5em or 16px or any other value you need)

3. No, such feature doesn't supported now.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #2 on: June 03, 2010, 04:01:27 »

Thanks for the help Smart I appreciate it! While Im here, are you aware of how to increase the size of the thumbs up/thumbs down icon? I can increase the size of the gif file but I am unsure how to make it properly function and fit using the style.css file. I know you have to adjust something within the "Vote" section I am just not sure what.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: June 03, 2010, 13:41:58 »

If you increase vote buttons size, you will need change these styles:
Code: (css)
#jc span.comments-vote {width: 6em;height: 15px;float: right}
#jc span.comments-vote a{width: 15px;height: 14px;float: left;margin: 0 3px 0 0;display: block;background-repeat: no-repeat;background-image: url(images/jc_vote.gif);border: none !important; text-decoration: none}
#jc span.comments-vote .busy{margin: 0; float: right; width: 16px}
#jc .vote-good{background-position: 0 0}
#jc .vote-poor{background-position: -15px 0}
#jc span.vote-good,#jc span.vote-poor,#jc span.vote-none{margin: 0;float: right;font: bold 1em Verdana, Arial, Sans-Serif;line-height: 14px}
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #4 on: June 04, 2010, 14:45:52 »

Hey Smart , yes I know I have to edit that area I just dont know what exactly to edit. I increased the thumbs gif to 60Wx44H but when I save it it only shows a piece of it. I need to edit something within this section to give the gif more room i guess I just dont know how to do so.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #5 on: June 04, 2010, 14:56:15 »

The original icon's sizes are 15w x 14h, so if you increase their size to 60w x 44h you'll need change styles to:

Code: (css)
#jc span.comments-vote {width: 24em;height: 45px;float: right}
#jc span.comments-vote a{width: 60px;height: 44px;float: left;margin: 0 3px 0 0;display: block;background-repeat: no-repeat;background-image: url(images/jc_vote.gif);border: none !important; text-decoration: none}
#jc span.comments-vote .busy{margin: 0; float: right; width: 61px}
#jc .vote-good{background-position: 0 0}
#jc .vote-poor{background-position: -60px 0}
#jc span.vote-good,#jc span.vote-poor,#jc span.vote-none{margin: 0;float: right;font: bold 1em Verdana, Arial, Sans-Serif;line-height: 44px}
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Hide Username on Comment/Increase Title Size/Inserting Dropdown Box
 
Jump to: