Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-22 15:12:41

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

http and www

Sometimes I get URLs without the http:// in the website field of the comments. Is there a way to give in the http:// when there is none so I would not have to go edit the comment and put the http:// in the URL?


<txp:Ruhh />

Offline

#2 2008-04-22 15:37:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: http and www

textpattern adds the http if not there so you do not have to worry about it.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-04-22 16:42:08

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: http and www

Really? It doesn’t for me. It adds the whole site URL then the commentator’s website when there is no http.


<txp:Ruhh />

Offline

#4 2008-04-22 16:50:31

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: http and www

Sarah, can you provide an exact example of what a commenter submits (in the URL field) and how that looks on the comments tab and on the website in the list of comments?

Which version of TXP are you using?

Offline

#5 2008-04-22 17:03:39

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: http and www

Example: www.domain.com

That is what I get from a commentator in the Comments tab and I am using the latest version, 4.0.6.


<txp:Ruhh />

Offline

#6 2008-04-22 17:31:39

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: http and www

Yiannis, do you have a TXP version that automatically adds the http:// part if it’s missing?
Mine doesn’t. Should be easy to fix by automatically correcting the URLs when they are submitted.

Offline

#7 2008-04-22 17:42:39

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: http and www

Mine doesn’t add it (the “http://”) to the database, but when the URL is output by a txp tag, it is done correctly.

In other words, in my installation, it doesnt care if commenters add the “http://” or not (and so, it’s saved with or without it). When the link is rendered on the comment, it works (that is, the “http://” part is added if missing).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#8 2008-04-22 17:45:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: http and www

The txp:comment_name tag does that correctly when using the URL in the link, but the txp:comment_web tag simply outputs the URL as entered, which is not very consistent behaviour.

Last edited by ruud (2008-04-22 17:46:22)

Offline

#9 2008-04-22 17:47:20

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: http and www

I am assuming the http:// is only added when it’s like domain.com but if it’s www.domain.com, the http:// won’t be added.

I am using the comment name tag with link=1 or without it, doesn’t matter because it’s on by default already.

Last edited by Ruhh (2008-04-22 17:48:51)


<txp:Ruhh />

Offline

#10 2008-04-22 18:08:37

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: http and www

It doesn’t matter if the domain starts with www.
<txp:comment_name /> always makes sure that domain starts with http:// and if not, it’s added automatically.

Are you absolutely, 100% sure that you’re using comment_name and not comment_web? If this happens with comment_name, I’d like to see an URL that demonstrates the problem and a tag trace.

Offline

#11 2008-04-22 18:43:30

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: http and www

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

I have edited the commentator’s URL but if I get it again, I will provide you a screenshot.


<txp:Ruhh />

Offline

#12 2008-04-22 19:04:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: http and www

Can you post a tag trace and the template/form used for displaying comments?

Offline

Board footer

Powered by FluxBB