Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2005, 03:34 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
For example is the third line just pointing to the correct area in the profile.php ??
Reply With Quote
  #2  
Old 07-15-2005, 04:22 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andy
but I don't understand how to interperit CVS. Here is the CVS code that needs to be changed in profile.php
I believe this means that ;

PHP Code:
        'invisible' => TYPE_INT,
        
'autosubscribe' => TYPE_INT,
        
'options' => TYPE_ARRAY_BOOL,
        
'modifyavatar' => TYPE_NOCLEAN,
        
'userfield' => TYPE_ARRAY 
becomes ;

PHP Code:
        'invisible' => TYPE_INT,
        
'autosubscribe' => TYPE_INT,
        
'options' => TYPE_ARRAY_BOOL,
        
'set_options' => TYPE_ARRAY_BOOL,
        
'modifyavatar' => TYPE_NOCLEAN,
        
'userfield' => TYPE_ARRAY 
and ;

PHP Code:
    // options bitfield
    
foreach ($vbulletin->bf_misc_useroptions AS $key => $val)
    {
        if (isset(
$vbulletin->GPC['options']["$key"]))
        {
            
$value $vbulletin->GPC['options']["$key"];
        }
        else
        {
            
$value $vbulletin->userinfo["$key"];
        }
        
$userdata->set_bitfield('options'$key$value);
    } 
becomes ;

PHP Code:
    // options bitfield
    
foreach ($vbulletin->bf_misc_useroptions AS $key => $val)
    {
        if (isset(
$vbulletin->GPC['options']["$key"]) OR isset($vbulletin->GPC['set_options']["$key"]))
        {
            
$value $vbulletin->GPC['options']["$key"];
            
$userdata->set_bitfield('options'$key$value);
        }
    } 
Reply With Quote
  #3  
Old 07-15-2005, 04:29 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-15-2005, 04:45 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andy
Perhaps it has something to do with the modifyoptions template Freddie mentions at the bottom ?? I wish I knew what he means.
Yep, without the template changes it won't work, an extra field has been added to the input forum.
Reply With Quote
  #5  
Old 07-15-2005, 04:57 AM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06324 seconds
  • Memory Usage 2,223KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete