WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

strip http://www.
How to?

Version: 3.20
printPrint


strip http://www.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 07/21/05 - 08:28 PM:
quote post
#1
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="http://www.webmastersite.net/forums/{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: 88
Total Posts: 304
Posted 07/21/05 - 09:03 PM:
quote post
#2
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 07/22/05 - 02:49 PM:
quote post
#3
Please read http://scripts.webmastersite.net/wsnlinks/wsnmanu... . 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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.