Webmastersite.net
Register Log In

Add SimilarLinkBit

Comments on Add SimilarLinkBit

fusionx
Experienced

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Aug 25, 2008 - 9:46 PM:

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
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 26, 2008 - 12:29 PM:

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

Usergroup: Customer
Joined: Jun 18, 2008

Total Topics: 22
Total Comments: 85
fusionx
Posted Aug 30, 2008 - 10:57 AM:

This was so easy once the idea clicked..

See it here: www.inpanamacity.com/news-a...vestor-blog-18-thread.html


<!-- 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
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.