Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-10-28 23:20:05

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: increasing the size of the Txp:comment message input field

Yes. Use input#name, input#web, input#email to be specific. As far as I know you can do it with search as well though I don’t use the tag so I haven’t tried it.

Oh and there’s input#forget and input#remember as well.

Last edited by thebombsite (2005-10-28 23:21:36)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#14 2005-10-28 23:21:45

pketh
Member
Registered: 2005-05-30
Posts: 24

Re: increasing the size of the Txp:comment message input field

hype, thanks :)


personal site:
www.pketh.com

Offline

#15 2005-10-31 12:44:59

systrum
Member
Registered: 2004-08-28
Posts: 44

Re: increasing the size of the Txp:comment message input field

i am using the sdr_guestbook 4.0 to display an article as a guestbook.
i have found that by changing msgrows and msgcols in the comment.php i am able to edit the comments input fields to my liking, but adding the msgrows and msgcols attributes to the comments_display form (which i would prefer to do over the hard coding) does nothing. anyone know why this might be?

Offline

#16 2005-10-31 13:55:14

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: increasing the size of the Txp:comment message input field

I’m not 100% on this but I don’t think the plug-in uses the comments_display form. You could use the CSS method as above. When I use the CSS it changes both my blog and guestbook textareas at the same time.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#17 2005-10-31 14:48:44

systrum
Member
Registered: 2004-08-28
Posts: 44

Re: increasing the size of the Txp:comment message input field

i was curious about this. are u referring to a line of code in the textpattern.css?
if so is the line u have specified meant to be an addition to the code, or is it already in there somewhere? because i was not able to see it.

Offline

#18 2005-10-31 14:55:16

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: increasing the size of the Txp:comment message input field

No, it’s used in your site style CSS.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#19 2005-12-22 12:54:32

systrum
Member
Registered: 2004-08-28
Posts: 44

Re: increasing the size of the Txp:comment message input field

just wondering if anyone has been able to move the input fields so that they sit above the comments instead of at the bottom?

Offline

#20 2005-12-22 16:05:42

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: increasing the size of the Txp:comment message input field

Have a look at the “comments_display” form template. You can move things around in there.

Oh! Are you still talking about guestbook?

Last edited by thebombsite (2005-12-22 16:08:33)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#21 2005-12-22 23:14:57

systrum
Member
Registered: 2004-08-28
Posts: 44

Re: increasing the size of the Txp:comment message input field

yes. sorry i wasn’t specific. i already tried rearranging “comments_display” but it doesn’t change anything. is there another way?

Offline

#22 2005-12-22 23:35:50

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: increasing the size of the Txp:comment message input field

No you can’t do it that way with the guestbook plug-in. It does it’s own form-calling. Anyway it can be done but you will need to hack the plug-in code. It is only a case of moving 1 line. It will only affect the guestbook. Are you up for it?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#23 2005-12-23 10:56:05

systrum
Member
Registered: 2004-08-28
Posts: 44

Re: increasing the size of the Txp:comment message input field

yeah, certainly. please let me know

Offline

#24 2005-12-23 15:42:48

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: increasing the size of the Txp:comment message input field

OK. You need to edit the sdr_guestbook function which is the very first function after the help text. The line we need to move is right at the end of this function so scroll down and look for this:-

<code> $out .= commentForm( $ID ); return $out; }
// ——————————————————————————————-</code>
<br />

You need to move the <code>$out .= commentForm( $ID );</code> line. Scroll up a few lines and you should see this:-

<code>
if ($darr) { $out.= “$pagestring_top<ol$commentsid>”.n; $out.= sdr_formatComments($darr, $atts); $out.= n.”</ol>”.n.”$pagestring_bottom”.n.”<br />”;</code>
<br />

You need to place that line immediately above this code so you end up with this:-

<code> $out .= commentForm( $ID );
if ($darr) { $out.= “$pagestring_top<ol$commentsid>”.n; $out.= sdr_formatComments($darr, $atts); $out.= n.”</ol>”.n.”$pagestring_bottom”.n.”<br />”;</code>
<br />

That should complete the move for you. I’m not sure if this will have any effect on the “Preview” though I doubt it as that is a separate function.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB