Sphene Community Tools

Community

Copyright © 2007-2018 by Herbert Poul

You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools
Board » General » Feature Discussions » Links in posts

What about opening links in posts (like this one) in new window? Users of my sphene based forum are asking about this and I've seen that a lot of other message boards have links displayed this way.

IMO this should be at last config option. Necessary change is rather simple, in contrib/libs/common/text/bbcode.py

return '<a href="' + escape(url) + '">' + linktext + '</a>'


might be changed to:
return '<a target="_blank" href="' + escape(url) + '">' + linktext + '</a>'


Opinions?
i think it would be cool to have this whole string as configuration setting . or at least the attributes of the tag..
because i could imagine that some message board want to open links in new windows, while others don't.. and again others might want to add a rel="nofollow"..

--- Last Edited by Herbert Poul at 2010-02-01 11:50:14 ---
Hey, we have Signatures !!! Great, isn't it ? ;)

Please login to post a reply.



Powered by Sphene Community Tools