1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-26 07:44:49 +02:00

Text to LANS #6 - Polls

Text to LANS #6 - Polls
This commit is contained in:
MikeyGMT
2017-01-01 12:04:29 +00:00
parent 74dc23d85f
commit 2c68d9ee52
13 changed files with 158 additions and 135 deletions

View File

@@ -1,11 +1,20 @@
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2017 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT')) { exit; }
$comments_title = 'Poll';
$comments_title = LAN_PLUGIN_POLL_NAME;
$comments_type_id = 4;
$comments_return['poll'] = "po.poll_id, po.poll_title";
$comments_table['poll'] = "LEFT JOIN #polls AS po ON c.comment_type=4 AND po.poll_id = c.comment_item_id";
function com_search_4($row) {
global $con;
$nick = preg_replace("/[0-9]+\./", "", $row['comment_author']);
@@ -18,4 +27,4 @@ function com_search_4($row) {
return $res;
}
?>
?>