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: Width of textarea too big
Pages: [1]   Go Down
  Print  
Author Topic: Width of textarea too big  (Read 7267 times)
0 Members and 1 Guest are viewing this topic.
schmatzler
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« on: July 18, 2008, 01:30:10 »

Hey everybody!  Smiley

I'm using JComments for my whole site and I just can say, that its a wonderful extension! Keep up the good work!

I just have one problem. I'm using JComments also for my video system Seyret and the textarea is too big for my design, its destroying everything.

To check out, what I mean, look here:

http://schmatzler.de/component/option,com_seyret/Itemid,184/task,videodirectlink/id,27/

When I click to write a comment, the textarea show up and is too big. Is there any chance to get the width a little bit smaller?

Regards
Logged
schmatzler
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #1 on: July 27, 2008, 14:29:21 »

Oh come on guys, 85 Hits but no answer?^^

You are developing this, is it that hard to give me just a little hint where to search in the files? Wink
Logged
era
Global Moderator
Newbie
*****

Karma: 11
Offline Offline

Gender: Male
Posts: 37


211194534
Email
« Reply #2 on: July 27, 2008, 15:06:41 »

hi, open file <joomla>/components/com_jcomments/tpl/default/jcomments-form.tpl
find string:
Code:
<textarea id="comments-form-comment" onchange="jc_changed({COMMENT-MAXLENGTH});jc_storeCaret(this);" onkeyup="jc_changed({COMMENT-MAXLENGTH});" onselect="jc_storeCaret(this);" onclick="jc_storeCaret(this);" name="comment" cols="65" rows="5" tabindex="4" onfocus="javascript:this.className='selected';" onblur="javascript:this.className='';" onkeypress="return jc_keypress(event);"></textarea>
and change param
Quote
cols="65"
to 40 or 30
Logged

English is not my native language - so I can write with mistakes Wink
textwidth
Newbie
*

Karma: 0
Offline Offline

Posts: 2

Play old games! Abandonware rocks!


WWW
« Reply #3 on: July 29, 2008, 02:22:19 »

Hmmm the same problem here, but the tip doesn't work for me. Huh

Any ideas? jcomments is cool but it destroys my template.

Thank you for fast help
Logged

I'm old games fan. Have a look at my old games site WoOG old games. I'm using jcomments there. Thanks for the great component. One of the best I have seen so far. Thanks for this support forum ;-). It solved some of my problems.
schmatzler
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #4 on: July 30, 2008, 01:58:24 »

Thanx, era, for giving me a little hint, finally I found it out:

The "cols"-argument does nothing, as the width is specified in the style.css of Jcomments.

So it can be deleted from the .tpl-file, it has no sense (in my opinion, maybe something brwoser-specific, but I don't think so).

In style.css there is a passage:

Code:
#comments-form textarea {
color : #444;
background-color: inherit;
font : bold 0.9em Verdana, Arial, Sans-Serif;
max-width : 450px !important;
width : 400px;
padding : 2px;
margin : 0;
border : 1px solid #ccc;

Change max-width to whatever the hell you like Wink
Logged
textwidth
Newbie
*

Karma: 0
Offline Offline

Posts: 2

Play old games! Abandonware rocks!


WWW
« Reply #5 on: July 30, 2008, 03:09:55 »

God bless you, thanks Cheesy. I swear I went through that file... anyway thanks for help. World of old games finally has jcomments module. Let's deal with that dropdown issue of the JA Purity template and the site will be ready. Thanks a lot again
« Last Edit: August 15, 2008, 15:09:23 by textwidth » Logged

I'm old games fan. Have a look at my old games site WoOG old games. I'm using jcomments there. Thanks for the great component. One of the best I have seen so far. Thanks for this support forum ;-). It solved some of my problems.
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Width of textarea too big
 
Jump to: