EllisLab text mark
Advanced Search
     
NoFollow Plugin and Whitelist
Posted: 07 June 2008 04:02 PM
Joined: 2007-11-20
327 posts

I started using the No Follow plugin a couple weeks ago for blog comments. It works great, except that it seems to ignore my whitelist. I think I’m using it correctly. Here is slightly stripped version of what I’m doing:

{exp:no_follow whitelist="y"}
{comment}
{
/exp:no_follow} 

I added a URL that had been posted in a comment to the whitelist, but it still shows up nofollowed in the source.

This plugin was created in January 2005, so I’m wondering if there have been some database changes that have disabled the whitelist support in this plugin? I’m using EE 1.63.

 Signature 

Tim


TVMCalcs.com - New and Improved! Now proudly powered by EE.

 
Posted: 05 November 2008 03:26 PM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2008-07-16
32 posts

I am having a similar issue with the No Follow plugin not excluding designated groups. I have tried to exclude 2 groups URL’s using the parameter “group”. Here is my code:

{exp:comment:entries sort="asc" weblog="blog|prof_ergo"}
<div class="{switch="comment_list|comment_list_alt"}">
    
{exp:no_follow group="1|6"}
        {comment}
    {
/exp:no_follow}
    
<p>By {name} on {comment_date format="%M %d, %Y"}</p>
</
div><!-- closing .comment_list div -->
{/exp:comment:entries} 

I have tried excluding groups using the group ID and using the group name without any results. Every link in my comments regardless of who posted them receives rel=“no_follow” attributes.

I have also tried conditionals like this:

{exp:comment:entries sort="asc" weblog="blog|prof_ergo"}
<div class="{switch="comment_list|comment_list_alt"}">
    
{if member_group == "1|6"}
        {comment}
    {if
:elseif group != "1|6"}
    {exp
:no_follow whitelist="n"}
        {comment}
    {
/exp:no_follow}
    {
/if}
    
<p>By {name} on {comment_date format="%M %d, %Y"}</p>
</
div><!-- closing .comment_list div -->
{/exp:comment:entries} 

But I received the same results. Am I misusing this plugin? I found little in the forums regarding using it. Or alternately, is there a better plugin that would accomplish the same thing?

 Signature 

Brian Hull
Independent Web Designer
Second Lamppost

 
Posted: 05 March 2009 04:51 PM   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-12-17
24 posts

I needed this to work so on line 111 I changed this:

if ($whitelist == 'y' && $DB->table_exists('whitelisted')) 

to

if ($whitelist == 'y' && $DB->table_exists('exp_whitelisted')) 

Yay.

 
Posted: 06 March 2009 01:57 AM   [ # 3 ]   [ Rating: 0 ]
Joined: 2007-11-20
327 posts

Well, that seems to make sense. The next line of code is clearly constructing a query to pull data from the exp_whitelisted table. I’ll give this a shot. Thanks.

Yup, that seems to do the trick.

 Signature 

Tim


TVMCalcs.com - New and Improved! Now proudly powered by EE.

 
Posted: 06 March 2009 06:19 PM   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2008-07-16
32 posts

Thanks Applepie23. I abandoned this after not getting a response and not being able to find the answer. I’ll give it a try and let you know how it turns out.

 Signature 

Brian Hull
Independent Web Designer
Second Lamppost