Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-02-21 00:52:05

jshan
Member
Registered: 2008-01-09
Posts: 67

Comments and comment_form mystic connection?

Hi,

I’ve been trying to style Comments such that if the personal website is filled by the user, the user name will be displayed with a background image to indicate redirection to an external site; if the personal website is NOT filled, the user name will be displayed as normal text with no background image.

The problem I’m having now is that when the user only fills email, their name will still be displayed as an anchor as “mailto:abc@gmail.com” for example, without background image. When the user has the website filled, the user name will be displayed will be displayed as intended, anchoring to their site, and with a background image.

Can someone please clue me in how the field data from the comment form is passed as parameters to use and style in TXP? I understand tags such as <txp:comment_name> and <txp:comment_time>, but how can I apply CSS depending on whether or not the email or the website is filled by the user.

Thanks for help!

Jay

Last edited by jshan (2009-02-21 00:53:04)

Offline

#2 2009-02-21 01:03:40

jshan
Member
Registered: 2008-01-09
Posts: 67

Re: Comments and comment_form mystic connection?

In addition, is there a way to have the comment_form appended to the end of the article if commenting is allowed, but display all the comments somewhere else, for example, on a side panel next to the article?

Much appreciated!

Offline

Board footer

Powered by FluxBB