Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
#25 2006-03-18 01:53:35
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: [plugin] [ORPHAN] ajw_if_comment_owner
I can’t make it ready!
Even if I past the default
txp:ajw_if_comment_owner name=“foo,bar”
YES!
else /
NO!
/txp:if_comment_owner
and post the comment as “foo”, it’s still writing NO!
Offline
Re: [plugin] [ORPHAN] ajw_if_comment_owner
you should put txp:ajw_if_comment_owner in the closing tag. i think you missed the ajw.
for the else-tag you should not use txp:else. this plugin works with else /
Offline
#27 2006-03-18 08:33:18
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: [plugin] [ORPHAN] ajw_if_comment_owner
Oh tahnx!!!!!!
But it is the mystake in the plugin’s documentation!
I have just copied it from plugin’s help.
But thanx a lot!!!!
Offline
Re: [plugin] [ORPHAN] ajw_if_comment_owner
Documentations are written by humans!
Nevertheless, this is a great plugin!
Offline
#29 2006-03-18 09:47:03
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Offline
Re: [plugin] [ORPHAN] ajw_if_comment_owner
Great plugin.
But… It is possible to check whether author comments is also an article’s author? In our blog ovsem.net is 6 authors and I would like to differentiate author comments form article author comments.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline