Closed (won't fix)
Project:
Nofollow List
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2007 at 12:47 UTC
Updated:
10 Jul 2017 at 15:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jbernat commentedI, too, am unable to get any rel=nofollow to appear in comments that I post.
Perhaps someone can point me to some documentation, if some exists. My
searches came up empty.
The particulars:
Thanks for any help you can offer!
Jim Bernatowicz
Comment #2
rastarr commentedHey guys,
I had the same problem and did a little digging. The one thing I didn't do is enable the Nofollowlist filter in the set up of the various Input types.
To install - enable the module on admin/build/modules, visit your admin/settings/filters and add this to the appropriate filters (in Drupal 5.x, that's Administrator > Site Configuration > Input Formats > pick the filter you want to add it to > configure and enable).
Hope that gets you working. Good idea if the module author added this to the description a little clearer so people like me get it clear in their heads :)
Comment #3
gregglesThanks for debugging and for providing constructive feedback!
Ever since it was first created this project page has stated
I just added a Installation Note in front of it to make it stand out more.
@godmode and @jbernat - can you confirm that this solves your problem as well? If so then that's good news.
Comment #4
Michael-IDA commentedNot working here. Either blacklist or whitelist.
Using:
Drupal -> 5.2
nofollowlist -> 5.x-1.1
My activities for blacklist were:
look for readme -> none found
install into sites/all/modules
enable module
config module for blacklist and give it 4 test URLs
give [administer nofollowlist] to a role
add to all [Input Formats] defined
* all viewing done in different browser (Firefox) than one logged into site (Opera).
clear all cache tables
look at old post with existing blacklist URL -> nofollow not found
clear all cache tables
edit old post, add more blacklist URLs -> nofollow not found
clear all cache tables
create new post with multiple blacklist URLs -> nofollow not found
clear all cache tables
create new post with blacklist URLs in teaser -> nofollow not found on /node list
clear all cache tables
config module for whitelist, delete two URLs
-> nofollow found on custom sidebar block links
-> nofollow not found on regular menu items
-> nofollow not found on anything but custom sidebar block
Clear all cache tables, drink a beer, write up a bug report.
Testing for various combinations of URL paths and attributes, Testing Link formats were:
None ever picked up nofollow attribute in any configuration.
Sam
Admin, inet-design
Managed hosting for the Drupal Content Management System
Comment #5
Michael-IDA commentedTitle fix.
I knew I should have waited to drink that beer.
Comment #6
jbernat commentedYes! This was the missing piece. Thanks for pointing that out.
Jim
Comment #7
greggles@sam-inet: thanks for the very detailed report.
What happens if you edit a piece of content (change it and re-save it) or create a new node. I know that this should have a similar effect to clearing all the cache tables, but maybe it is part of the key? Thanks.
Comment #8
gregglesI can't reproduce this and I've had other people (guardian in irc) confirm that it works properly for them. So I'm closing it.
This module only impacts links that are passed through the filter system. It will only work if the content is sent through the filter a second time (Drupal caches this). To confirm whether it is working, create a new node with a test url in it.
I updated the project page to clarify where/how it works.
Comment #9
Michael-IDA commentedHi greggles,
I'm back!.!..... (sorry for never replying, I gave up on this for D5, but figured I'd give this a go for D6)
The problem hasn't gone away, and to refine the problem, it seems to be very specifically related to the "Homepage:" links left by a commenter. Load up your favorite nofollow highlighter and head to:
http://winetest.fermentedreviews.com/cycles_gladiator_2005_cabernet_sauv...
My whitelist is:
fermentedreviews.com
www.winegiques.com
http://www.winegiques.com
winegiques.com
And I've added Nofollow List to the Input format "Filtered HTML". Both that node and comment are input format "Filtered HTML."
As you'll see, the links in the body text and the comment body to "http://www.winegiques.com" come out okay, but the link in the "Submitted by Suenarita" gets wacked with a "nofollow."
So, since this seems to be a user error, can you point me to what I need to do to get the "Submitted by" field for comments to get whitelisted correctly?
Thanks,
Sam
Site Details:
Drupal 6.13
Nofollow List 6.x-1.0
Comment #10
gregglesAHA!
The module can't ever work on things in the theme layer like that. See attached screenshots for more data...
It would be possible to filter that _at the theme layer_ but that would require code to be implemented by each site.
The best we can do in this module is to provide a convenience function to themers.
I don't plan to work on this but would accept a patch (ideally that included documentation).
Comment #11
Michael-IDA commentedWell Puppy Poo!
That definitely explains why I thought NoFollow had a bug two years ago :( The number one reason the people I support need it are to whitelist commenter's homepages. Theory being, if a commenter leaves something relevant and valid, then they get a positive link.
I don't know the inner workings of this module, but I'll take a swipe at its functioning, so I can get a pointer from you as to how to patch it to do what I want. NoFollow under whitelist works something like this?
1) Every link everywhere gets nofollowed, then
2) Any content that gets filtered then gets the nofollow removed if it matches the whitelist?
And the fix would be something like:
- Adding an exposed hook (callable function) to the Nofollow module, so that passed strings get 'filtered.'
- Having the theme call the hook to pass all non-normally filtered elements to Nofollow to get 'filtered.'*
Which, and that might be grossly oversimplified, leads me to two thoughts, or maybe they're questions?
A) The new exposed function in Nofollow would only need to be 10 lines or so, as it would just be a wrapper for receiving the text, calling the exising Nofollow function(s) that does the filtering already, and returning the filtered text?
B) The second thought is to go "big." Instead of adding the Nofollow filter to input formats, is there someplace in the top most part of a theme set where the entire completed output (e.g. the whole completed webpage which currently goes to the user's browser) can be sent to the new exposed function in Nofollow? That way everything goes through Nofollow's whitelist filtering, not just bits and pieces?
If A) and B) are doable and you can point me to where B) would be in a theme, I'll gladly do the patch for this (and I'll even do the documentation :)
Thanks greggles,
Sam
*Actually, I'd probably be lazy and just wrap the entire comment.tpl.php, node.tpl.php, block.tpl.php, etc. in a call to Nofollow. Saves on trying to track down every individual element that might need filtering...
Comment #12
Michael-IDA commentedEhh, reopened it, so you'd see my last comment :)
Feel free to close this as, what I'm looking for is legitimately a feature request. Which I'll gladly submit in the proper place upon confirmation that A) and B) (or even *) are workable.
Best,
Sam
Comment #13
gregglesI think A is possible with very few lines of code. We can re-purpose this issue as a feature request which works fine.
Comment #14
Michael-IDA commentedThanks greggles,
Hope you had a nice weekend. I'm currently digging through the Theme handbooks to understand how/where to make the proper hooks.* As the more I think of it, the more I like option B).
If you have time and A) isn't more than a few lines of code, can you do A)? If not, I'll dig through the Nofollow module after I get done with understanding D6 theming.
Best,
Sam
* Well, beyond just wrapping "print $submitted;" type statements.
** Beyond the scope of this request, I think I'll look into enhancing Nofollow into adding [target="_blank"] for external link references.
EDIT:
Well, this is becoming a pain, and I'm adding this as notes for myself on what I've already tried.
Doesn't work:
- Module "Submitted By" http://drupal.org/project/submitted_by , as it doesn't modify comment submitted by fields. (Nor does the production version of Token have Hour or Minute formats, so can't recreate the existing comment submitted by format.)
- Editing comment.tpl.php to change "print $submitted;" to "print 'Submitted by ' . theme('username', $comment) . ' on ' . format_date($comment->timestamp, 'custom', 'D, Y-m-d g:i' . ".");"
Comment #15
gaurav.kapoor commentedWe aren't going to maintain D6 release now. Closing the issue.
Comment #16
Michael-IDA commentedHi Gaurav,
I’m not stalking an 8 year old feature request, it’s just an odd coincidence I’m on today, and I saw this pop up on my dashboard. I also noticed you haven’t been on drupal.org (D.O) long, so figured I’d clarify some of the expected uses of D.O issue queues.
# # #
As you’re now the project maintainer, you can close any issue as you desire, but in general feature request get bumped to the latest version, never closed. Feature requests generally stay open, as there is no telling who in an open source project will step up and code it.
Re-setting to generally considered proper issue metadata.
See next comment...
Comment #17
Michael-IDA commentedThat said, this is 8 - 10 years old, and odds are very slim someone is going to step up. As the original firm that requested this, I’ll drop the request. I would then usually change the status to “Closed (outdated),” as there isn’t a “request dropped” status. That leaves it where anyone else can re-open it.
As you want to close this, I’m changing it to “Closed (won’t fix).” Which is what a project maintainer uses, so that way no one else re-opens it. They might add a similar feature request, but they shouldn’t re-open this one. (Bugs can, and do, get re-opened.)
# # #
I’m not one of the grumpy old timers, so if you have any questions, feel free to ask.
Best,
Michael
PS: Sam is no longer with our firm.