Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-05-29 21:15:03

alivato
Member
Registered: 2011-03-31
Posts: 151

Plugin searching

Good afternoon.
Put if not difficult, so these plugins.
Download does not work.
Thx.

gaw_if_comment_preview

sed_comment_pack

Last edited by alivato (2013-05-29 21:17:17)

Offline

#2 2013-05-29 22:49:50

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Plugin searching

alivato wrote:

gaw_if_comment_preview

Try if the core tag if_comments_preview does what you want.

sed_comment_pack

Uploaded my most recent copy (0.7.2)

Last edited by uli (2013-05-29 22:50:30)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2013-10-12 10:24:12

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: Plugin searching

Where can I download this plugin?

On site textpattern.org (plugin page), error 404

gva_commentclass

Last edited by alivato (2013-10-12 12:40:26)

Offline

#4 2013-10-12 12:49:18

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Plugin searching

Here is the link. But you can probably replace it by

<txp:variable name="comment_email" value='<txp:comment_email />' />
<txp:if_variable name="comment_email" value="my.own@email">class="owner"</txp:if_variable>

Offline

#5 2013-10-12 12:57:51

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Plugin searching

Isn’t this another plugin that you might work around with core tags, i.e. variable/if_variable plus comment_email?

Edit: Wow, dawdled too long with my answer ;)

Last edited by uli (2013-10-12 12:59:57)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2013-10-12 13:45:21

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: Plugin searching

thx. but ((

I don’t understand. I can’t add class to comments both with the help of plugin and code.

Could you please show in an example.

Last edited by alivato (2013-10-12 13:46:29)

Offline

#7 2013-10-12 13:58:46

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Plugin searching

We’d need your code, alivato.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2013-10-12 14:09:32

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: Plugin searching

ok.

mail: some@domain.com

comment_form

<txp:if_comments_preview> 
<div style="float: left; color: #8c0000; padding-bottom: 5px; font: 13px MyFont;"> 
Just Preview
</div> 
</txp:if_comments_preview>
<div class="comf">
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><txp:comment_name_input /> <label for="name"><txp:text item="comment_name" /></label></td>
  </tr>
  <tr>
    <td><txp:comment_email_input /> <label for="email"><txp:text item="comment_email" /></label></td>
  </tr>
  <tr>
    <td><label for="message"><txp:text item="comment_message" /></label></td>
  </tr>
  <tr>
    <td valign="top"><txp:comment_message_input /></td>
  </tr>
  <tr>  
<td valign="bottom">
<div class="stl"><txp:comment_preview /></div>
<div class="str"><txp:comment_submit /></div>
</td>
  </tr>
</table>
</div>

comments_display

<div class="label_com" id="<txp:text item="comment" />"><txp:comments_invite textonly="1" showalways="1" showcount="0" /></div>
<txp:comments />
<txp:if_comments_preview>
<div id="cpreview">
<txp:comments_preview />
</div>
</txp:if_comments_preview>
<txp:if_comments_allowed>
<txp:comments_form isize="25" msgcols="45" msgrows="15" />
<txp:else />
<p><txp:text item="comments_closed" /></p>
</txp:if_comments_allowed>

comments

<div class="avatar"><txp:glx_gravatar size="40" default="10.jpg" rating="PG" usecache="0" /></div>
<div class="message"><txp:comment_message /></div>
<div class="ctime"> <txp:sed_comment_number />
<txp:comment_name /> &mdash; <txp:comment_time /></div>

Last edited by alivato (2013-10-12 14:14:39)

Offline

#9 2013-10-12 14:38:50

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Plugin searching

You’d probably want etc’s code in your comment_form: Put it into <div class="comf">, between comf and the closing apostrophe. Then replace in etc’s code class="owner" with owner {Edit: The space before owner gets swallowed by forum’s Textile} and use the desired email address.

Last edited by uli (2013-10-12 14:40:24)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2013-10-12 15:38:16

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: Plugin searching

How?

comment_form

<div class="comf">
<txp:variable name="comment_email" value='<txp:comment_email />' />
<txp:if_variable name="comment_email" value="some@domain.com">class="owner"</txp:if_variable>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><txp:comment_name_input /> <label for="name"><txp:text item="comment_name" /></label></td>
  </tr>
  <tr>
    <td><txp:comment_email_input /> <label for="email"><txp:text item="comment_email" /></label></td>
  </tr>
  <tr>
    <td><label for="message"><txp:text item="comment_message" /></label></td>
  </tr>
  <tr>
    <td valign="top"><txp:comment_message_input /></td>
  </tr>
  <tr>  
<td valign="bottom">
<div class="stl"><txp:comment_preview /></div>
<div class="str"><txp:comment_submit /></div>
</td>
  </tr>
</table>
</div>

I do not get it.

A plug-in is not possible to change the background color, it only adds the text autorcomment

I need to change the background color for comment admin. (without plugin)
CSS:

.class_name {
      background-color: green;
}

?

Last edited by alivato (2013-10-12 17:06:34)

Offline

#11 2013-10-12 17:04:34

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Plugin searching

Try this:

comments

<txp:variable name="comment_email" value='<txp:comment_email />' />
<div class="avatar"><txp:glx_gravatar size="40" default="10.jpg" rating="PG" usecache="0" /></div>
<div class='message<txp:if_variable name="comment_email" value="admin@email"> class_name</txp:if_variable>'><txp:comment_message /></div>
<div class="ctime"> <txp:sed_comment_number />
<txp:comment_name /> &mdash; <txp:comment_time /></div>

Offline

#12 2013-10-12 17:33:16

alivato
Member
Registered: 2011-03-31
Posts: 151

Re: Plugin searching

It works, thx.

Not much changed the code )

<txp:variable name="comment_email" value='<txp:comment_email />' />
<div class="onecom<txp:if_variable name="comment_email" value="admin@domain.com"> 
authorcom</txp:if_variable>">
<div class="avatar"><txp:glx_gravatar size="40" default="10.jpg" rating="PG" usecache="0" /></div>
<div class='message'><txp:comment_message /></div>
<div class="ctime"> <txp:sed_comment_number />
<txp:comment_name /> &mdash; <txp:comment_time /></div>
</div>

Last edited by alivato (2013-10-12 17:33:45)

Offline

Board footer

Powered by FluxBB