Fork me on GitHub

Making postnuke ask for a new user password before register  Bottom

  • hello...

    i'm new to postnuke... more over I'm new to PHP :) anyways... I know this is a simple module to make... infact I'm sure it only requires a few lines of code... I just don't know where or how.

    what I want is this... and hopefully someone can point me in the right direction.

    when the user goes to register... I want it to ask them for a new user password. this is a pre-determined password that I as the admin require users to know before they can continue with the registration...

    can anyone help me?
  • pncUserHack - http://dev.pnconcept.com
  • thanks dude... really appreciate it. ill take a look.
  • InvalidResponse

    pncUserHack - http://dev.pnconcept.com


    This is an awesome module... but yet it still doesnt do what I'm asking :) allthough its an awesome find, and I will continue to use it.

    another question I have is how can I make it so that the default start page for registered users is 'not' the account settings/homepage? I want it to be the main page (news by default)

    any ideas?
  • hmmm.. not sure what you mean by that.. you mean when they login via login block? or another form..?
  • I'm assuming it's something in user.php or index.php that I would need to change... not sure which... basicly when a user logs in via the login block... I want it to go straight to the default page... not the 'My Account'
  • hmm.. the login block actually passes a hidden variable that contains the current URL, which after login it should be directing them back to.

    ..hmm.. either way, if you want them to always go to the index/main page, you'd have to make the adjustment to the ./includes/blocks/login.php .. you should see something like ..the name may be different and it also has a value="" ..change value to value="index.php"

    edit:

    actually.. it would be this:

    Code

    $boxstuff .= '<input type="hidden" name="url" value="' .pnVarPrepForDisplay($path) .'" />' . "\n";


    to this:

    Code

    $boxstuff .= '<input type="hidden" name="url" value="index.php" />' . "\n";
  • Did any of you manage to make pnUserHack working with PN 0.75? how plz?

This list is based on users active over the last 60 minutes.