Title |
Adding Alexa Site Information Links |
Description |
Stripping "http://www." from URLs |
Message Text |
I would like to add a link to Alexa Site Information for each of the links in WSNLinks. (For more information see http://pages.alexa.com/prod_serv/site_details.html)
The basic issue is that I need to use the following URL:
partner.alexa.com/amzn/redi...yourID&url=examplesite.com
Where "examplesite.com" is replaced (in theory) with "{LINKURL}".
{LINKURL} of course is replaced with "http://www.examplesite.com" which contains the unwanted string "http://www."
What is the best and simplest way to strip the "http://www." so as to have a variable that contains "examplesite.com" available?
I was wondering if there was some way of doing this at the database level. My line of thought is that I would create an additional field and using the URL field's input, strip the URL and propagate the new field with just the domain. Within WSNLinks there would also be need to be a new variable be created, for example "{LINKDOMAIN}". What php script would this new variable be created in?
I was thinking that if this is possible that the end URL to link to Alexa site info would look like:
<
pre class="code">partner.alexa.com/amzn/redi...ourID&url={LINKDOMAIN}
Anyway, could someone give me an idea of how to do this? I am not a programmer, but I could be able to make these modifications with some direction.
Your help would be appreciated. |
Rating |
0/5 based on 0 votes.
|
Ownership |
avidstoryteller |
Views |
1,629 views. Averaging 0 views per day. |
Similar Topics |
|
Submission Date |
Apr 20, 2006 - 11:45 AM |