Jump to content

Installing SQL-I dont know how


Alundra

Recommended Posts

I don’t know how to install the SQL. I dont even know if installing is the right word... I have a PHP forum, and the guys over there tell me off when I ask for help, or don’t answer. I have no experience with SQL, and I've looked around here for anything that could help me. Theres a mod called the Democracy mod - http://www.phpbb.com/community/viewtopic.php?f=16&t=289721&start=0&st=0&sk=t&sd=a

In the script it says this:

 

 

#------------------------[ SQL ]-------------------------

#

CREATE TABLE `phpbb_reputation` (

  `id` mediumint(8) unsigned NOT NULL auto_increment,

  `modification` tinyint(1) NOT NULL default '0',

  `user_id` mediumint(8) NOT NULL default '0',

  `voter_id` mediumint(8) NOT NULL default '0',

  `post_id` mediumint(8) NOT NULL default '-1',

  `forum_id` smallint(5) NOT NULL default '-1',

  `poster_ip` char(8) NOT NULL default '',

  `date` int(11) NOT NULL default '0',

  `expire` int(11) NOT NULL default '0',

  `amount` smallint(5) unsigned NOT NULL default '1',

  `edit_time` int(11) default NULL,

  `edit_count` smallint(5) unsigned NOT NULL default '0',

  PRIMARY KEY (`id`),

  KEY `voter_id` (`voter_id`),

  KEY `post_id` (`post_id`),

  KEY `date` (`date`),

  KEY `expire` (`expire`)

);

 

CREATE TABLE `phpbb_reputation_text` (

  `id` mediumint(8) unsigned NOT NULL default '0',

  `text` text,

  `bbcode_uid` varchar(10) NOT NULL default '',

  PRIMARY KEY (`id`)

);

 

CREATE TABLE `phpbb_post_reports` (

  `report_id` mediumint(8) NOT NULL auto_increment,

  `post_id` mediumint(8) NOT NULL default '-1',

  `review_id` mediumint(8) NOT NULL default '-1',

  `forum_id` smallint(5) NOT NULL default '-1',

  `user_id` mediumint(8) NOT NULL default '0',

  `report_time` int(11) NOT NULL default '0',

  `reports_num` mediumint(8) NOT NULL default '0',

  PRIMARY KEY (`report_id`),

  KEY `post_id` (`post_id`),

  KEY `review_id` (`review_id`),

  KEY `forum_id` (`forum_id`)

);

 

ALTER TABLE `phpbb_users` ADD `user_reputation` smallint(5) NOT NULL default '0';

ALTER TABLE `phpbb_users` ADD `user_reputation_plus` smallint(5) NOT NULL default '0';

ALTER TABLE `phpbb_users` ADD `user_warnings` tinyint(4) unsigned NOT NULL default '0';

ALTER TABLE `phpbb_users` ADD `user_reviews` smallint(5) NOT NULL default '0';

ALTER TABLE `phpbb_users` ADD `user_warnings_total` smallint(5) NOT NULL default '0';

ALTER TABLE `phpbb_users` ADD `user_bans_total` smallint(5) NOT NULL default '0';

 

ALTER TABLE `phpbb_posts` ADD `post_reviews` smallint(5) unsigned NOT NULL default '0';

ALTER TABLE `phpbb_posts` ADD `post_locked` tinyint(1) unsigned NOT NULL default '0';

 

INSERT INTO `phpbb_config` VALUES ('warnings_enabled', '1');

INSERT INTO `phpbb_config` VALUES ('reputation_enabled', '1');

INSERT INTO `phpbb_config` VALUES ('reports_enabled', '1');

INSERT INTO `phpbb_config` VALUES ('reputation_least_respected', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_ban_warnings', '5');

INSERT INTO `phpbb_config` VALUES ('reputation_delete_expired', '-1');

INSERT INTO `phpbb_config` VALUES ('reputation_warning_expire', '3,30');

INSERT INTO `phpbb_config` VALUES ('reputation_ban_expire', '3,30');

INSERT INTO `phpbb_config` VALUES ('reputation_perms', '0,0,1,3,3,3,3,5,3,5,3,3,3');

INSERT INTO `phpbb_config` VALUES ('reputation_none', '0,0');

INSERT INTO `phpbb_config` VALUES ('reputation_mod_norep', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_reviews_per_page', '25');

INSERT INTO `phpbb_config` VALUES ('reputation_reports_per_page', '25');

INSERT INTO `phpbb_config` VALUES ('reputation_display', '1');

INSERT INTO `phpbb_config` VALUES ('reputation_warnings_display', 'img');

INSERT INTO `phpbb_config` VALUES ('reputation_most_respected', '1');

INSERT INTO `phpbb_config` VALUES ('reputation_days_req', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_posts_req', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_points_req', '-100000');

INSERT INTO `phpbb_config` VALUES ('reputation_warnings_req', '100000');

INSERT INTO `phpbb_config` VALUES ('reputation_rotation_limit', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_time_limit', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_check_rate', '60');

INSERT INTO `phpbb_config` VALUES ('reputation_last_check_time', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_empty_reviews', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_positive_only', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_check_reports', '1');

INSERT INTO `phpbb_config` VALUES ('reputation_reports_color', '');

INSERT INTO `phpbb_config` VALUES ('reputation_admin_norep', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_giving', '');

INSERT INTO `phpbb_config` VALUES ('reputation_notify_reputation', 'none');

INSERT INTO `phpbb_config` VALUES ('reputation_notify_warning', 'none');

INSERT INTO `phpbb_config` VALUES ('reputation_notify_ban', 'email');

INSERT INTO `phpbb_config` VALUES ('reputation_auto_data', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_memberlist', '00');

INSERT INTO `phpbb_config` VALUES ('reputation_show_values', '0');

INSERT INTO `phpbb_config` VALUES ('reputation_default_order', '0');

 

 

My problem is the program easymod won't install it, and I dont know what to do with it….can someone PLEASE tell me where to put this/what to do with it or anything? If you need any further information I will provide it!

 

As of now my forum- www.jades-world.com/phpBB2 displays this message

 

General Error

 

SQL query failed

 

DEBUG MODE

 

SQL Error : 1146 Table 'jade_phpbb2.phpbb_2reputation' doesn't exist

 

SELECT id FROM phpbb_2reputation WHERE (modification = 7 OR modification = 8) AND expire BETWEEN 1 AND 1176593849

 

Line : 1124

File : functions.php

 

Thankyou!

Link to comment
https://forums.phpfreaks.com/topic/49573-installing-sql-i-dont-know-how/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.