I am wondering what is the best way to preserve viewing certain url patterns in forum posts only for authenticated users? So that guests can see something like "please log in to view the link", as per most stand-alone forums?

  • Are those links internal or external? And are they in Link field or body filed content?
    – gilzero
    Jul 5, 2012 at 3:20
  • They are external and in body field.
    – alfish
    Dec 23, 2012 at 23:18

1 Answer 1


Im not finding a module for that but what I would do is use jQuery to convert all links tags and their content in the "Content area" to [Please login to view this link] this is only loaded if the user is anonymous.

The function .replaceWith() http://api.jquery.com/replaceWith/ can be used

  • Can you please elaborte on how to use jQuery to do so?
    – alfish
    Jul 4, 2012 at 13:58
  • use Jquery .replaceWith()
    – frazras
    Jul 4, 2012 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.