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?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Making postnuke ask for a new user password before register
-
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2204
pncUserHack - http://dev.pnconcept.com -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 07, 2005
- Posts: 11
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? -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 07, 2005
- Posts: 11
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' -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2204
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";
- Moderated by:
- Support
