Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / modules / ratings / pnlang / zho [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
06 Aug 2002 11:48:24postnuke_official/html/modules/ratings/pnlang/zhoadmin.php,NONE,1.1.2.1 adminapi.php,NONE,1.1.2.1 init.php,NONE,1.1.2.1 manual.html,NONE,1.1.2.1 user.php,NONE,1.1.2.1 userapi.php,NONE,1.1.2.1Xiaoyu Huang
 working

Update of /home/cvsroot/postnuke_official/html/modules/ratings/pnlang/zho
In directory ns7.hostnuke.net:/tmp/cvs-serv12328

Added Files:
      Tag: PostNuke_71
	admin.php adminapi.php init.php manual.html user.php 
	userapi.php 
Log Message:
working


--- NEW FILE: admin.php ---
<?php
// $Id: admin.php,v 1.1.2.1 2002/08/06 11:48:22 class007 Exp $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WIthOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jim McDonald
// Purpose of file:  Language defines for pnadmin.php
// ----------------------------------------------------------------------

define('_RATINGS', '评分');
define('_RATINGSMODIFYCONFIG', '修改配置');
define('_RATINGSDEFAULTSTYLE', '默认评分样式');
define('_RATINGSPERCENTAGE', '百分比');
define('_RATINGSOUTOFFIVE', '满分为5');
define('_RATINGSOUTOFFIVESTARS', '最多5颗星');
define('_RATINGSOUTOFTEN', '满分为10');
define('_RATINGSOUTOFTENSTARS', '最多10颗星');
define('_RATINGSSECURITY', '评分时的安全设置');
define('_RATINGSSECLOW', '低 (用户可以多次评分)');
define('_RATINGSSECMEDIUM', '中 (用户可以在每个新会话中评分)');
define('_RATINGSSECHIGH', '高 (用户只可以评分一次)');
define('_RATINGSUPDATECONFIG', '更新配置');
if (!defined('_RATINGSNOAUTH')) {
	define('_RATINGSNOAUTH','您没有权限访问评分模块');
}
?>
--- NEW FILE: adminapi.php ---
<?php
// $Id: adminapi.php,v 1.1.2.1 2002/08/06 11:48:22 class007 Exp $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WIthOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jim McDonald
// Purpose of file:  Language defines for pnadminapi.php
// ----------------------------------------------------------------------

if (!defined('_RATINGSNOAUTH')) {
	define('_RATINGSNOAUTH','您没有权限访问评分模块');
}
?>
--- NEW FILE: init.php ---
<?php
// $Id: init.php,v 1.1.2.1 2002/08/06 11:48:22 class007 Exp $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WIthOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jim McDonald
// Purpose of file:  Language defines for pninit.php
// ----------------------------------------------------------------------

define('_RATINGSCOULDNOTUNREGISTER', '无法为评分模块注销系统钩子(hook)');
?>
--- NEW FILE: manual.html ---
<html>
  <head>
    <title>Ratings</title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <font face="Verdana,Arial,Helvetica" SIZE="2">
      <center><b>Ratings</b></center>
    <br />
    <br />

    <h1>Introduction</h1>

    The ratings module allows any module developer to add ratings to their
    module items with ease.  This module is not designed to be called directly,
    but instead is meant to be called as a utility module from within other
    modules to expand their functionality.

    <h1>API</h1>

    The API for the ratings module consists of the following user functions

    <h2>display</h2>

    <i>display</i> provides a suitable output string for displaying the current
    rating of a defined item.  The variables used by this function are as
    follows:

    <ul>
      <li />
      <b>modname</b> - the name of the module to get the rating for
      <li />
      <b>itemid</b> - the item in the module to get the rating for
      <li />
      <b>ratingtype</b> - the type of the rating (optional)
      <li />
      <b>style</b> - the style in which to display the rating (optional).
      The style can be one of the following items:
      <ul>
        <li />
        <i>percentage</i> - rating shown as a percentage
        <li />
        <i>outoffive</i> - rating shown as value out of five
        <li />
        <i>outoffivestars</i> - rating shown as value out of five using stars
        <li />
        <i>outoften</i> - rating shown as value out of ten
        <li />
        <i>outoftenstars</i> - rating shown as value out of ten using stars
      </ul>
    </ul>
    <p />

    This function returns a suitable output string if the rating is known to
    the system, or <i>void</i> if it is not.

    <h2>ask</h2>

    <i>ask</i> provides a suitable output string to ask for a rating of a
    defined item.  The variables used by this function are as follows:

    <ul>
      <li />
      <b>modname</b> - the name of the module to obtain a rating for
      <li />
      <b>itemid</b> - the item in the module to obtain a rating for
      <li />
      <b>ratingtype</b> - the type of the rating (optional)
      <li />
      <b>returnurl</b> - the URL to return to after the ratings has been
      obtained
      <li />
      <b>style</b> - the style in which to obtain a rating (optional).  See
      above for details
    </ul>
    <p />

    This function returns a suitable output string if the current user is
    allowed to rate the item, or <i>void</i> if they are not.

    <h1>Examples</h1>

    The example below shows how to use the functions provided with this API.
    The example is used with the 'news' module and
    uses the <i>sid</i> variable as the rating item id.

    <pre font="fixed">
      // Show rating for news item
      if (pnModLoad('Ratings')) {
          $rating = pnModFunc('Ratings',
                              'user',
                              'display',
                              array('modname' =&gt; 'news',
                                    'itemid' =&gt; $sid));
          if (isset($rating)) {
              $output-&gt;Text('Rating for this story: ');
              $output-&gt;SetInputState(_PNH_VERBATIMINPUT);
              $output-&gt;Text($rating);
              $output-&gt;SetInputState(_PNH_PARSEINPUT);
          }

          $askrating = pnModFunc('Ratings',
                                 'user',
                                 'ask',
                                 array('modname' =&gt; 'news',
                                       'itemid' =&gt; $sid,
                                       'returnurl' =&gt; pnModURL('news',
                                                               'user',
                                                               'display',
                                                               array('sid' =&gt; $sid))));
          $output-&gt;SetInputState(_PNH_VERBATIMINPUT);
          $output-&gt;Text($askrating);
          $output-&gt;SetInputState(_PNH_PARSEINPUT);
      }
    </pre>


    <h1>Permission</h1>

    The permissions for the ratings module are as follows:

     <h2>Component</h2>

     The component is simply 'Ratings::'

     <h2>Instance</h2>

     The instance is 'Module name:Rating type:Item ID'.  The items are
     described below:

     <ul>
       <li />
       <b>Module name</b> - the module name as passed in as <i>modname</i> to
       the <i>display</i> and <i>ask</i> functions as above
       <li />
       <b>Rating type</b> - the specific type of rating that this item is for,
       as passed in as <i>ratingtype</i> to the <i>display</i> and <i>ask</i>
       functions as above.  If no value is supplied this is set to 'default'
       <li />
       <b>Item ID</b> - the module-specific ID of the item being rated, as
       passed in as <i>itemid</i> to the <i>display</i> and <i>ask</i>
       functions as above.
     </ul>
     <p />

     A user needs to have at least read permission to see an item's rating, and
     at least comments permission to be able to rate an item.

     <h1>Configuration</h1>

     The module has two configuration variables, described below.

     <h2>defaultstyle</h2>

     This variable specifies the style in which ratings are displayed when no
     specific display style is supplied by the calling module.  This variable
     can take the value of any of the display styles available, as listed
     above.

     <h2>seclevel</h2>

     This variables specificies the security level that is applied to ratings
     in an attempt to avoid users being able to rig ratings.  The higher the
     security level the harder it is for a user to be able to rate an item
     multiple times, but the more work that PostNuke has to do to try to ensure
     that the user is not attempting to rate a single item many times.

  </body>
</html>

--- NEW FILE: user.php ---
<?php
// $Id: user.php,v 1.1.2.1 2002/08/06 11:48:22 class007 Exp $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WIthOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jim McDonald
// Purpose of file:  Language defines for pnuser.php
// ----------------------------------------------------------------------

define('_RATETHISITEM', '为该项目评分');
define('_RATING', '评分');
if (!defined('_RATINGSNOAUTH')) {
	define('_RATINGSNOAUTH','您没有权限访问评分模块');
}
?>
--- NEW FILE: userapi.php ---
<?php
// $Id: userapi.php,v 1.1.2.1 2002/08/06 11:48:22 class007 Exp $
// ----------------------------------------------------------------------
// POST-NUKE Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WIthOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jim McDonald
// Purpose of file:  Language defines for pnuserapi.php
// ----------------------------------------------------------------------

if (!defined('_THANKYOUFORRATING')) {
    define('_THANKYOUFORRATING', '感谢您为该项目评分');
}
?>

Directory filter : [ all ] / postnuke_official / html / modules / ratings / pnlang / zho [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3