Jury

Jury

С нами с 05 марта 2013; Место в рейтинге пользователей: #357
Jury
28 октября 2015, 10:04
0
Спасибо буду ждать, пока сделал через phx, такой параметр очень нужен, я делаю принудительный опрос среди пользователей со скрытыми результатами, хоть пользователи тором не пользуются, но зато юзают сайт с разных устройств.
Jury
27 октября 2015, 13:54
0
Подскажите как сделать только для зарегистрированных ?? проблема в том что я захожу с нового браузера новым пользователем и уже нет возможности голосовать.
Jury
27 октября 2015, 09:05
0
Спасибо за обновленный компонент )) пошел сносить старый
Jury
26 октября 2015, 12:28
0
Добрый день, на одной странице несколько вызовов работают?
Jury
19 октября 2015, 12:43
0
Добрый день, подскажите пожалуйста как избавиться от шибки в логе
(ERROR @ /assets/components/mycalendar/action.php) No class specified for loadClass
Появилась после обновления движка и компонента
Jury
19 августа 2015, 18:54
+1
Вот дошли руки до сайта где не добавлялся пользователь в группу,
Не знаю ошибка или что, не углублялся, но у меня не работало по причине 2х вызовов [[-!HybridAuth]]
в одном шаблоне, оставил 1 вызов и всё стало добавляться.
Jury
17 августа 2015, 13:46
+1
У меня на одном сайте такая же проблема, буду решать, отпишу
Jury
17 августа 2015, 09:46
0
Бала такая проблема, заработало при создание новой группы и без прав &groups=`newgroup`
Jury
17 августа 2015, 09:26
0
Решился вопрос так, если кому то нужно

<?php
/*!
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* © 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
*/
/**
 * Hybrid_Providers_Steam provider adapter based on OpenID protocol
 *
 * http://hybridauth.sourceforge.net/userguide/IDProvider_info_Steam.html
 *
 * This class has been entirely reworked for the new Steam API (http://steamcommunity.com/dev)
 */
class Hybrid_Providers_Steam extends Hybrid_Provider_Model_OpenID
{
    var $openidIdentifier = "http://steamcommunity.com/openid";
    function loginFinish()
    {
        parent::loginFinish();
        $this->user->profile->identifier = str_ireplace("http://steamcommunity.com/openid/id/",
            "", $this->user->profile->identifier);
        if (!$this->user->profile->identifier) {
            throw new Exception("Authentication failed! {$this->providerId} returned an invalid user ID.", 5);
        }
        // If API key is not provided, use legacy API methods
        if (!empty($this->config['keys']['key'])) {
            $this->getUserProfileWebAPI($this->config['keys']['key']);
        } else {
            $this->getUserProfileLegacyAPI();
        }
        Hybrid_Auth::storage()->set("hauth_session.{$this->providerId}.user", $this->user);
    }
    function getUserProfileWebAPI($apiKey)
    {
        $apiUrl = 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key='
            . $apiKey . '&steamids=' . $this->user->profile->identifier;
        $data = @file_get_contents($apiUrl);
        $data = json_decode($data);
        if (!is_object($data) || !isset($data->response->players[0])) {
            return false;
        }
        // Get the first index in 'players' array
        $data = $data->response->players[0];
        $this->user->profile->displayName = property_exists($data, 'personaname') ? $data->personaname : '';
        $this->user->profile->firstName = property_exists($data, 'realname') ? $data->personaname."" : '';
        $this->user->profile->photoURL = property_exists($data, 'avatarfull') ? $data->avatarfull : '';
        $this->user->profile->profileURL = property_exists($data, 'profileurl') ? $data->profileurl : '';
        $this->user->profile->country = property_exists($data, 'loccountrycode') ? $data->loccountrycode : '666';
		$this->user->profile->profileURL		=	property_exists($data, 'customURL') ? "http://steamcommunity.com/id/{$data->customURL}/" : "http://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
		$this->user->profile->webSiteURL		=	property_exists($data, 'customURL') ? "http://steamcommunity.com/id/{$data->customURL}/" : "http://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
    }
    function getUserProfileLegacyAPI()
    {
        $apiUrl = 'http://steamcommunity.com/profiles/' . $this->user->profile->identifier . '/?xml=1';
        $data = @file_get_contents($apiUrl);
        $data = @ new SimpleXMLElement($data);
        if (!is_object($data)) {
            return false;
        }
		# store the user profile.  
		//$this->user->profile->identifier		=	"";
		$this->user->profile->profileURL		=	property_exists($data, 'customURL') ? "http://steamcommunity.com/id/{$data->customURL}/" : "http://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
		$this->user->profile->webSiteURL		=	property_exists($data, 'customURL') ? "http://steamcommunity.com/id/{$data->customURL}/" : "http://steamcommunity.com/profiles/{$this->user->profile->identifier}/";
		$this->user->profile->photoURL			=	property_exists($data, 'avatarFull') ? (string)$data->avatarFull : '';
		$this->user->profile->displayName		=	property_exists($data, 'steamID') ? (string)$data->steamID : '';
		$this->user->profile->description		=	property_exists($data, 'summary') ? (string)$data->summary : '';
		$this->user->profile->firstName			=	property_exists($data, 'realname') ? (string)$data->realname."11" : '';
		$this->user->profile->lastName			=	"";
		$this->user->profile->gender			=	"";
		$this->user->profile->language			=	"";
		$this->user->profile->age				=	"";
		$this->user->profile->birthDay			=	"";
		$this->user->profile->birthMonth		=	"";
		$this->user->profile->birthYear			=	"";
		$this->user->profile->email				=	"";
		$this->user->profile->emailVerified	    =	"";
		$this->user->profile->phone				=	"";
		$this->user->profile->address			=	"";
		$this->user->profile->country			=	"";
		$this->user->profile->region			=	property_exists($data, 'location') ? (string)$data->location : '';
		$this->user->profile->city				=	"";
		$this->user->profile->zip				=	"";
    }
}
Jury
30 июня 2015, 14:51
0
Потестил, всё работает четко… Колонка email очень нужна, можете добавить? в моём случае экспорт для рассылки
Jury
29 июня 2015, 13:39
0
Вам нужно создать группу ресурсов, вкладка ( сайт/группы ресурсов) и наделить её правами. не понятно что вы делаете доступ к ресурсам ограничивается по другому
Jury
27 мая 2015, 16:18
0
Тоже интересна тема сортировки тикитов,
Jury
08 мая 2015, 11:32
0
Добрый день, как вывести описание в всплывающее окно?