Webmastersite.net
Register Log In

Adding Alexa Site Information Links
Stripping "http://www." from URLs

Comments on Adding Alexa Site Information Links

avidstoryteller
Beginner

Usergroup: Customer
Joined: Oct 10, 2005
Location: Moncton, New Brunswick, Canada

Total Topics: 5
Total Comments: 6
Posted Apr 20, 2006 - 11:45 AM:

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:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 20, 2006 - 7:02 PM:

As listed at scripts.webmastersite.net/w...inks/wsnmanual/articles/10 there's a template variable {LINKBASEURL} which accepts a nohttp parameter for that purpose.
2222a
Member

Usergroup: Customer
Joined: May 13, 2007

Total Topics: 16
Total Comments: 37
2222a
Posted May 24, 2007 - 3:10 PM:

does alexa charge for this now? I am trying to add it but I can't seem to find it.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.