1- I want to omit “http://” from urls it would be nice to have something like this (parts=”not scheme”)
2- FR filter custom phrased, like omitting www.
3- From some urls I only want the part between www. (or //) and .suffix
http://www.example.com –> example
http://sub.example.com –> sub.example
4- Thanks 😉
————————————————— For those who maybe confused where dose the “port”, “user” and “pass” exactly refers to (like I was first) this picture may help
1- Aha! (trans: Thanks Paul, then I look forward to see that added to your plugin)
2- Aha!! (trans: Thanks Paul, then I hope to see that added to your plugin)
3- Aha? (trans: Thanks Paul, but I don’t get your point. Is that positive or negative?)
4- Aha! (trans: staring at Paul not knowing what to do or say. Finally he makes his decision and says thanks)
A new version of the plugin is up that allows the use of not in the parts parameter and has a new parameter called omit=”” that allows you to specify strings to remove from URLs. This latter parameter should take care of 2 and 3, I think. 3 was a request I was not very enamoured with so I did not write up anything specifically to allow that.
Iam using Parse URL plugin in the comments.
{exp:parse_url parts="host" omit="www."}{comment}{/exp:parse_url}
The result will be “any-domain.com”. Thats OK. It’s what I want.
Then I choose “Yes” for “Automatically turn URLs and email addresses into links?” in “CP Home › Admin › Weblog Administration › Weblog Management › Edit Weblog”.
After this, the real output will be something like this:
<a href="http://www.any-domain.com/?URL=http://www.another-domain.com/name-of-the-entry/">any-domain.com
__In this point the closing tag is missing.
Is it possible fix it? Thanks.
I’m trying to use this with the twitter timeline plugin, but it doesn’t seem to me working:
<ul id="front-twitter" class="front_list">
{exp:twitter_timeline type="user" user="" password="" limit="1"}
<li class="tweet">
{status_relative_date} ago
<div class="status">{exp:parse_url parts="host"}{text}{/exp:parse_url}</div>
</li>
{/exp:twitter_timeline}
<li class="last"> <a href="http://twitter.com/safetyexperts">Follow us on Twitter »</a> </li>
</ul>
Any thoughts on why this isn’t working
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.