Remove Nofollow in description

stefffff

Joined: 2007-08-25
Posts: 19
Posted: Thu, 2010-05-13 18:46

hello,

i want to be able to add links in my album description without adding the rel="nofollow"

does anyone knows what file should i modify to get this result? by default gallery2 is adding a rel="nofollow" when i try to insert a link in my album description

thanks in advance

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-05-13 19:25
Quote:
user@server% grep -nri nofollow ./

./lib/smarty_plugins/modifier.markup.php:173: return '<a href="' . $content . '" rel="nofollow">' . $content . '</a>';
./lib/smarty_plugins/modifier.markup.php:176: return '<a href="' . $attributes['default'] . '" rel="nofollow">'

Looks like 2 lines in /lib/smarty_plugins/modifier.markup.php are what you need to edit.

Be aware that if you allow comments, that I think this will allow people to post links in your comments and those won't have the nofollow tag (perfect fodder for spammers) Though that may not be the case, I haven't tested.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
stefffff

Joined: 2007-08-25
Posts: 19
Posted: Thu, 2010-05-13 21:42

great! thanks... works like a charm!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-11-07 16:21

For G2, you're just going to have to make changes to the code base. The liklihood of another G2 release is really low and that would most likely only be for a security issue if found. Not new features.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-11-07 21:11

G3 doesn't inject nofollow into links. By default any HTML added to comments is plain text. You've got to install the HTML Purifier module which doesn't ship with G3 by default. So we are assuming that the site author wants to have HTML on their site by default if you install that.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here