• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Welcome to XenForo 1.5 / Assorted Improvements

Will 1.5 automatically recognize base URLs that do not include a subdomain like www. in them as links?

So current vapingblips.com does not automatically like but Vaping Blips does. With the current trend (and google recommendation) being to stop using www in the URL this is starting to cause more instances of people posting site references that do not automatically get linked.

I would be great to see XF automatically detect and link all major top level domains like .com, .org, .gov, etc...
 
That's interesting, can you please post link to those recommendations, thanks
Interesting... I was basing the google part of the comment on common hearsay I saw on some admin sites but now that I try to find a reference I see that it is simply webmaster preference and google doesn't care.

Either way, the question/request still stands. Users frequently post site names without www and they don't currently get recognized as URLs and it would be useful if they would be.
 

Mr Lucky

Well-known member
I was basing the google part of the comment on common hearsay I saw on some admin sites but now that I try to find a reference I see that it is simply webmaster preference and google doesn't care.

That's good to know.

However Google might care if you had both www and non www version of a site, as it could see pages as duplicates, hence people redirect from www to non www or vice versa as good SEO practice.
 

RichardKYA

Well-known member
Quick question about Link title conversion - how do I show the actual URL in a post and make it a link? For example, this URL:

https://xenforo.com/community/tags/customization/

If I simply paste it into a post, it displays the link title, thus:

customization | XenForo Community

If I paste it into a post and use the link button on it to add the URL, I still get the link title, thus:

customization | XenForo Community

I was hoping that the latter method would give me the URL as text but linked too.
How do you get this to work? Whenever I paste a link into a post, it displays as a linked url and not the link title? :confused: <------this face shows my confusion lol

With the same url, instead of getting this....

XenForo Community

....I get this....

Screen Shot 2015-08-23 at 10.56.42.jpg
 

Floyd R Turbo

Well-known member
So I've enabled this on my site, but when I link to another thread it doesn't tack on the "| xyz community" on the end even through that's in the page title.

I linked to this thread for instance and it doesn't show "| Xenforo Community" do I have to add something in {} to make that happen?

For instance this link

Reef Aquarium Fact #2 Clownfish and Sea Anemones live in a partenership call symbios

Does not show "Reef2Reef" at the end for me

huh...it's doesn't here either, even though in the page title if I hover over the browser tab, it does.

XF 1.5 - Welcome to XenForo 1.5 / Assorted Improvements

Wait...now it's not doing it on here either anymore. So is there a {} that I have to enter to add the forum title?
 

Chris D

XenForo developer
Staff member
Nope. After a fair amount of feedback we decided to reapproach where the title actually comes from.

If it exists, the first place we look for a title is the Facebook OpenGraph (or Twitter) metadata. The same title that would be shared on social media if a link was shared there.

If that doesn't exist, that's when we use the actual page title.

In XF most "shareable" pages have the metadata. Otherwise it's just the normal page title.

The page title includes the board title. But the social meta data doesn't.

We were getting plenty of requests about removing the board title from the URL and this was the solution.
 

Chris D

XenForo developer
Staff member
Seems to be working here...

Have you got more examples that don't work?

If you're having problems you should post in the Troubleshooting forum.
 

Martok

Well-known member
The only way is to have the text be different than the link. You could do that with BB code or wrapping the link (but inside the link with plain tags for example. I will admit it does catch me out occasionally.
Laziest way is to omit or add something from/to the end of the link, e.g. remove the trailing slash from the text you paste into the editor, then convert that text to a link using the hyperlink button on the editor:
https://xenforo.com/community/tags/customization
Having played around with this some more, I discovered that the easiest way to make a URL show when required with auto link title enabled is to simply add a space before or after the URL and include that in the selection when linking.

Normal auto link
Media | XenForo Community

Manual link where text is the URL (so still auto links)
Media | XenForo Community

Space before included in the selected text
https://xenforo.com/community/media/?page=2

Space after included in the selected text
https://xenforo.com/community/media/?page=2
 

Nuno

Active member
Hello,

Do I need to define a format using {url} and {title} tags or should I let it empty?
Also, this only work on public nodes?
 
Have you got more examples that don't work?
Yes I do and I'll post them.
Members post all sorts of links that include # !| and so on and this is where it becomes a mess.
The feature otherwise is long awaited and I love it, but you need to include more case scenario where for example links to some sites include various tracking parameters.
 

Chris D

XenForo developer
Staff member
Well, we can only do that with some specific examples. Links with # in should work because they are valid. Links with ! in possibly aren't valid. But to work that out properly we'd need full examples.