View Single Post
  #156  
Old 11-04-2004, 09:00 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried install this

Quote:
# This creates all the database related
# tables and fields required for the
# webpage & guestbook script
#

CREATE TABLE `vB3user_guestbook` (
`userid` varchar(100) NOT NULL default '',
`name` varchar(100) default '',
`lastentry` varchar(20) default '',
`status` char(3) NOT NULL default 'on',
`usesmilies` smallint(6) NOT NULL default '2',
`position` varchar(10) NOT NULL default 'right',
`text` text,
PRIMARY KEY (`userid`)
) TYPE=MyISAM;

CREATE TABLE `vB3user_webpage` (
`userid` int(11) NOT NULL default '0',
`name` varchar(100) default '',
`description` varchar(255) default '',
`text` text,
`lastupdate` varchar(20) default '',
`bordersize` smallint(6) default '5',
`bordercolor` varchar(10) default '#ECECEC',
`bgcolor` varchar(10) default '#FFFFFF',
`font` varchar(100) default 'Arial, Helvetica',
`fontcolor` varchar(10) default '#000000',
`fontsize` char(3) default '2',
`usehtml` smallint(6) NOT NULL default '1',
`usesmilies` smallint(6) NOT NULL default '1',
`usevbcode` smallint(6) NOT NULL default '1',
`hits` int(11) NOT NULL default '5',
PRIMARY KEY (`userid`)
) TYPE=MyISAM;

ALTER TABLE vB3usergroup ADD canuseguestbook SMALLINT NOT NULL;
ALTER TABLE vB3usergroup ADD canusewebpage SMALLINT NOT NULL;

UPDATE vB3usergroup SET canuseguestbook = '1';
UPDATE vB3usergroup SET canusewebpage = '1';

INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_allowguestbook_desc', 'Allow the guestbook in your users profile?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_allowguestbook_title', 'Enable Guestbook?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_allowwebpage_title', 'Enable Webpage?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_allowwebpage_desc', 'Allow users to create their own webpage using HTML (on their profile page)', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'settinggroup_guestbookwebpage', 'Guestbook / Webpage Preferences', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_webpagevbcode_desc', 'Allow vBcode on webpage?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_guestbooksmilies_desc', 'Allow smilies in guestbook?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_webpagevbcode_title', 'Webpage vBcode?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_webpagesmilies_title', 'Webpage Smilies?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_guestbooksmilies_title', 'Guestbook Smilies?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_webpagesmilies_desc', 'Allow Smilies on webpage?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_webpagehtml_title', 'Webpage HTML?', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_webpagehtml_desc', 'Allow HTML on webpage? Be aware that this CAN cause security issues and "hacking" attempts.', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'can_use_guestbook', 'Can use Guestbook?', 3);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'can_use_webpage', 'Can use Webpage?', 3);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_allowedhtmltags_title', 'Webpage HTML tags allowed', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'setting_allowedhtmltags_desc', 'Which HTML tags do you want to allow? (Leave empty to allow all)', 5000);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'edit_webpage_content', 'Webpage Content', 1);
INSERT INTO `vB3phrase` (phraseid, languageid, varname, text, phrasetypeid) VALUES ('', '1', 'edit_guestbook_settings', 'Guestbook Settings', 1);

INSERT INTO `vB3settinggroup` (grouptitle, displayorder, volatile) VALUES ('guestbookwebpage', 199, 1);

INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('allowguestbook', '1', 'yesno', 10, 'guestbookwebpage', '1', 0, 1);
INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('allowwebpage', '1', 'yesno', 20, 'guestbookwebpage', '1', 0, 1);
INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('guestbooksmilies', '1', 'yesno', 30, 'guestbookwebpage', '1', 0, 1);
INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('webpagevbcode', '0', 'yesno', 40, 'guestbookwebpage', '1', 0, 1);
INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('webpagesmilies', '0', 'yesno', 50, 'guestbookwebpage', '1', 0, 1);
INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('webpagehtml', '1', 'yesno', 60, 'guestbookwebpage', '1', 0, 1);
INSERT INTO `vB3setting` (varname, value, optioncode, displayorder, grouptitle, defaultvalue, advanced, volatile) VALUES ('allowedhtmltags', '<a><br><b><h1><h2><h3><h4><i><img><li><ol><p><str ong><table><tr><td><th><u><ul><font><b><div>', 'textarea', 70, 'guestbookwebpage', '<a><br><b><h1><h2><h3><h4><i><img><li><ol><p><str ong><table><tr><td><th><u><ul><font><b><div>', 0, 1);

now I'm getting this error

MySQL said:
#1062 - Duplicate entry 'setting_allowguestbook_desc-1-5000' for key 2
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01879 seconds
  • Memory Usage 1,800KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete