Webmastersite.net
Register Log In

Similar links question

Comments on Similar links question

Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Jul 27, 2007 - 2:24 AM:

Hi,

I have data on my directory that has no URL and the similar links function just points back to the base URL of the directory - having no external URL to go to, I guess that's fair enough. My question is, how do I make those URL's point to the similar link's detail page within the directory instead? I assumed that this would be easy but I can't make it work - can you shed some light please?

Just in case I haven't described this very well, let me put it another way:

The similar links on this page www.abc-directory.co.uk/lin...consulting-ltd-866453.html all point to http://www.abc-directory.co.uk how do I make them point to their own relevant details pages?

Thanks,

Jez.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 27, 2007 - 3:02 AM:

On the details template (details.tpl), search for

<!-- BEGIN SIMILAR --> <a href="{TRACKLINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>, <!-- END SIMILAR -->


and change to:

<!-- BEGIN SIMILAR --> <IF {LINKURL}><a href="{TRACKLINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>, <OTHERWISE>
<a href="{LINKDETAILSURL}">{LINKTITLE}</a></IF><!-- END SIMILAR -->

Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Jul 27, 2007 - 3:31 AM:

Is there any chance that you could re post that with the characters and not the ascii codes?

I am assuming that's why it didn't work for me

Thanks.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 27, 2007 - 4:04 AM:

Jez wrote:
Is there any chance that you could re post that with the characters and not the ascii codes?

I am assuming that's why it didn't work for me

Thanks.



Hi Jez

Sorry, I thought putting it in a quote box would allow them, obviously not! So I have attached a txt file for you.



Jill

Attached Files:
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Jul 27, 2007 - 4:21 AM:

Hi Jill,

Thanks for taking the time to do that.

I am guessing that due to different switches being enabled / disabled, that it didn't work. I note that it's displayed other stuff such as comments that are not switched on.

Here's what happened:

www.abc-directory.co.uk/lin...consulting-ltd-866453.html

Jez.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 27, 2007 - 9:46 PM:

Use the code tag for posting html/php, not the quote tag.

babrees' example needs IF changed to <IF, but I'll make links without a url automatically default to the details page, everywhere.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 27, 2007 - 11:21 PM:

OOPS! Sorry Jez, I should've checked for typos!
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Jul 28, 2007 - 1:44 AM:

Thanks Jill - you have been a great help. Thanks also Paul.

Jez.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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