Project Page:
http://drupal.org/sandbox/surdotly/1872684
Repository:
git clone --recursive --branch 6.x-1.x git.drupal.org:sandbox/surdotly/1872684.git surly
Core:
6.x
Description:
Sur.ly module protects your outbound links in comments and nodes (configurable)
by replacing them with safe links. Once a visitor clicks on a replaced link,
he will be directed to a special interstitial page on Sur.ly.
Sur.ly analyzes the target page and warns the visitor about any potential
threats or adult content.
Links published by users can be too long or contain some bad words. Optionally
Sur.ly module allows to shorten links by replacing them with alphanumeric
identifiers that look neat and convenient.
Please note that additional request to Sur.ly will be sent when link
shortening is enabled.
Module includes GPLv3-licensed source code of Sur.ly SDK. It powers Sur.ly extensions for other CMS'es (WordPress, phpBB, seel full list here: http://sur.ly/download), so I do not see any other choice but to include it in the module.
Features:
Replace links in comments
Replace links in nodes
URL Shortening
Domains white list
Customizable interstitial page
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | sur_ly_1.PNG | 9.25 KB | teyser |
Comments
Comment #1
trogels commentedHi,
Looks interesting :)
I have a few comments:
-You should use libraries API to handle the libraries you use in the module. I have a sandbox module you can use as an example http://drupal.org/node/1880994 it's Drupal 7 though. I'm not sure for Drupal 6 but I guess it works kinda the same way.
-Function drupal_add_js shouldn't be called from template files.
-Looking through your module file there's some code style issues, I guess you can more using PAReview.
-I'm not sure if the class DrupalSurly belongs in the module file.
Cheers,
Troels
Comment #2
monymirzaComment #3
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
surdotly commentedHi guys, thanks for review!
-Removed drupal_add_js from template files.
-Done an extensive PAReview.
-Moved class DrupalSurly to separate file.
-Added Libraries API to load Surly SDK library.
Comment #5
teyser commentedHi Surdotly,
When I enabled this module, I got fatal error. Could you please look into this.
I understand,It requires the surly library.But it should be an user friendly message like how the print module is working.
PFA.
Regards,
-Raj.
Comment #6
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxsurdotly1872684git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #7
surdotly commentedThanks for your feedback!
-Done an extensive PAReview. (see http://ventral.org/pareview/httpgitdrupalorgsandboxsurdotly1872684git)
-Fixed issue with fatal error (http://drupal.org/node/1888318#comment-7386118)
-Added warning when surly-sdk lib not found.
Comment #8
kscheirerYou have a number of problems that should be fixed before this is RTBC:
First off, this seems best implemented as an input filter. This is Drupal's built-in mechanism for altering content before displaying it to the user, read this handbook page for more information: https://drupal.org/node/213156.
Bare PHP is not allowed in Drupal in most cases. This code belongs in a hook_requirements() call. Left the way it is, it will be executed for every Drupal page load.
In surly_menu() you are exposing all your user ids to the public by leaving the access callback as just TRUE. I also don't see where you're making use of this function.
I'm not sure what all is going on in surly_config.tpl.php, but that looks mighty complicated and at least some of that should be in a theme function instead.
----
Top Shelf Modules - Enterprise modules from the community for the community.
Comment #9
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.