Recent Topics

1 Sep 19, 2005 18:06    

Hi everybody

I am having trouble changing the height of the textarea. I would think that changing admin/_edit_form.php
at textarea
<textarea rows="16" cols="40" name="content" id="conte

would change the size, but it doesn't???

It seems straight forward, but maybe it is somewhere else???

Hope someone can help.

3 Sep 20, 2005 12:51

I have tried that. I even openes the souce to check if the textarea had changed!!!.

Ir is really strange :o

4 Sep 20, 2005 15:17

Which text area are you talking about, specifically?

5 Sep 20, 2005 15:49

It could be affected by CSS. If there is style information connected to that control, it will override the old HTML attributes (rows, cols, etc.).

Check to see if the textarea tag has a class assigned. If it doesn't then you might look for the textarea itself to be defined in your CSS file(s).

6 Sep 21, 2005 09:43

Thanks for the interest.

I am looking at the file admin/_edit_form.php

Specifically

<?php // ---------------------------- TEXTAREA -------------------------------------
// Note: the pixel images are here for an IIS layout bug
?>
<div class="edit_area"><img src="img/blank.gif" width="1" height="1" alt="" /><textarea rows="20" cols="40" name="content" id="content" tabindex="4"><?php echo $content ?></textarea><img src="img/blank.gif" width="1" height="1" alt="" /></div>

I have tried to change the rows setting to make it larger....

There is nothing in the class edit_area neither in variation.css or desert.css which the backend
http://www.bibliotek.horsens.dk/skraedder/admin/b2edit.php
seems to use.

Thanks for the replies :-)

7 Sep 21, 2005 11:37

right at the bottom of desert.css

div.edit_area {
	width: 100%;
	text-align: center;
}
div.edit_area textarea,
textarea.bComment {
	width: 98%;
	margin: 0 auto;
}

¥

8 Sep 21, 2005 13:36

I did find the edit_area class, but I cannot really grasp how that should affect the row setting 8|
It only has a width setting, so why should it change the height or rows of the textarea!!!

Mayby i am not sufficient in css!

Michael

9 Sep 21, 2005 14:01

Sorry, I should have been clearer, add height:##em where ## is the height you want.

¥

10 Sep 22, 2005 12:47

It doesn't do the trick!!!!

The css controls the area around the textarea, not the textarea rows setting. It does make the surroundings bigger, but not the textarea.

It should be in the textarea row setting, that was my initial idea. It must be in the _edit_form.php

I have tried to write something above the textarea and it shows just fine in the write and edit in backend.

Hmm I am stumbed by this.

Thanks for the help in locating the problem.

11 Sep 22, 2005 14:00


div.edit_area textarea,
textarea.bComment {
   width: 98%;
   margin: 0 auto;
height:50em;
}

Works for me?

¥

12 Sep 22, 2005 19:46

The default rows in the texarea is still only 11 rows down... No matter what i do

Since my FCKeditor takes up 3 lines, then I would like to increase it even more.

I have tried to change it to 300 em, and it doesn't make the textarea gigantic.

13 Sep 22, 2005 20:25

anker wrote:

Since my FCKeditor takes up 3 lines . .

You've got FCKeditor hacked into the b2evolution edit form? That's something that should have mentioned earlier. That's probably having some effect.

14 Sep 22, 2005 20:46

Ok, that helps :S:S

Tell you what, create an account where I can have simple access to your create post screen and then I might actually have a chance of helping you.

Alternatively, copy and paste the source code of your create post screen (including css) here.

¥

I'm gonna have to change my crystal ball :S

15 Sep 23, 2005 14:59

My network is down just now. I will be back. Dammit.

16 Sep 27, 2005 19:03

Sorry about this late answer. Another project just landed on my lap. Discussion forum among others :-)

Hope this clarifies, what I have tried. As I have explained it only increased the area around the textarea, not the textarea itself.

admin/_edit_form.php
[code]<?php // ---------------------------- TEXTAREA -------------------------------------
// Note: the pixel images are here for an IIS layout bug
?>

<div class="edit_area"><img src="img/blank.gif" width="1" height="1" alt="" /><textarea rows="60" cols="40" name="content" id="content" tabindex="4"><?php echo $content ?></textarea><img src="img/blank.gif" width="1" height="1" alt="" /></div>
<script type="text/javascript" language="JavaScript">[/code]

admin/desert.css

[code]div.edit_area {
width: 100%;
text-align: center;
height:300em;
}

div.edit_area textarea,
textarea.bComment {
width: 98%;
margin: 0 auto;
height:300em;
} [/code]

17 Sep 27, 2005 22:34

It seems, on my Firefox, just editing the following code has the desired effect.

div.edit_area textarea,
textarea.bComment {
width: 98%;
margin: 0 auto;
height:500px;
} 


Form is loading...