Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: http and www
Ruhh wrote:
I am positive. When a commentator enters www.domain.com, I get the whole site url plus the commentator’s url. For example: http://mydomain.com/www.commentatordomain.com
If some of those plugins doesn’t effect, then you must be wrong, Ruhh, as the www-part have nothing to do with the link generating.
The comment_name does this:
$web = str_replace('http://', '', $web);
if ($web) return '<a href="http://'.htmlspecialchars($web).'"'.$nofollow.'>'.htmlspecialchars($name).'</a>';
In plain words, it does:
- Removes
http://from the address if there is any, other parts have no effect to this. - Then the cleaned up address (with out
http://) is added to the link withhttp://, matter what the links is. - Therefor every link gets the
http://part.
This makes your scenario (almost) impossible. What does links look like in the database’s txp_discuss-table?
Last edited by Gocom (2008-04-22 21:26:41)
Offline
Re: http and www
Sorry for the offtopic, but this (the font tag) is pretty old-school:
<font color="#777777">(<txp:htn_comment_count_user /> times)</font>
It will be better, although not perfect either, something like
<span style="color: #777777">(<txp:htn_comment_count_user /> times)</span>
Or better:
<span class="comment_count_user">(<txp:htn_comment_count_user /> times)</span>
And in your CSS:
.comment_count_user {color: #777}
Offline
#18 2008-04-22 22:14:07
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: http and www
Sarah, it doesn’t look like the tag trace is the one we need. You need to take it from an article page that also has one or more comments that display the problem behaviour.
Offline
Re: http and www
See what Els said above… and copy the entire tag trace. It ends at the bottom of the HTML source and typically contains lots of txp tags.
Offline
#20 2008-04-30 02:53:50
- Ruhh
- Member

- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: http and www
Ok, I finally found out what was wrong. Well, not really but the problem is not found in the comments. It is found in the gho_last_commentator plugin because I edited it to make the commentator names linkable to their websites so when a commentator puts a www in the URL field, the link is not the same as it is in the comment link name.
<txp:Ruhh />
Offline