The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Profile.php update cvs questions
I'd like to update my profile.php file according to this bug report:
http://www.vbulletin.com/forum/bugs3...view&bugid=686 but I don't understand how to interperit CVS. Here is the CVS code that needs to be changed in profile.php Code:
--- vb3/profile.php 2005/07/12 14:18:20 1.360 +++ vb3/profile.php 2005/07/13 13:55:00 1.361 @@ -1091,6 +1091,7 @@ if ($_POST['do'] == 'updateoptions') 'invisible' => TYPE_INT, 'autosubscribe' => TYPE_INT, 'options' => TYPE_ARRAY_BOOL, + 'set_options' => TYPE_ARRAY_BOOL, 'modifyavatar' => TYPE_NOCLEAN, 'userfield' => TYPE_ARRAY )); @@ -1107,15 +1108,11 @@ if ($_POST['do'] == 'updateoptions') // options bitfield foreach ($vbulletin->bf_misc_useroptions AS $key => $val) { - if (isset($vbulletin->GPC['options']["$key"])) + if (isset($vbulletin->GPC['options']["$key"]) OR isset($vbulletin->GPC['set_options']["$key"])) { $value = $vbulletin->GPC['options']["$key"]; + $userdata->set_bitfield('options', $key, $value); } - else - { - $value = $vbulletin->userinfo["$key"]; - } - $userdata->set_bitfield('options', $key, $value); } \ No newline at end of file |
#2
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Thanks Paul, that is how I interpreted it.
I made the changes and uploaded the updated profile.php and cleared cache, but it didn't work. I still can't change settings in my User CP > Edit Options > Visible Post Elements Perhaps it has something to do with the modifyoptions template Freddie mentions at the bottom ?? I wish I knew what he means. |
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Thanks Paul.
I'm looking at the source page now, I just can't figure out where to make the changes. I will need to get a copy of the template modifyoptions. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|