Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2008-04-22 19:23:38
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: http and www
tag trace? well, here is the form used for displaying comments:
<div class="<txp:sed_get_comment_class />">
<txp:comment_anchor />
<txp:glx_gravatar size="50" default="http://i253.photobucket.com/albums/hh62/withouts/stuff/gdefault.png" class="gravatar" />
<b><txp:sed_comment_time class="comment-time" format="%b %e" /></b><br />
<txp:comment_name link="1" /> commented <font color="#777777">(<txp:htn_comment_count_user /> times)</font><br />
<div class="article">
<txp:comment_message />
</div>
#<txp:sed_comment_number/> <txp:rah_commentquoting_js />
<br />
</div>
<br />
<txp:Ruhh />
Offline
#14 2008-04-22 20:14:45
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: http and www
Offline
#15 2008-04-22 21:13:40
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: http and www
Oh ok. Well I don’t quite understand it but here is what I got:
<!-- txp tag trace:
[SQL (0.000903): select name, data from txp_lang where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.000579): select name, code, version from txp_plugin where status = 1]
[SQL (0.000091): select ID,Section from textpattern where url_title like 'tapping-keys' AND Section='post' and Status >= 4 limit 1]
[SQL (0.000253): select name from txp_section where `name` like 'post' limit 1]
[SQL (0.000057): select name from txp_category where `name` like 'tapping-keys' limit 1]
[SQL (0.000053): select name from txp_category where `name` like 'tapping-keys' limit 1]
[SQL (0.000054): select name from txp_section where `name` like 'post' limit 1]
[SQL (0.000406): select * from txp_section where name = 'post' limit 1]
[SQL (0.000459): select *, unix_timestamp(Posted) as uPosted from textpattern where ID=42 and Status in (4,5)]
[article 42]
[SQL (0.000228): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted > '2008-04-20 19:13:50' and Section = 'post' and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.000490): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted < '2008-04-20 19:13:50' and Section = 'post' and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.000050): select host from txp_log where ip='24.117.179.121' limit 1]
[SQL (0.000051): select user_html from txp_page where name='default']
-->
Last edited by Ruhh (2008-04-22 22:02:30)
<txp:Ruhh />
Offline
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