Scris: 29-Dec-2006, 23:56:52
Am gasit de doua ori aceasi linie...ce trebuie modificat la ele?
forumul phpBB in limba romana. Opinii, implementari, ajutor, instructiuni si download.
https://phpbb3.ro/community/
Cod: Selectaţi tot
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
# This may be a partial find and not the whole line(s)
#
$sql = "SELECT
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . "
WHERE $join_sql
AND
$order_sql
#
#-----[ AFTER, ADD ]------------------------------------------
#
# Add these lines on a new blank line after the preceding line(s) to find
#
//-- mod : quick post es -------------------------------------------------------
//-- add
$sql = str_replace(', f.forum_id', ', f.forum_id, f.forum_qpes', $sql);
//-- fin mod : quick post es ---------------------------------------------------
Cod: Selectaţi tot
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
$order_sql";
Cod: Selectaţi tot
//-- mod : quick post es -------------------------------------------------------
//-- add
$sql = str_replace(', f.forum_id', ', f.forum_id, f.forum_qpes', $sql);
//-- fin mod : quick post es ---------------------------------------------------
Cod: Selectaţi tot
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
$order_sql";
//-- mod : quick post es -------------------------------------------------------
//-- add
$sql = str_replace(', f.forum_id', ', f.forum_id, f.forum_qpes', $sql);
//-- fin mod : quick post es ---------------------------------------------------
Cod: Selectaţi tot
EasyMOD successfully processed the following commands:
Commands Processed
SQL #148
INSERT INTO phpbb_config (config_name, config_value) VALUES ('users_qp_settings', '1-0-1-1-1-1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('anons_qp_settings', '1-0-1-1-1-1');
ALTER TABLE phpbb_forums ADD forum_qpes tinyint(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_qp_settings varchar(25) DEFAULT '0' NOT NULL;
UPDATE phpbb_users SET user_qp_settings = '1-0-1-1-1-1' WHERE user_qp_settings = '0';
COPY #156
COPY root/*.* TO *.*
OPEN #160
common.php
FIND #164
include($phpbb_root_path . 'includes/db.'.$phpEx);
AFTERADD #170
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx); // -> Textul gasit dupa cautare
include($phpbb_root_path . 'mod-quick_post_es_113c/mod-gpes_113c.'.$phpEx); // -> Textul ce trebuie adaugat.
OPEN #175
viewtopic.php
Cod: Selectaţi tot
#
#-----[ FIND ]------------------------------------------------
#
# This may be a partial find and not the whole line(s)
#
$sql = "SELECT
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . "
WHERE $join_sql
AND
$order_sql
#
#-----[ AFTER, ADD ]------------------------------------------
#
# Add these lines on a new blank line after the preceding line(s) to find
#
//-- mod : quick post es -------------------------------------------------------
//-- add
$sql = str_replace(', f.forum_id', ', f.forum_id, f.forum_qpes', $sql);
//-- fin mod : quick post es ---------------------------------------------------