The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]() Quote:
The org pwd is changed no more than twice a year. So it's not that big a deal for me to manually change the reference string I've stored in a global vBphrase when the pwd changes. No need to run a query to update the pwds in user profiles when organization updates its pwd - the whole idea is to make the user update his own profile to prove he's a renewing member that has received the password independently. I found the following code in forumdisplay.php: Code:
// ############################### start enter password ############################### if ($_REQUEST['do'] == 'doenterpwd') { globalize($_REQUEST, array('forumid' => INT, 'newforumpwd' => STR, 'url' => STR, 'postvars')); $foruminfo = verify_id('forum', $forumid, 1, 1); if ($foruminfo['password'] == $newforumpwd) { ...
Can anyone help with the required code? Quote:
|
#12
|
||||
|
||||
![]()
Have tried modifying the code above as follows:
PHP Code:
I've considered that the "if" test works okay and sets $newforumpwd, my problem might be that $foruminfo doesn't get defined. But looking further down the code, that should trigger an "incorrect password" response rather than showing a forum password request. My guess is the $post['field5'] or $vbphrase[org_password] variable (or both) is not defined in forumdisplay.php. Both work fine in postbits. I'm guessing $post['field5'] is not the correct way to reference this variable outside of postbits, whereas I defined $vbphrase[org_password] as global. Of course if I can get the "if" test working, it could be that not getting $foruminfo defined will still jump up and bite me. Can anyone point me in the right direction? |
#13
|
||||
|
||||
![]()
Have finally found a way to automate putting an individual into a secondary group automatically, based on the value entered in profile fieldX. Now entry into that forum can easily be controlled by normal forum permissions.
For anyone interested in the auto-add code, see https://vborg.vbsupport.ru/showpost....40&postcount=9 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|