当前位置: 首页>>代码示例>>PHP>>正文


PHP BuckysUser::getUserForumSettings方法代码示例

本文整理汇总了PHP中BuckysUser::getUserForumSettings方法的典型用法代码示例。如果您正苦于以下问题:PHP BuckysUser::getUserForumSettings方法的具体用法?PHP BuckysUser::getUserForumSettings怎么用?PHP BuckysUser::getUserForumSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BuckysUser的用法示例。


在下文中一共展示了BuckysUser::getUserForumSettings方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addNotificationsForPendingPost

 /**
  * Add notification for the users whose 'My post approved' set 1.
  * 
  * @param Int $ownerID
  * @param Int $topicID
  * @param Int $replyID
  */
 public function addNotificationsForPendingPost($ownerID, $topicID, $replyID = null)
 {
     global $db, $BUCKYS_GLOBALS;
     $forumSettings = BuckysUser::getUserForumSettings($ownerID);
     $activity = new BuckysActivity();
     if ($forumSettings['notifyRepliedToMyTopic']) {
         if ($replyID == null) {
             $activity->addActivity($ownerID, $topicID, 'forum', BuckysForumNotification::ACTION_TYPE_TOPIC_APPROVED, 0);
         } else {
             $activity->addActivity($ownerID, $topicID, 'forum', BuckysForumNotification::ACTION_TYPE_REPLY_APPROVED, $replyID);
         }
     }
     return true;
 }
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:21,代码来源:class.BuckysForumNotification.php

示例2: dirname

<?php

require dirname(__FILE__) . '/includes/bootstrap.php';
if (!($userID = buckys_is_logged_in())) {
    buckys_redirect('/index.php', MSG_NOT_LOGGED_IN_USER, MSG_TYPE_ERROR);
}
$view = array();
//Save Shipping info
$tradeUserIns = new BuckysTradeUser();
if (isset($_POST['action']) && $_POST['action'] == 'saveNotifyInfo') {
    $result = BuckysUser::saveUserNotificationSettings($userID, $_POST);
    if ($result === true) {
        buckys_redirect('/notify.php', MSG_NOTIFICATION_SETTINGS_SAVED);
    } else {
        buckys_redirect('/notify.php', $result, MSG_TYPE_ERROR);
    }
}
//Get offer_received info
$view['trade_user_info'] = $tradeUserIns->getUserByID($userID);
$forumNotifyInfo = BuckysUser::getUserForumSettings($userID);
if (empty($view['trade_user_info'])) {
    buckys_redirect('/index.php', MSG_INVALID_REQUEST, MSG_TYPE_ERROR);
}
buckys_enqueue_stylesheet('account.css');
buckys_enqueue_stylesheet('info.css');
$BUCKYS_GLOBALS['content'] = 'notify';
$BUCKYS_GLOBALS['title'] = 'Notification Settings - BuckysRoom';
require DIR_FS_TEMPLATE . $BUCKYS_GLOBALS['template'] . "/" . $BUCKYS_GLOBALS['layout'] . ".php";
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:28,代码来源:notify.php


注:本文中的BuckysUser::getUserForumSettings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。