Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-08 03:03:42

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

comment name/web solutions?

Anybody have any brilliant solutions for covering a lot of issues with comment name linked as a website when the web field is filled and only a name when no web field is filled? What about if someone forgets the http://, etc?

I’ve been using this basic version, but I get too many errors, and its not flex enough.

<a href="<txp:comment_web>"><txp:comment_name /></a>

matthew


Offline

#2 2007-04-08 18:01:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: comment name/web solutions?

You could simply use <txp:comment_name link="1" /> and use the the preference to never display email addresses. It looks after missing http://.

Alternatively, you could use the chh_if_data pluin.

Offline

#3 2007-04-08 18:25:06

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: comment name/web solutions?

ahh, didn’t know you could do that. its not listed in the wiki as having any attributes, could be added :) thx.


Offline

Board footer

Powered by FluxBB