Remove all mentions of watchedthreads for good

This commit is contained in:
Juribiyan 2018-11-25 20:28:50 +05:00
parent eb460f0d02
commit 96b18e2cad
19 changed files with 4 additions and 125 deletions

View File

@ -67,7 +67,7 @@ Before running this script, make sure that:<br />
} else {
require('config.php');
require KU_ROOTDIR . 'inc/func/custom.php';
$reqiredtables = array("ads","announcements","banlist","bannedhashes","blotter","boards","board_filetypes","embeds","events","filetypes","front","loginattempts","modlog","module_settings","posts","reports","sections","staff","watchedthreads","wordfilter");
$reqiredtables = array("ads","announcements","banlist","bannedhashes","blotter","boards","board_filetypes","embeds","events","filetypes","front","loginattempts","modlog","module_settings","posts","reports","sections","staff","wordfilter");
foreach ($reqiredtables as $tablename) {
if (mysql_table_exists(KU_DBDATABASE,KU_DBPREFIX.$tablename)) {
die("Table <strong>".KU_DBPREFIX.$tablename."</strong> already exists in the database! Drop it, and re run this script.");

View File

@ -70,7 +70,7 @@ if (file_exists('config.php')) {
if (KU_RANDOMSEED!="ENTER RANDOM LETTERS/NUMBERS HERE"&&KU_RANDOMSEED!="") {
echo 'Configuration appears correct.';
echo '<h2>Checking database...</h2>';
$reqiredtables = array("ads","announcements","banlist","bannedhashes","blotter","boards","board_filetypes","events","filetypes","front","loginattempts","modlog","module_settings","posts","reports","sections","staff","watchedthreads","wordfilter");
$reqiredtables = array("ads","announcements","banlist","bannedhashes","blotter","boards","board_filetypes","events","filetypes","front","loginattempts","modlog","module_settings","posts","reports","sections","staff","wordfilter");
foreach ($reqiredtables as $tablename) {
if (KU_DBTYPE == 'mysql' || KU_DBTYPE == 'mysqli') {
if (!mysql_table_exists(KU_DBDATABASE,KU_DBPREFIX.$tablename)) {

View File

@ -427,21 +427,6 @@ CREATE TABLE `PREFIX_staff` (
-- --------------------------------------------------------
--
-- Table structure for table `watchedthreads`
--
CREATE TABLE `PREFIX_watchedthreads` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`threadid` int(20) NOT NULL DEFAULT '0',
`board` varchar(255) NOT NULL DEFAULT '',
`ip` char(15) NOT NULL DEFAULT '',
`lastsawreplyid` int(20) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=KU_DBCHARSET;
-- --------------------------------------------------------
--
-- Table structure for table `wordfilter`
--

View File

@ -456,16 +456,6 @@ if (isset($_POST['makepost'])) { // A more evident way to identify post action,
$tc_db->Execute("UPDATE `" . KU_DBPREFIX . "posts` SET `bumped` = '" . time() . "' WHERE `boardid` = " . $board_class->board['id'] . " AND `id` = '" . $thread_replyto . "'");
}
// If the user replied to a thread he is watching, update it so it doesn't count his reply as unread
if (KU_WATCHTHREADS && $thread_replyto != '0') {
$viewing_thread_is_watched = $tc_db->GetOne("SELECT COUNT(*) FROM `" . KU_DBPREFIX . "watchedthreads` WHERE `ip` = '" . $_SERVER['REMOTE_ADDR'] . "' AND `board` = '" . $board_class->board['name'] . "' AND `threadid` = '" . $thread_replyto . "'");
if ($viewing_thread_is_watched > 0) {
$newestreplyid = $tc_db->GetOne('SELECT `id` FROM `'.KU_DBPREFIX.'posts` WHERE `boardid` = ' . $board_class->board['id'] . ' AND `IS_DELETED` = 0 AND `parentid` = '.$thread_replyto.' ORDER BY `id` DESC LIMIT 1');
$tc_db->Execute("UPDATE `" . KU_DBPREFIX . "watchedthreads` SET `lastsawreplyid` = " . $newestreplyid . " WHERE `ip` = '" . $_SERVER['REMOTE_ADDR'] . "' AND `board` = '" . $board_class->board['name'] . "' AND `threadid` = '" . $thread_replyto . "'");
}
}
$tc_db->Execute("COMMIT");
// Trim any threads which have been pushed past the limit, or exceed the maximum age limit

View File

@ -200,7 +200,6 @@ if (!$cache_loaded) {
// Extra features
$cf['KU_RSS'] = true; // Whether or not to enable the generation of rss for each board and modlog
$cf['KU_WATCHTHREADS'] = false; // Whether or not to add thread watching capabilities
$cf['KU_FIRSTLAST'] = false; // Whether or not to generate extra files for the first 100 posts/last 50 posts
$cf['KU_BLOTTER'] = true; // Whether or not to enable the blotter feature
$cf['KU_SITEMAP'] = false; // Whether or not to enable automatic sitemap generation (you will still need to link the search engine sites to the sitemap.xml file)

View File

@ -202,15 +202,6 @@ table td {
border: 2px dashed #EE6600;
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
-moz-border-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
}
.b-icon {
fill: white;
background-color: #aba8a6;

View File

@ -179,12 +179,6 @@ table td {
border: 1px dashed #EE6600;
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
border-radius: 5px;
}
.b-icon {
color: #B4B4B4;
}

View File

@ -181,12 +181,6 @@ table td {
border: 1px dashed #EE6600;
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
border-radius: 5px;
}
.b-icon {
fill: rgb(255, 255, 255);
background: rgb(106, 111, 43);

View File

@ -396,30 +396,6 @@ pre {
font-weight: normal;
}
#watchedthreads {
position: absolute;
background-color: #F0E0D6;
border: 1px dotted #EEAA88;
border-top: 0px none;
}
#watchedthreadsdraghandle {
text-align: center;
font-family: Trebuchet MS;
cursor: move;
}
#watchedthreadlist {
padding: 3px;
font-size: 0.8em;
}
#watchedthreadsbuttons {
position: absolute;
bottom: 3px;
left: 3px;
}
.spoiler {
color: black;
background-color: black;

View File

@ -167,12 +167,6 @@ table td {
border: 1px dashed #EE6600;
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
border-radius: 5px;
}
.b-icon {
color: dimgrey;
}

View File

@ -174,12 +174,6 @@ table td {
box-shadow: inset 0 0 59px rgba(85, 224, 156, 0.28);
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
border-radius: 5px;
}
.b-icon {
color: #B4B4B4;
}

View File

@ -178,12 +178,6 @@ table td {
border-radius: 5px;
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
border-radius: 5px;
}
.b-icon {
color: white;
background-color: #aba8a6;

View File

@ -185,11 +185,6 @@ a:hover {
-webkit-border-top-right-radius: 7px;
}
#watchedthreads {
background-color: #DAF0D6 !important;
border: 1px solid #88DD88 !important;
}
.replymode {
background:#DAF0D6;
text-align:center;

View File

@ -178,12 +178,6 @@ table td {
box-shadow: inset 0 0 59px rgba(207, 110, 255, 0.28);
}
#watchedthreads {
background-color: #DDDDDD !important;
border: 1px solid #CCCCCC !important;
border-radius: 5px;
}
.b-icon {
color: #B4B4B4;
}

View File

@ -192,11 +192,6 @@ a:hover {
-webkit-border-top-right-radius: 7px;
}
#watchedthreads {
background-color: #E0EFFF !important;
border: 1px solid #8888DD !important;
}
.replymode {
background:#E0EFFF;
text-align:center;

View File

@ -480,10 +480,6 @@ msgstr "cпрятать"
msgid "Hide Thread"
msgstr "Спрятать тред"
msgid "Hide the watched threads box"
msgstr "Спрятать окошко просматриваемых тредов"
msgid "Home"
msgstr "Главная"
@ -955,9 +951,6 @@ msgstr "Редирект в тред"
msgid "Redirecting"
msgstr "Перенаправление"
msgid "Refresh watched threads"
msgstr "Обновить отслеживаемые треды"
msgid "Regenerated %s"
msgstr "Перегенерировано %s"
@ -1000,9 +993,6 @@ msgstr "Ответ разрешен тем, кто добавлен в лист
msgid "Reports"
msgstr "Ответы"
msgid "Restore watched threads"
msgstr "Восстановить просматриваемые треды"
msgid "Results"
msgstr "Результаты"
@ -1378,9 +1368,6 @@ msgstr "Посмотреть используемое дисковое прос
msgid "Watch Thread"
msgstr "Просматривать тред"
msgid "Watched Threads"
msgstr "Просматриваемые треды"
msgid "Welcome"
msgstr "Добро пожаловать"

View File

@ -12,7 +12,6 @@ var _messages = {
noLocalStorage: "Your browser does not support LocalStorage",
oops: "Something went wrong...",
blankResponse: "blank response",
watchlistAdd: "Тред добавлен в список избранных.",
expandingThread: "Expanding thread...",
newThread: "new thread",
NewThread: "New thread",
@ -106,8 +105,6 @@ var _messages = {
noLocalStorage: "localStorage не поддерживается браузером",
oops: "Что-то пошло не так...",
blankResponse: "пустой ответ",
watchlistAdd: "Тред добавлен в список избранных.",
watchlistRemove: "Тред удален из списка избранных.",
expandingThread: "Разворачиваем тред...",
newThread: "новый тред",
NewThread: "Создать тред",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long