1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Password Protected Nodes 1.2.9

Protected your nodes with more than permissions!

  1. Liam W

    Liam W Well-Known Member

    Liam W submitted a new resource:

    Password Protected Nodes - Password protect forums and pages!

    Read more about this resource...
  2. AndreaMarucci

    AndreaMarucci Well-Known Member

    Wow, I don't need it now but it's surely interesting. My compliments!
  3. xf_phantom

    xf_phantom Well-Known Member

    Great, just another addon overwriting the complete method and breaking all other addons extending the same class...:p

    You should really avoid to do this, pls:)


    class PasswordProtectedForums_Extend_ControllerAdmin_Page extends XFCP_PasswordProtectedForums_Extend_ControllerAdmin_Page
    /* (non-PHPdoc)
        * @see XenForo_ControllerAdmin_Page::actionSave()
    public function actionSave()
    // TODO Auto-generated method stub

         if (

    $pageData $this->_input->filter(array(
    'title' => XenForo_Input::STRING,
    'description' => XenForo_Input::STRING,
    'node_name' => XenForo_Input::STRING,
    'node_type_id' => XenForo_Input::BINARY,
    'parent_node_id' => XenForo_Input::UINT,
    'display_order' => XenForo_Input::UINT,
    'display_in_list' => XenForo_Input::UINT,
    'style_id' => XenForo_Input::UINT,
    'log_visits' => XenForo_Input::UINT,
    'list_siblings' => XenForo_Input::UINT,
    'list_children' => XenForo_Input::UINT,
    'callback_class' => XenForo_Input::STRING,
    'callback_method' => XenForo_Input::STRING,
    'node_password' => XenForo_Input::STRING,

         if (!
    $pageData['style_id'] = 0;

    $nodeId $this->_input->filterSingle('node_id'XenForo_Input::UINT);

    $pageData['modified_date'] = XenForo_Application::$time;

    $nodeId $this->_getPageModel()->savePage(

    XenForo_Link::buildAdminLink('nodes') . $this->getLastHash($nodeId)


    //class XFCP_PasswordProtectedForums_Extend_ControllerAdmin_Page extends XenForo_ControllerAdmin_Page {}
    Last edited: Dec 6, 2013
    sinucello and Andrej like this.
  4. Liam W

    Liam W Well-Known Member

    Actually, i did. But I couldn't for the life of me think of a way to.make it work when calling parent, as it would result in duplicated entried or errors.

    I did try!

    If you have any ideas, I'm all ears!
  5. AndreaMarucci

    AndreaMarucci Well-Known Member

    What's the problem? I'm not a dev so I'm unable to fully understand what's the point...
  6. Liam W

    Liam W Well-Known Member

    When using the class proxy feature, xenForo doesn't use the default class - it uses classes from addons, that extend each other, finally extending the main xenForo class.

    If one of those addon classes don't call the parent function/class (the class it's extending) the the chain is broken, and other addons code won't be run.

    It's a bad thing to do, and I try to avoid it as much as possible, but sometimes I just can't figure out a way to make it work without not calling the parent.

    Make sense?

  7. AndreaMarucci

    AndreaMarucci Well-Known Member

    Ok, I've almost got it. thanks ;)
  8. Liam W

    Liam W Well-Known Member

    Last edited: Dec 8, 2013
  9. xf_phantom

    xf_phantom Well-Known Member

  10. Menerv

    Menerv Member

    Hi, when i click on the Last post by XXXX, i have access to the post and i don't need the password !

    Can you fix this bug ?
  11. Liam W

    Liam W Well-Known Member

    That bug crossed my mind yesterday, I'll look into it :)
  12. Menerv

    Menerv Member

    News ?
  13. Liam W

    Liam W Well-Known Member

    Sorry, fix will be released later today.

  14. Liam W

    Liam W Well-Known Member

    Menerv likes this.
  15. Menerv

    Menerv Member

    Think's guy, it's very good job !
  16. Menerv

    Menerv Member

    Hi, i found a new problem.
    When i look the profile of members, i see in the last messages the topic and first line of message on the protected nodes !
    Think's for your job :)
    rafass, Liam W and DaniD like this.
  17. Liam W

    Liam W Well-Known Member

    Liam W updated Password Protected Nodes with a new update entry:

    Bug Fixes

    Read the rest of this update entry...
  18. Liam W

    Liam W Well-Known Member

  19. mmorpgitalia

    mmorpgitalia Member

    we have the same problem as

    our users are totally disappointend about theyr privacy :(
  20. Liam W

    Liam W Well-Known Member

    I'll fix that tomorrow.
    rafass and mmorpgitalia like this.

Share This Page