Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-07-28 21:20:04

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: [plugin] [ORPHAN] ajw_if_comment_owner

What are you wanting it to do? No one can tell you where to put it unless you specify what it is you want it to accomplish.

Offline

#14 2005-07-28 21:55:44

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_if_comment_owner

I think I know whatcha mean. (sry I didn’t respond sooner, I didn’t understand your question at first and was too lazy to type a question asking you to be more specific)

Try something like this:

<pre>
<div class=”<txp:ajw_comment_alt even=“foo” odd=“bar” /><txp:ajw_if_comment_owner name=“your name”> dressfordialogue</txp:ajw_if_comment_owner>”> <txp:glx_gravatar class=“gravatar” /> <p><txp:message /></p> <p><txp:comment_name /> &raquo; <txp:comment_time /></p>
</div>
</pre>

That work for ya?

Offline

#15 2005-07-28 23:18:30

dressfordialogue
New Member
Registered: 2004-11-18
Posts: 8

Re: [plugin] [ORPHAN] ajw_if_comment_owner

Unfortunately, my host is having issues at the moment. Will try it as soon as it’s back up.

Thank you for your help. I’ll tell you how it goes.

Offline

#16 2005-07-29 03:42:14

dressfordialogue
New Member
Registered: 2004-11-18
Posts: 8

Re: [plugin] [ORPHAN] ajw_if_comment_owner

Okay, just had a chance to try. Working nicely. Thanks again Andrew.

Offline

#17 2005-09-20 15:57:30

zebreus
New Member
From: Sweden
Registered: 2005-09-16
Posts: 9

Re: [plugin] [ORPHAN] ajw_if_comment_owner

I use this code

< txp:ajw_if_comment_owner name=“Ola” email=“o.cewers@home.se” >
< div class=“divcommentsmademe” >
< else / >
< div class=“divcommentsmade” >
< /txp:ajw_if_comment_owner >

without the spaces before and after

the problem is that it seems to output the code after the else tag always even if the name and/or email is the same as in the comment

Last edited by zebreus (2005-09-20 16:03:23)

Offline

#18 2005-09-22 23:28:22

zebreus
New Member
From: Sweden
Registered: 2005-09-16
Posts: 9

Re: [plugin] [ORPHAN] ajw_if_comment_owner

anyone? how can help me with the last post?

Offline

#19 2005-09-23 01:45:11

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_if_comment_owner

Sorry zebreus, I’m dealing with a slight situation atm. I’ll try and get back to you sometime in the next day, after I get my hosting situation resolved.

Offline

#20 2005-09-27 12:07:54

zebreus
New Member
From: Sweden
Registered: 2005-09-16
Posts: 9

Re: [plugin] [ORPHAN] ajw_if_comment_owner

Andrew: Have som time?

Offline

#21 2005-09-27 14:50:51

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_if_comment_owner

Yes, finally. I’ll look into it today.

Offline

#22 2005-10-01 18:33:26

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_if_comment_owner

I apologize for not getting back to you sooner, zebreus. Actually what I thought was a bug is really just a simple change to your form. What you want is “strict” mode; currently you’re using a “loose” mode, where it’s looking for either “Foo” or email “foo@bar.com”. Strict mode will change that so only if both Name and email match will it output the first item. This would change the plugin tag to read:

<txp:ajw_if_comment_owner name="Foo" email="foobar.com” strict=“1”>@

Hope that helps!

Last edited by Andrew (2005-10-01 18:35:10)

Offline

#23 2005-10-01 20:19:13

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: [plugin] [ORPHAN] ajw_if_comment_owner

I missed this very cool plugin, another nice one Andrew :-)

I’ll try this and report…


.: Retired :.

Offline

#24 2005-10-29 19:31:33

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] ajw_if_comment_owner

I posted the question below a few weeks ago in the sdr_guestbook thread, but as I’ve got no answers so far, I might as well try here.

I would like to get the ajw_if_comment_owner plugin, that I use to style my own comments differently, to work with sdr_guestbook.
Right now I have this comment form (which is used by both the regular comments and the guestbook):
<code>
<txp:ajw_if_comment_owner name=“Els”>
<div class=“commenterme”><else /><div class=“commenter”>
</txp:ajw_if_comment_owner>
<strong><txp:comment_name /></strong> · <txp:comment_time />
</div>
<txp:ajw_if_comment_owner name=“Els”>
<div class=“messageme”><else /><div class=“message”>
</txp:ajw_if_comment_owner><txp:message />
</div>
</code>
In regular comments it’s working fine, but the guestbook comments always output the div class that comes after <else />, so there is no different styling.

Now because it does recognise the tag after <else />, I assume it’s something in the first part, <txp:ajw_if_comment_owner name="Els">, that is not recognised by the sdr_guestbook code. So I thought it might be possible to add ‘something’ to the code to make it recognise whatever it is that ajw_comment_owner is using.

Please bear in mind that I’m a complete php illiterate, so if I’m talking absolute nonsense here, just tell me so. But if there is a way to do this I’d be very happy if someone can tell me how, what and where.

Offline

Board footer

Powered by FluxBB