Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 03-01-2009, 10:34 PM
adhmwagde adhmwagde is offline
 
Join Date: Sep 2006
Location: Egypt
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default update problem

Hello

i have problem when i update my vBulletin from 3.7.4 to 3.8.1
how to create this table again

thanks

PHP Code:
Human Verification options and permissions
if ($vbulletin->options['hvcheck_registration']
OR 
$vbulletin->options['hvcheck_post']
OR 
$vbulletin->options['hvcheck_search']
OR 
$vbulletin->options['hvcheck_contactus']
OR 
$vbulletin->options['hvcheck_lostpw'])
{
$hvcheck 0;
$hvcheck += ($vbulletin->options['hvcheck_registration'] ? $vbulletin->bf_misc_hvcheck['register'] : 0);
$hvcheck += ($vbulletin->options['hvcheck_post'] ? $vbulletin->bf_misc_hvcheck['post'] : 0);
$hvcheck += ($vbulletin->options['hvcheck_search'] ? $vbulletin->bf_misc_hvcheck['search'] : 0);
$hvcheck += ($vbulletin->options['hvcheck_contactus'] ? $vbulletin->bf_misc_hvcheck['contactus'] : 0);
$hvcheck += ($vbulletin->options['hvcheck_lostpw'] ? $vbulletin->bf_misc_hvcheck['lostpw'] : 0);
$upgrade->run_query(
$upgrade_phrases['upgrade_300b3.php']['updating_usergroup_permissions'],
"UPDATE " TABLE_PREFIX "usergroup SET
genericpermissions = genericpermissions | " 
$vbulletin->bf_ugp_genericoptions['requirehvcheck'] . "
WHERE usergroupid = 1"
);
}
else
{
$hvcheck array_sum($vbulletin->bf_misc_hvcheck);
}
$upgrade->run_query(
$upgrade_phrases['upgrade_380a2.php']['update_hv_options'],
"REPLACE INTO " TABLE_PREFIX "setting
(varname, grouptitle, value, volatile, product)
VALUES ('hvcheck', 'humanverification', 
$hvcheck, 1, 'vbulletin')"
);
// Give permissions
$upgrade->run_query(
sprintf($upgrade_phrases['upgrade_380a2.php']['granting_permissions'], 'usergroup'11),
"UPDATE " TABLE_PREFIX "usergroup SET
usercsspermissions = usercsspermissions |
IF(forumpermissions & " 
$vbulletin->bf_ugp_genericpermissions['canmodifyprofile'] . ", " $vbulletin->bf_ugp_usercsspermissions['caneditprivacy'] . ", 0),
forumpermissions = forumpermissions |
IF(forumpermissions & " 
$vbulletin->bf_ugp_forumpermissions['cangetattachment'] . ", " $vbulletin->bf_ugp_forumpermissions['canseethumbnails'] . ", 0),
genericoptions = genericoptions |
IF(usergroupid = 1," 
$vbulletin->bf_ugp_genericoptions['requirehvcheck'] . ", 0),
socialgrouppermissions = socialgrouppermissions |
IF(forumpermissions & " 
$vbulletin->bf_ugp_forumpermissions['canreplyown'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['canpostmessage'] . ", 0) |
IF(adminpermissions & " 
$vbulletin->bf_ugp_adminpermissions['ismoderator'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['canalwayspostmessage'] . ", 0) |
IF(forumpermissions & " 
$vbulletin->bf_ugp_forumpermissions['canpostnew'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['cancreatediscussion'] . ", 0) |
IF(adminpermissions & " 
$vbulletin->bf_ugp_adminpermissions['ismoderator'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['canalwayscreatediscussion'] . ", 0) |
IF(forumpermissions & " 
$vbulletin->bf_ugp_forumpermissions['canopenclose'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['canlimitdiscussion'] . ", 0) |
IF(forumpermissions & " 
$vbulletin->bf_ugp_forumpermissions['candeletethread'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['canmanagediscussions'] . ", 0) |
IF(genericpermissions & " 
$vbulletin->bf_ugp_genericpermissions['canprofilepic'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['canuploadgroupicon'] . ", 0) |
IF(genericpermissions & " 
$vbulletin->bf_ugp_genericpermissions['cananimateprofilepic'] . ", " $vbulletin->bf_ugp_socialgrouppermissions['cananimategroupicon'] . ", 0),
groupiconmaxsize = profilepicmaxsize,
pmthrottlequantity = 0,
maximumsocialgroups = 5
"
);
$upgrade->run_query(
sprintf($upgrade_phrases['upgrade_380a2.php']['granting_permissions'], 'forumpermission'11),
"UPDATE " TABLE_PREFIX "forumpermission SET
forumpermissions = forumpermissions |
IF(forumpermissions & " 
$vbulletin->bf_ugp_forumpermissions['cangetattachment'] . ", " $vbulletin->bf_ugp_forumpermissions['canseethumbnails'] . ", 0)
"
);
// Give moderator permissions
$upgrade->run_query(
sprintf($upgrade_phrases['upgrade_300b3.php']['altering_x_table'], 'moderator'11),
"UPDATE " TABLE_PREFIX "moderator SET
permissions2 = permissions2 |
IF(permissions & " 
$vbulletin->bf_misc_moderatorpermissions2['caneditgroupmessages'] . ", " $vbulletin->bf_misc_moderatorpermissions2['caneditsocialgroups'] . ", 0) |
IF(permissions & " 
$vbulletin->bf_misc_moderatorpermissions2['candeletegroupmessages'] . ", " $vbulletin->bf_misc_moderatorpermissions2['candeletediscussions'] . ", 0) |
IF(permissions & " 
$vbulletin->bf_misc_moderatorpermissions2['candeletesocialgroups'] . ", " $vbulletin->bf_misc_moderatorpermissions2['cantransfersocialgroups'] . ", 0) |
IF(permissions & " 
$vbulletin->bf_misc_moderatorpermissions2['canremovegroupmessages'] . ", " $vbulletin->bf_misc_moderatorpermissions2['canremovediscussions'] . ", 0) |
IF(permissions & " 
$vbulletin->bf_misc_moderatorpermissions2['canmoderategroupmessages'] . ", " $vbulletin->bf_misc_moderatorpermissions2['canmoderatediscussions'] . ", 0)
"
);
// Update latest albums
$upgrade->show_message($upgrade_phrases['upgrade_380a2.php']['update_album_update_counters']);
$upgrade->execute();
require_once(
DIR '/includes/functions_album.php');
$vbulletin->options['album_recentalbumdays'] = 7;
exec_rebuild_album_updates();
}
 
 
// FINAL step (notice the SCRIPTCOMPLETE define)
if ($vbulletin->GPC['step'] == 5)
{
$db->query_write("
DELETE FROM " 
TABLE_PREFIX "phrase
WHERE varname LIKE 'notice\_%\_title'
AND fieldname = 'global'
"
);
require_once(
DIR '/includes/adminfunctions_prefix.php');
build_prefix_datastore();
build_forum_permissions();
// tell log_upgrade_step() that the script is done
define('SCRIPTCOMPLETE'true);

Reply With Quote
  #2  
Old 03-01-2009, 10:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't you just run the upgrade script again? You might want to ask this question over on vb.com
Reply With Quote
  #3  
Old 03-02-2009, 05:01 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And your problem is?

However, as Lynne mentioned, you should contact vB.com.
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03880 seconds
  • Memory Usage 2,242KB
  • 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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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