Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#25 2005-12-24 04:54:27

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

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

that worked flawlessly. thanks a million!
although it isnt really related to the input box as such, do u know which line in the code is responsible for the dividers between comment posts?

needing to shift that also

Offline

#26 2005-12-24 23:08:30

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

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

worked it out. sorry for the silly question.
i realized that it was all in the css.

Offline

#27 2006-01-10 13:35:05

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

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

Hi again

Recently discovered that my users are not able to make posts on my guestbook in IE or Opera browsers (mac or windows).
Had a look though the publish.php file and figured that It may attributed to the piece of code below

form method=“post” action=”“ style=“margin-top:2em”

The action attribute is empty. I don’t know why it would work on other browsers and not IE. If you know the destination page the information is to be posted, it might work … could this be a likely cause? and if so, would the destination page simply be the url of that page?

Last edited by systrum (2006-01-10 13:35:31)

Offline

Board footer

Powered by FluxBB