[外掛] Admin Voting (票選管理) (Update 1.1.8)

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
[=AZN-TW=]Frank
星球公民
星球公民
文章: 37
註冊時間: 2002-06-24 14:04

[外掛] Admin Voting (票選管理) (Update 1.1.8)

文章 [=AZN-TW=]Frank »

外掛作者:ErDrRon
官方網站: http://www.erdrron.com/phpBB2/
後台中文化:Frank
主程式下載點: http://www.erdrron.com/phpBB2/download.php?id=1

此外掛已經確定可用在phpbb2.0.x ,尚未試過於PLUS安裝

這個Mod我將他取名為票選管理控制
安裝步驟如下:

1.檔頭

代碼: 選擇全部

## EasyMod 0.0.7 compliant
############################################################## 
## MOD Title: 		Admin Voting 
## MOD Version: 	1.1.7 
## Author: 		ErDrRon < ErDrRon@aol.com > 
## Description: 	Allows forum administrators, via the Admin Control
##			Panel, to see who voted in a poll and, optionally,
##			HOW they voted. 
## 
## Installation Level:	easy 
## Installation Time:	2 minutes 
## Files To Edit (1):	posting.php
## Included Files (7):	voting_admin_install.txt
##			upgrade_to_115.txt
##			admin_voting_database_install.php
##			admin_voting.php
##			admin_vote_body.tpl
##			lang_admin_voting.php (use language of choice)
##			admin_voting_icon.gif
## 
############################################################## 
 
2.安裝教學\r
上傳admin_voting_database_install.php至你的phpbb資料夾並執行

將root資料夾內的檔案解壓縮到你的phpbb資料夾(預設templates為subsilver,若有安裝其他風格,請自行複製檔案到風格資料夾)

接下來打開posting.php
找到\r

代碼: 選擇全部

$sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip)
在vote_user_ip 之後新增, vote_cast

在'$user_ip' 之後新增, $vote_option_id

儲存檔案,編輯完成

-----------------------------------------

接下來是中文化部分

因原始檔案並無提供中文語系檔,因此請自行修改為中文語系\r

------------------------------------
打開language\lang_english\lang_admin_voting.php

代碼: 選擇全部

$lang['Admin_Vote_Explain'] = 'Poll Results (who voted and how they voted).';
$lang['Admin_Vote_Title'] = 'Poll Administration';
$lang['Vote_id'] = '#';
$lang['Poll_topic'] = 'Poll Topic';
$lang['Vote_username'] = 'Voter(s)';
$lang['Vote_end_date'] = 'Vote Duration';
$lang['Sort_vote_id'] = 'Poll Number';
$lang['Sort_poll_topic'] = 'Poll Topic';
$lang['Sort_vote_start'] = 'Start Date';
$lang['Submit'] = 'Submit';
$lang['Select_sort_field'] = 'Select sort field';
$lang['Sort_order'] = 'Order';
$lang['Sort_ascending'] = 'Ascending';
$lang['Sort_descending'] = 'Descending';

代碼: 選擇全部

$lang['Admin_Vote_Explain'] = '票選管理控制表單';
$lang['Admin_Vote_Title'] = '票選控制台';
$lang['Vote_id'] = '#';
$lang['Poll_topic'] = '票選主題';
$lang['Vote_username'] = '投票人';
$lang['Vote_end_date'] = '票選期限';
$lang['Sort_vote_id'] = '票選編號';
$lang['Sort_poll_topic'] = '票選主題';
$lang['Sort_vote_start'] = '起始日期';
$lang['Submit'] = '送出';
$lang['Select_sort_field'] = '排列選項';
$lang['Sort_order'] = '排列方式';
$lang['Sort_ascending'] = '依序遞增';
$lang['Sort_descending'] = '依序遞減';
取代\r

然後另存新檔存到你的lang_chinese_traditional_taiwan資料夾即可

接下來開啟admin\admin_voting.php

尋找

代碼: 選擇全部

$module['Poll Admin']['Poll Results'] = $filename;
取代為

代碼: 選擇全部

$module['票選管理控制台']['票選控制台'] = $filename;
存檔完成,接下來可以去看你的Adm控制台最下面有無出現票選管理控制台的字樣摟~

P.S. 此外掛僅能紀錄安裝後的投票紀錄
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8450
註冊時間: 2004-04-30 01:54
來自: Taiwan

[建議] 安裝最新版 1.1.8

文章 心靈捕手 »

檔頭說明:

代碼: 選擇全部

############################################################## 
## MOD Title: 		Admin Voting 
## MOD Version: 	1.1.8 
## Author: 		ErDrRon < ErDrRon@aol.com > < http://www.ErDrRon.com/phpBB2/ >
##
## Description: 	Allows forum administrators, via the Admin Control
##			Panel, to see who voted in a poll and, optionally,
##			HOW they voted. 
## 
## Installation Level:	easy 
## Installation Time:	2 minutes 
## Files To Edit (1):	posting.php
## Included Files (6):	voting_admin_install.txt
##			admin_voting_database_install.php
##			admin_voting.php
##			admin_vote_body.tpl
##			lang_admin_voting.php (use language of choice)
##			admin_voting_icon.gif
## 
############################################################## 
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
############################################################## 
##
## Authors Notes:
##
## Because of potential privacy issues, users of your forum should be notified
## of the installation of this MOD.
##
## N.B. Please note that prior to installation of this MOD, phpBB had no built-in capacity to track
## the actual votes of users in polls.  It was designed to track only the total number of votes of 
## each choice in a poll. After installing this MOD, you will be able to track not only
## the totals of each choice in a poll but the actual votes of your users in any future polls posted
## on your forum.  There is, however, no way to retroactively view the actual votes in polls already
## on your forum prior to the installation of this MOD.  You will still have normal access to the poll
## results of previous polls as you did prior to the installation of this MOD.
##
## Once the files are installed and the database modified you should have a new section
## in the Admin Control Panel entitled Poll Admin.  Click on Poll Results to view Poll data.
##
## Plans for new features: Awaiting suggestions.
##
##############################################################
##
## Revision History:
##
## v1.1.8 12/04/2003
##  - now compatible with Mozilla and Netscape as well as Internet Explorer browser.
##    Added language support for Russian and Slovak.
##
ps.
1. 已經安裝 1.1.7 者, 不必升級.
2. 語言檔部份, 沒有更新.
施比受有福,歡迎來信賜教,謝謝 & 再見!
祝福您 好運 ^_^
歡迎加入★★心靈捕手★★ :: 討論區!!
http://wang5555.hopto.org/phpBB3/
p.s. 奉老婆之命:在晚上十一點前,得關機睡覺!!!
主題已鎖定

回到「非官方認證外掛」