The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What we are trying to accomplish is that our client has some members of their site that are Advisory board members that do not have the necessary credentials/information to fill out the required member filters of the profile. These members should still have to fill in the standard required fields of name, email, etc but they should not be forced to fill out any of the member filters.
We've been able to edit the global.php file to include this code: PHP Code:
The problem I have run into is centered around the profile.php page. With the various member filters being required fields, if one of these users tries to edit their profile vBulletin won't let them as it will detect required fields as not being filled out. I thought I'd be able to use code similar to the above to bypass the profile.php page's required field check which appears to be housed inside the class_dm_user.php page. I've tried to use this code: PHP Code:
Can anyone assist me or has anyone already put together a mod that accomplishes what we are trying to do here? |
#2
|
|||
|
|||
![]()
Inside a class you need to use $this->registry->userinfo instead of $vbulletin->userinfo
|
#3
|
|||
|
|||
![]()
Opserty,
Thanks for that. Another question about variables. Is there anyway to get a variable to display within a vBulletin phrase? For example, the Standard Phrase: updateprofilefields, Varname $vbphrase[updateprofilefields], if I wanted to update the link that shows up for "profile page" so it went to a specific user page referenced by the userid, how would I do that? I've tried the following: PHP Code:
|
#4
|
|||
|
|||
![]()
Use this for the phrase code:
Code:
You have empty profile fields that are required to be filled in. Please visit your <a href="http://www.lisiserver.com/pecfoa/site/vb/profile.php?u={0}">profile page</a> to update these fields. PHP Code:
|
#5
|
|||
|
|||
![]()
Opserty,
Where does the PHP code get added? |
#6
|
|||
|
|||
![]()
Erm, wherever your doing the rest of the PHP stuff will be fine. It just needs to be done before it comes to the fetch_template() bit. (You need to use $thephrase in your template to get it displayed.)
|
#7
|
|||
|
|||
![]()
Opserty,
Thanks for the constant replies. I'm a bit confused here. The updateprofilefields phrase is called inside the global.php page when vBulletin recognizes that a required field is empty. What I need to do is change the link that shows up in the phrase text. I've edited the phrase code as you detailed above but now I'm not quite sure where the PHP code goes. Inside global.php, I have this code: PHP Code:
|
#8
|
|||
|
|||
![]()
Opserty,
Any ideas on where the PHP code should go to get the userid to work in the phrase? |
#9
|
|||
|
|||
![]()
What is the content of the 'updateprofilefields' phrase? {0} will be the first variable, {1} will be the 2nd variable. e.t.c..
Edit fetch_error to include the 2nd variable...so PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|