logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

no_follow links only for ONE category
Is this possible?

Version: 4.1.30


no_follow links only for ONE category
dt
Experienced

Usergroup: Customer
Joined: Aug 18, 2005
Total Topics: 15
Total Posts: 51
Posted 02/17/08 - 10:27 PM:
quote post
#1
Hi

Is it possible to customise links to only affect one (or more...) specific categories?

I have one category where I want to ensure that outgoing links are tagged with the rel="nofollow" attribute. Is there a way to do this?

Thanks.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 02/17/08 - 10:47 PM:
quote post
#2
I am not sure if conditionals would work in the External links appendage, but you could use an if statement in your template...

<IF {CATID} is ##><a href="{TRACKLINKURL}" {EXTERNALLINKS} rel="nofollow">{LINKTITLE}</a><OTHERWISE><a href="{TRACKLINKURL}" {EXTERNALLINKS} >{LINKTITLE}</a></IF>

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 02/20/08 - 03:12 AM:
quote post
#3
The external links appendage involves things that aren't items in categories, so don't test for a category there, just edit the link bit template (Admin -> Templates -> Manage Templates -> Subtemplates).
dt
Experienced

Usergroup: Customer
Joined: Aug 18, 2005
Total Topics: 15
Total Posts: 51
Posted 02/23/08 - 12:41 AM:
quote post
#4
So just to get this right...

In linkbit.tpl, I add the following (making sure that I add the proper category ID number)?

<IF {CATID} is ##><a href="{TRACKLINKURL}" {EXTERNALLINKS} rel="nofollow">{LINKTITLE}</a>< OTHERWISE><a href="{TRACKLINKURL}" {EXTERNALLINKS} >{LINKTITLE}</a></IF>

A couple of questions.

Where exactly will I add this line?

Will this work with rewritten URLs?

Thanks.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
1 of 1 people found this post helpful
Posted 02/23/08 - 01:19 AM:

quote post
#5
dt wrote:
So just to get this right...

In linkbit.tpl, I add the following (making sure that I add the proper category ID number)?

<IF {CATID} is ##><a href="{TRACKLINKURL}" {EXTERNALLINKS} rel="nofollow">{LINKTITLE}</a>< OTHERWISE><a href="{TRACKLINKURL}" {EXTERNALLINKS} >{LINKTITLE}</a></IF>

A couple of questions.

Where exactly will I add this line?

Will this work with rewritten URLs?

Thanks.


Yes, that is correct.

Replace [quote]<a href="{TRACKLINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>[/quote ]
dt
Experienced

Usergroup: Customer
Joined: Aug 18, 2005
Total Topics: 15
Total Posts: 51
Posted 02/23/08 - 01:42 AM:
quote post
#6
Thanks. Much appreciated.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 02/23/08 - 04:16 AM:
quote post
#7
Rewriting makes no difference.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.