ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Popup Links in Forum

May 08, 2008 2:41pm

Subscribe [4]
  • #1 / May 08, 2008 2:41pm

    coolp

    4 posts

    In my EE discussion forum, I have “Auto-convert URLs and email addresses into links?” set to “Yes”, but the links appear in the same browser. My forum members are asking how to make those links pop up in another browser.

    I remember reading something in the documentation where this was possible, but can’t find it anymore. I only allow posts of type “Auto < /br>” and “Allow only safe HTML” if that makes a difference.

    Also, is there a way to let certain users eneter full HTML, while others can only enter safe HTML?

    Thanks.

  • #2 / May 08, 2008 4:46pm

    Arun S.

    792 posts

    Have a look at the hidden configuration variables:
    http://expressionengine.com/wiki/Hidden_Configuration_Variables/#popup_link

    I think this uses javascript to open links in another window.  I’m not sure if it can be limited to the forum, it might be site-wide.

  • #3 / May 08, 2008 4:47pm

    Ingmar

    29245 posts

    1. There is a hidden configuration variable, but you need to set it for the entire site. You cannot change that behavior on a per-case basis.

    2. Superadmins are exempt from all such checks. Generally, this is not configurable per member group.

  • #4 / May 08, 2008 5:25pm

    coolp

    4 posts

    Thank you both for the quick response.

    Ingmar, regarding your answer to #2, although I’m a superadmin, I don’t believe I was able too embed YouTube code (it just posted as text.) How would I post embed code, while forcing the rest of the users to use safe HTML only?

  • #5 / May 08, 2008 5:29pm

    Ingmar

    29245 posts

    And you could post it when allowing “All HTML”? Because there is still some “absolutely” forbidden stuff the EE will simply filter out, even when it comes from a SuperAdmin.

  • #6 / Sep 08, 2008 4:04pm

    Lavi Yatziv

    28 posts

    Just a quick thought.

    perhaps if you used some fancy php? at the top of your template?

    <?php
    if (!$conf['popup_link'] = 'y') 
    $conf['popup_link'] = 'y'; 
    ?>
    
    {body of your forum}
    
    <?php $conf['popup_link'] = 'n'; // to put things back in place at the end of the forum
    ?>

    Would this work or is $conf[‘popup_link’] not accessible this way?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases