Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

create new variable of domain from URL

Quote Reply
create new variable of domain from URL
in the file "browser_link_list.html" there is this line with the URL variable:

"<a href="<%URL%>" target="_blank"><%URL%></a>"

I want to strip the "http://www." or the first 11 characters from the "URL" variable and create a new variable called "domain" and show this as plain text like this:

<font size="3"><%domain%></font>

Is there a way to do this in that html template page? the only thing I found online is an example of a vbscript function something like this:

<%
domain = URL
domain = Replace(URL, "http://www.", "")
Response.Write domain
%>

or this:

<%
domain = URL
domain = Mid(domain,11)
Response.write domain
%>

What's the code that would work with Links 2.0 and where would I place it for it to work? Thanks.
Subject Author Views Date
Thread create new variable of domain from URL yo Huge 64574 Mar 19, 2013, 12:03 AM
Thread Re: [yo Huge] create new variable of domain from URL
Andy 64174 Mar 19, 2013, 3:44 AM
Thread Re: [Andy] create new variable of domain from URL
yo Huge 63896 Mar 19, 2013, 5:21 AM
Thread Re: [yo Huge] create new variable of domain from URL
Andy 63888 Mar 19, 2013, 7:40 AM
Thread Re: [Andy] create new variable of domain from URL
yo Huge 61199 Mar 20, 2013, 5:26 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 61120 Mar 20, 2013, 6:50 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 60899 Mar 20, 2013, 7:52 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 60902 Mar 20, 2013, 8:14 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 60475 Mar 21, 2013, 1:29 AM
Post Re: [yo Huge] create new variable of domain from URL
Andy 60424 Mar 21, 2013, 1:33 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 60491 Mar 21, 2013, 1:43 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59446 Mar 21, 2013, 5:33 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59468 Mar 21, 2013, 7:17 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59261 Mar 21, 2013, 10:43 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59300 Mar 22, 2013, 12:19 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59229 Mar 22, 2013, 12:45 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59253 Mar 22, 2013, 12:50 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59105 Mar 22, 2013, 2:42 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59192 Mar 22, 2013, 2:54 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59087 Mar 22, 2013, 3:48 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59135 Mar 22, 2013, 5:24 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 58620 Mar 22, 2013, 5:20 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 58502 Mar 22, 2013, 8:55 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 58554 Mar 22, 2013, 10:17 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 58369 Mar 23, 2013, 12:50 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 13720 Mar 23, 2013, 3:01 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 13745 Mar 23, 2013, 3:15 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 13429 Mar 23, 2013, 2:19 PM
Thread Re: [yo Huge] create new variable of domain from URL
yo Huge 13295 Mar 23, 2013, 3:44 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 13136 Mar 23, 2013, 8:18 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 12956 Mar 23, 2013, 11:27 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 12895 Mar 24, 2013, 1:37 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 12928 Mar 24, 2013, 2:45 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 12883 Mar 24, 2013, 3:00 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 12787 Mar 24, 2013, 5:14 AM
Thread Re: [yo Huge] create new variable of domain from URL
yo Huge 12053 Mar 24, 2013, 11:07 PM
Post Re: [yo Huge] create new variable of domain from URL
yo Huge 11969 Mar 25, 2013, 12:17 AM