Webmastersite.net
Register Log In

strip http://www.
How to?

Comments on strip http://www.

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Jul 21, 2005 - 9:28 PM:

Hey Paul (and other WSN gurus),

Quick question. I wanted to create a toplist such as:

<CONFIG>links,hits;rating,10,descending;descending,,,,0,0,0,0</CONFIG>
<a href="{LINKDETAILSURL}">{LINKURL}</a>

but this brings up the full URL for the listing. Any way to strip that http://www. in front of the URL? Or would I have to get the listing's URL into another field in the link 'profile', then call that custom field up?

THanks
David

PS.: Been setting up the software for about 5 days now and can't stop. LOVING IT. The best thing I have seen for those that don't mind to put in some time to configure a script ENTIRELY to their needs.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Jul 21, 2005 - 10:03 PM:

On another note as well. While stripping that, how can I make each row of the top list to display only 20 characters? I am trying to put a list into a small fixed space.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 22, 2005 - 3:49 PM:

Please read scripts.webmastersite.net/w...inks/wsnmanual/articles/10 . I think you're looking for {LINKBASEURL[nohttp]}

There's no function to cut a url off to x chars, but you can pass such a number for titles or descriptions. Or you can customize the baseurl function in onelink.php if you're able to do that.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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