Help - Search - Members - Calendar
Full Version: Comment User Customization
Movable Type Community Forum > Additional Resources > Tips and Tricks
robsmt
Hi from Brazil, my name is Roberlan, i have a movable type 2.661 blog. I see a lot of xhtml/css blog/sites with a interesting feature: the comments made by the blog owner have a different background color, color or icon. somebodu knows any way to achieve this effect in MT? is this any plugin? or is made with php? i found some plugins for WordPress that do this, but not for MT 2.661. Can you help me, please?
mellow.gif
Thanks in advance
(sorry my poor english)
npunter
Author Highlighting in MT

There is probably a million ways to achieve this, I cannot remember exactly where I came across this method, but it requires the MT Switch Plugin.

Once the plugin is installed, I inserted a class to the < dt > and < dd > elements that are used to structure the author and text for each comment. This class would only exist if the comment was authored by me.

Using the Switch plugin’s syntax I added this to the entry template:

CODE
<dt <MTSwitch value="[MTCommentAuthor]">
<MTSwCase value="My Name"> class="name"</MTSwCase>
</MTSwitch>>


While the example above uses [MTCommentAuthor], the plugin allows you to use any MT tag.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.