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 64507 Mar 19, 2013, 12:03 AM
Thread Re: [yo Huge] create new variable of domain from URL
Andy 64108 Mar 19, 2013, 3:44 AM
Thread Re: [Andy] create new variable of domain from URL
yo Huge 63830 Mar 19, 2013, 5:21 AM
Thread Re: [yo Huge] create new variable of domain from URL
Andy 63822 Mar 19, 2013, 7:40 AM
Thread Re: [Andy] create new variable of domain from URL
yo Huge 61133 Mar 20, 2013, 5:26 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 61053 Mar 20, 2013, 6:50 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 60832 Mar 20, 2013, 7:52 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 60836 Mar 20, 2013, 8:14 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 60408 Mar 21, 2013, 1:29 AM
Post Re: [yo Huge] create new variable of domain from URL
Andy 60358 Mar 21, 2013, 1:33 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 60425 Mar 21, 2013, 1:43 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59379 Mar 21, 2013, 5:33 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59402 Mar 21, 2013, 7:17 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59194 Mar 21, 2013, 10:43 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59234 Mar 22, 2013, 12:19 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59163 Mar 22, 2013, 12:45 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59187 Mar 22, 2013, 12:50 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59039 Mar 22, 2013, 2:42 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59126 Mar 22, 2013, 2:54 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 59021 Mar 22, 2013, 3:48 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 59069 Mar 22, 2013, 5:24 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 58553 Mar 22, 2013, 5:20 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 58436 Mar 22, 2013, 8:55 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 58487 Mar 22, 2013, 10:17 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 58303 Mar 23, 2013, 12:50 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 13684 Mar 23, 2013, 3:01 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 13710 Mar 23, 2013, 3:15 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 13393 Mar 23, 2013, 2:19 PM
Thread Re: [yo Huge] create new variable of domain from URL
yo Huge 13259 Mar 23, 2013, 3:44 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 13101 Mar 23, 2013, 8:18 PM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 12920 Mar 23, 2013, 11:27 PM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 12860 Mar 24, 2013, 1:37 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 12892 Mar 24, 2013, 2:45 AM
Thread Re: [yo Huge] create new variable of domain from URL
tandat 12848 Mar 24, 2013, 3:00 AM
Thread Re: [tandat] create new variable of domain from URL
yo Huge 12751 Mar 24, 2013, 5:14 AM
Thread Re: [yo Huge] create new variable of domain from URL
yo Huge 12017 Mar 24, 2013, 11:07 PM
Post Re: [yo Huge] create new variable of domain from URL
yo Huge 11933 Mar 25, 2013, 12:17 AM