站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
Gallery:模块:评价(rating)
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
Firebrance
(
讨论
|
贡献
)
2008年9月1日 (一) 11:03的版本
(
Gallery:Modules:rating
移动到
Gallery:模块:评价(rating)
)
(
差异
)
←上一版本
|
最后版本
(
差异
) |
下一版本→
(
差异
)
跳转至:
导航
、
搜索
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== Introduction == The Gallery2 rating module was added in Gallery 2.1. It was written by [http://seiler.us Don Seiler (rizzo)], with much help from valiant, mindless and bharat. == Features == Gallery 2.2 adds a dynamic album view to show highly rated items from across the Gallery. Configure the theme, theme settings and sort order for this view in Site Admin. === User Interface === The Gallery2 rating module uses a 5-star interface for both user selection and average rating display. The default theme will use gold stars to represent the user's choice, and red outlines of stars to indicate the current average rating for that item. The module was designed with themability in mind, so theme developers should have some flexibility in changing images and can also make use of a horizontal bar to display the average. The bar is hidden by default. ==== AJAX ==== The star UI uses the latest in internet technology buzzwords, AJAX! What this means for the average user is that submitting a rating and updating of the rating display will happen without the page reloading. Javascript and behind-the-scenes HTTP calls will do the work and update the page. === Permissions === The Gallery2 rating module makes full use of Gallery2's permissions system, and so a site admin can restrict adding and even viewing of item ratings to certain groups of users. A quick example would be to let Everyone view ratings, but only allow Registered Users to add ratings. === Sorting === You will be able to sort items in an album by rating (both ascending and descending) if you wish to. ==== Vote Skew Protections ==== We are very aware of the possiblity of dastardly devils seeking to skew vote results in every manner of way, and the Gallery2 rating module does make efforts to curb this. Basically it only allows one vote per user per item. The trick comes into play when you allow anonymous users (Everyone) to cast votes. We will track the session ID and remote identifier information to do our best to identify unique visitors. We will add more safeguards as we are made aware of them in an effort to provide a fair rating system. == Screenshots == ''Will post when I can take some.'' == Usage == To enable rating you need to both enable the rating module '''and turn on rating for a given album''' under the Album Properties (Edit Album->Album tab). Define the permissions (optionally for each album/item) by browsing to an album and clicking Edit Permission and adding/removing the ''add ratings'', ''view ratings'' permission to specific user(s) or groups. Add the ratings interface where you would like by selecting the ratings ''Block'' under the Edit Album->Theme tab ''blocks to add to the sidebar/album page/photo page'' == Customizations == You can customize the look of the rating interface by adjusting the CSS, the templates and the images. To adjust the CSS, open your themes/*/theme.css and add .giRatingUI img {} .giRatingUnit {} .giRatingHidden {} .giRatingVotes {} .giRatingEmpty {} .giRatingEmptyUserYes {} .giRatingHalfUserNo {} .giRatingHalfUserYes {} .giRatingFullUserNo {} .giRatingFullUserYes {} .giRatingAverage {} of course you can set any CSS in between the {}. Also, you can change following CSS clases: .giRatingUI { margin: 10px auto; /* Required to center default rating module star images */ } #gsThumbMatrix .giRatingAverageContainer { margin: auto; } == Bugs and Feature Requests == All bugs and featuer requests in the Gallery 2.1 module should be filed with Gallery's sourceforge [http://sourceforge.net/tracker/?group_id=7130&atid=107130 bug] and [http://sourceforge.net/tracker/?group_id=7130&atid=357130 feature request] trackers, respectively. Any bugs with the gallery-contrib module should just be noted to Don Seiler by emailing don [at] seiler [dot] us. No new features will be accepted before the 2.1 release. === Tasks === This module is an effort satisfy [http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=106402&group_id=7130&group_project_id=14056 Task #106402]. There is also a [http://gallery.menalto.com/node/34758 forum thread] on the subject. * Remove rating specific CSS from theme.css and the css that needs to be there should be generalized, there should not be rating specific CSS in theme.css (we can't have a monolithic CSS file for our modular application) === Feature Requests === '''Change/erase ratings:''' [http://gallery.menalto.com/node/78129 Modify Rating enhancement] ''These should be added to the Gallery2 RFE tracker.'' --[[User:Rizzo|Rizzo]] 13:07, 16 December 2005 (PST) I'm putting these in a priority order, and grouping what I see as dupes or related. # Enable iconpack developers to include alternate stars that can be used in place of default stars --[[User:Thumb|thumb]] 19:07, 22 November 2005 (PST) # A block on the photo page or in the sidebar could have more than 1 line, so we could have 1 line to show your rating and 1 line to show the average #* I think this is a theme issue. If we do things right then the theme can define it, but it would still be the same for item summaries vs blocks, since they use the same template. # A top x rated items block #* keep your pr0n site requests off here. or email them with a paypal donation ;) --[[User:Rizzo|Rizzo]] 08:32, 11 November 2005 (PST) # Add other voting / rating styles, not just 5 stars. Maybe drop dwon / radio votes too, with user defined text... # Enable voting option as an overlay of image blocks # combine with the dynamic_view module in order to get a "top-of-album/subalbum" selection based on viewer's votes [[category:Gallery 2:Modules]]
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)