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

Register | Forgot Password

Add SimilarLinkBit

Version: 5.0.1
Status: left as hack
printPrint


Add SimilarLinkBit
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 19
Total Posts: 77
Posted 08/25/08 - 06:46 PM:
quote post
#1
I'd love to see a template for a Similar Links Bit.

I have free listings that are linked directly to the site in question, assuming they have a URL.

I also have paid listings that go to a detail page with much more info.

In a Similar Links Bit, I'd want to add a conditional to the display of the links by type, and modify the resulting URLs appropriately, as well as determine if the listing has a URL associated or not.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 08/26/08 - 09:29 AM:
quote post
#2
Won't be standard because it's only on one page in the default templates as far as I recall, so an extra template for it would make things harder instead of easier. If you use it tons of places, use [INSERTFILE=similarbit] and add a similarbit custom template for it.

"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
fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008
Total Topics: 19
Total Posts: 77
Posted 08/30/08 - 07:57 AM:
quote post
#3
This was so easy once the idea clicked..

See it here: http://www.inpanamacity.com/news-and-media/blogs/...


<!-- similiar links custom template.
call with [insertfile=similarbit]

used to differentiate sponsored listing from regular (free) listing in:
Combined details and comments
-->

<table width="600">
<IF {LINKTYPE} is sponsored>
<tr>
<td valign="top" class="sponsoredlink">
<a href="http://www.mysite.com/{LINKDETAILSURL}" title="{LINKTITLE} In Panama City, Panama">{LINKTITLE}</a> {LINKNEW} {LINKISUPDATED}

<IF {LINKISREAD}><img src="http://www.mysite.com/{IMAGESURL}/visited.gif" alt="already viewed {LINKTITLE}" /></IF> {LINKADMIN}
</td>
</tr>
<ELSE>
<tr>
<td valign="top" class="link">
<a href="http://www.mysite.com/{LINKURL}" title="{LINKTITLE} In Panama City, Panama" {EXTERNALLINKS}>{LINKTITLE}</a> {LINKNEW} {LINKISUPDATED}
<img src="http://www.mysite.com/{IMAGESURL}/external_link.png" alt="This link opens in a new window and goes directly to {LINKTITLE}'s own web site" />
<IF {LINKISREAD}><img src="http://www.mysite.com/{IMAGESURL}/visited.gif" alt="already viewed (LINKTITLE}" /></IF> {LINKADMIN}
</td>
</tr>
</IF>
</table>
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.