*/
$votingMode = 2;
+/**
+ * Hide bookmarks below a certain voting from all users.
+ * Null to deactivate it.
+ *
+ * @var integer
+ */
+$hideBelowVoting = null;
+
/****************************
* Website Thumbnails
- Configuration option to disable registration
- Implement request #2874049: "Feeling lucky" button
just add "?lucky=1" as parameter to search page
+- Hide bookmarks with vote < $threshold from users (not admins)
0.94 - 2009-10-02
logged in anymore (name not shown on top right)
- Make users inactive by default when registered newly
- have to be activated by admins
-- Hide bookmarks with vote < 0 (or threshold) from unregistered users
- Add RDFa to user profile page
- use recaptcha or alike
}
$query_1 .= 'B.*, U.'. $userservice->getFieldName('username');
- $query_2 = ' FROM '. $userservice->getTableName() .' AS U, '. $this->getTableName() .' AS B';
+ $query_2 = ' FROM '. $userservice->getTableName() .' AS U'
+ . ', '. $this->getTableName() .' AS B';
$query_3 = ' WHERE B.uId = U.'. $userservice->getFieldName('primary') . $privacy;
+
+ if ($GLOBALS['enableVoting'] && $GLOBALS['hideBelowVoting'] !== null
+ && !$userservice->isAdmin($userservice->getCurrentUserId())
+ ) {
+ $query_3 .= ' AND B.bVoting >= ' . (int)$GLOBALS['hideBelowVoting'];
+ }
+
if (is_null($watched)) {
if (!is_null($user)) {
$query_3 .= ' AND B.uId = '. $user;