Правила форума Гаранты форума
Размещение рекламы AMX-X компилятор

Здравствуйте, гость Вход | Регистрация

Наши новости:

14-дек
24-апр
10-апр
11-апр

error в логе от хука(ipb board steam v2) прошу помощи подправления

Статус пользователя rus26
сообщение 27.1.2015, 7:29
Сообщение #1


Стаж: 12 лет

Сообщений: 586
Благодарностей: 42
Полезность: < 0

Хочу вот сделать форум чтобы все без ошибок было в apache2 =) ну не получается... Установил хук steam v2 качал с другого сайта там, все поставил работает все гудно, ну есть одно но, при каждом обращение к steam профилю выдает ошибки в логах
Код
[Tue Jan 27 08:09:22 2015] [error] [client 123] File does not exist: /путь/www/www.ru/iconFriends.png, referer: http://www.ru/index.php?/user/1-admin/
[Tue Jan 27 08:09:22 2015] [error] [client 123] File does not exist: /путь/www/www.ru/iconAddFriend.png, referer: http://www.ru/index.php?/user/1-admin/
[Tue Jan 27 08:09:22 2015] [error] [client 123] File does not exist: /путь/www/www.ru/iconGroups.png, referer: http://www.ru/index.php?/user/1-admin/
[Tue Jan 27 08:09:22 2015] [error] [client 123] File does not exist: /путь/www/www.ru/iconGames.png, referer: http://www.ru/index.php?/user/1-admin/
[Tue Jan 27 08:09:22 2015] [error] [client 123] File does not exist: /путь/www/www.ru/iconWishlist.png, referer: http://www.ru/index.php?/user/1-admin/
[Tue Jan 27 08:09:22 2015] [error] [client 123] File does not exist: /путь/www/www.ru/iconInventory.png, referer: http://www.ru/index.php?/user/1-admin/



сам файл xml вот

Скрытый текст
Код
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<steamprofile-config>
    <vars>
        <!--
        The Theme used by SteamProfile. Must be the name of a folder inside
        the "ajax/themes/" folder.
        -->
        <var name="theme">tf2maps</var>
        <!--
        If set to true, the slider menu with icon links will be shown.
        -->
        <var name="slidermenu">true</var>
        <!--
        If set to true, the banner of the currenty played game will be shown in the badge background.
        -->
        <var name="gamebanner">true</var>
        <!--
        Sets the community language.
        Allowed values: danish, czech, dutch, english, finnish, french, german,
                        hungarian, italian, japanese, norwegian, polish, portuguese,
                        romanian, russian, schinese, spanish, swedish, tchinese,
                        thai
        -->
        <var name="language">english</var>
    </vars>
    <!-- The HTML templates used for DOM manipulation. Change only if you know what you're doing. -->
    <templates>
        <profile>
        <![CDATA[
            <div class="sp-bg-game">
            <div class="sp-bg-fade">
            <div class="sp-badge">
                <div class="sp-avatar">
                    <a target="_blank" href="">
                        <img src="" width="32" height="32" alt="" />
                    </a>
                </div>
                <div class="sp-info">
                    <a class="sp-name" target="_blank" href=""></a><br />
                </div>
                <div class="sp-extra">
                    <div class="sp-handle"></div>
                    <div class="sp-content">
                        <a class="sp-addfriend" href=""><img src="iconAddFriend.png" width="16" height="16" alt="" /></a>
                        <a class="sp-viewfriends" href=""><img src="iconFriends.png" width="16" height="16" alt="" /></a>
                        <a class="sp-viewgroups" href=""><img src="iconGroups.png" width="16" height="16" alt="" /></a>
                        <a class="sp-viewgames" href=""><img src="iconGames.png" width="16" height="16" alt="" /></a>
                        <br />
                        <a class="sp-viewinventory" href=""><img src="iconInventory.png" width="16" height="16" alt="" /></a>
                        <a class="sp-viewwishlist" href=""><img src="iconWishlist.png" width="16" height="16" alt="" /></a>
                        <a class="sp-viewvideos" href=""><img src="iconVideo.png" width="16" height="16" alt="" /></a>
                        <a class="sp-viewscreenshots" href=""><img src="iconScreenshots.png" width="16" height="16" alt="" /></a>
                    </div>
                </div>
            </div>
            </div>
            </div>
        ]]>
        </profile>
        <loading>
        <![CDATA[
            <div class="sp-loading">
            </div>
        ]]>
        </loading>
        <error>
        <![CDATA[
            <div class="sp-error">
            </div>
        ]]>
        </error>
    </templates>
</steamprofile-config>


Кто разбирается помогите пожалуйста, я уже 4 часа убил на то чтобы исправить данную ошибку уже пробовал даже напрямую ссылки писать картинке та же самая фигня выходитsad.gif

Но сами картинки есть, они работают прекрасно ну ошибку только выдает не по понятным причинам!!, картинки вообще лежат в папке /steamprofile/ajax/themes/tf2maps а он откуда берет с глав страница форума, вот незнаю что делать?? кроме как заливать в корень форума картинки
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   Цитировать сообщение
Статус пользователя oxoTHuk.
сообщение 27.1.2015, 8:36
Сообщение #2


Иконка группы

Стаж: 17 лет

Сообщений: 879
Благодарностей: 515
Полезность: 867

Ну два варианта, либо кидай картинки в корень, либо правь это:
Код:
<div class="sp-content">
<a class="sp-addfriend" href=""><img src="iconAddFriend.png" width="16" height="16" alt="" /></a>
<a class="sp-viewfriends" href=""><img src="iconFriends.png" width="16" height="16" alt="" /></a>
<a class="sp-viewgroups" href=""><img src="iconGroups.png" width="16" height="16" alt="" /></a>
<a class="sp-viewgames" href=""><img src="iconGames.png" width="16" height="16" alt="" /></a>
<br />
<a class="sp-viewinventory" href=""><img src="iconInventory.png" width="16" height="16" alt="" /></a>
<a class="sp-viewwishlist" href=""><img src="iconWishlist.png" width="16" height="16" alt="" /></a>
<a class="sp-viewvideos" href=""><img src="iconVideo.png" width="16" height="16" alt="" /></a>
<a class="sp-viewscreenshots" href=""><img src="iconScreenshots.png" width="16" height="16" alt="" /></a>
</div>
Указывая пути полностью, т.е. относительный путь: /steamprofile/ajax/themes/tf2maps/iconWishlist.png и т.д.
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя rus26
сообщение 27.1.2015, 8:45
Сообщение #3


Стаж: 12 лет

Сообщений: 586
Благодарностей: 42
Полезность: < 0

Цитата(oxoTHuk. @ 27.1.2015, 9:36) *
Ну два варианта, либо кидай картинки в корень, либо правь это:
Код:
<div class="sp-content">
<a class="sp-addfriend" href=""><img src="iconAddFriend.png" width="16" height="16" alt="" /></a>
<a class="sp-viewfriends" href=""><img src="iconFriends.png" width="16" height="16" alt="" /></a>
<a class="sp-viewgroups" href=""><img src="iconGroups.png" width="16" height="16" alt="" /></a>
<a class="sp-viewgames" href=""><img src="iconGames.png" width="16" height="16" alt="" /></a>
<br />
<a class="sp-viewinventory" href=""><img src="iconInventory.png" width="16" height="16" alt="" /></a>
<a class="sp-viewwishlist" href=""><img src="iconWishlist.png" width="16" height="16" alt="" /></a>
<a class="sp-viewvideos" href=""><img src="iconVideo.png" width="16" height="16" alt="" /></a>
<a class="sp-viewscreenshots" href=""><img src="iconScreenshots.png" width="16" height="16" alt="" /></a>
</div>
Указывая пути полностью, т.е. относительный путь: /steamprofile/ajax/themes/tf2maps/iconWishlist.png и т.д.

тут я менял, меня тогда в категорию нужную кидает steamprofile/ajax/themes/tf2maps , ну при этом и папка создается еще одна то-есть чтобы поместить там еще в категории папка указывается дополнительная, так же пробовал все сделать ну потом обратно выкидывает в корень форумаsad.gif
ДА кст сам файл js вот может тут какой-то косяк?
Скрытый текст
Код
/**
*    Written by Nico Bergemann <barracuda415@yahoo.de>
*    Copyright 2011 Nico Bergemann
*
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 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.
*
*    You should have received a copy of the GNU General Public License
*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

jQuery.fn.attrAppend = function(name, value) {
    var elem;
    return this.each(function(){
        elem = jQuery(this);
        
        // append attribute only if extisting and not empty
        if (elem.attr(name) !== undefined && elem.attr(name) != "") {
            elem.attr(name, value + elem.attr(name));
        }
    });
};

function SteamProfile() {
    // path/file config
    var scriptFile = "steamprofile.js";
    var configFile = "steamprofile.xml";
    var proxyFile = "../xmlproxy.php";
    var basePath;
    var themePath;
    
    // language config
    var lang = "english";
    var langLocal = "english";
    var langData = {
        english : {
            loading : "Loading...",
            no_profile : "This user has not yet set up their Steam Community profile.",
            private_profile : "This profile is private.",
            invalid_data : "Invalid profile data.",
            add_friend : "Add to friends",
            view_games : "View games",
            view_friends : "View friends",
            view_groups : "View groups",
            view_inventory : "View inventory",
            view_wishlist : "View wishlist",
            view_videos : "View videos",
            view_screenshots : "View screenshots"
        }
    };
    
    // misc config
    var loadLock = false;
    var configLoaded = false;
    var configData;
    var showGameBanner;
    var showSliderMenu;

    // profile data
    var profiles = [];
    var profileCache = {};
    
    // template data
    var profileTpl;
    var loadingTpl;
    var errorTpl;

    this.init = function() {        
        if (typeof spBasePath == "string") {
            basePath = spBasePath;
        } else {
            // extract the path from the src attribute

            // get our <script>-tag
            var scriptElement = jQuery('script[src$=\'' + scriptFile + '\']');
            
            // in rare cases, this script could be included without <script>
            if (scriptElement.length === 0) {
                return;
            }
            
            basePath = scriptElement.attr('src').replace(scriptFile, '');
        }
        
        // load xml config
        jQuery.ajax({
            type: 'GET',
            url: basePath + configFile,
            dataType: 'xml',
            success: function(request, status) {
                configData = jQuery(request);
                loadConfig();
            }
        });
    };
    
    this.refresh = function() {
        // make sure we already got a loaded config
        // and no pending profile loads
        if (!configLoaded || loadLock) {
            return;
        }
        
        // lock loading
        loadLock = true;
        
        // select profile placeholders
        profiles = jQuery('.steamprofile[title]');
        
        // are there any profiles to build?
        if (profiles.length === 0) {
            return;
        }

        // store profile id for later usage
        profiles.each(function() {
            var profile = jQuery(this);
            profile.data('profileID', jQuery.trim(profile.attr('title')));
            profile.removeAttr('title');
        });

        // replace placeholders with loading template and make them visible
        profiles.empty().append(loadingTpl);
        
        // load first profile
        loadProfile(0);
    };
    
    this.load = function(profileID) {
        // make sure we already got a loaded config
        // and no pending profile loads
        if (!configLoaded || loadLock) {
            return null;
        }
        
        // create profile base
        profile = jQuery('<div class="steamprofile"></div>');
        
        // add loading template
        profile.append(loadingTpl);
        
        // load xml data
        jQuery.ajax({
            type: 'GET',
            url: getXMLProxyURL(profileID),
            dataType: 'xml',
            success: function(request, status) {
                // build profile and replace placeholder with profile
                profile.empty().append(createProfile(jQuery(request)));
            }
        });
        
        return profile;
    };
    
    this.isLocked = function() {
        return loadLock;
    };
    
    function getXMLProxyURL(profileID) {
        return basePath + proxyFile + '?id=' + escape(profileID) + '&lang=' + escape(lang);
    }
    
    function getConfigString(name) {
        return configData.find('vars > var[name="' + name + '"]').text();
    }
    
    function getConfigBool(name) {
        return getConfigString(name).toLowerCase() == 'true';
    }
    
    function loadConfig() {
        showSliderMenu = getConfigBool('slidermenu');
        showGameBanner = getConfigBool('gamebanner');
        lang = getConfigString('language');
        langLocal = lang;
        
        // fall back to english if no translation is available for the selected language in SteamProfile
        if (langData[langLocal] == null) {
            langLocal = "english";
        }
    
        // set theme stylesheet
        themePath = basePath + 'themes/' + getConfigString('theme') + '/';
        jQuery('head').append('<link rel="stylesheet" type="text/css" href="' + themePath + 'style.css">');
        
        // load templates
        profileTpl = jQuery(configData.find('templates > profile').text());
        loadingTpl = jQuery(configData.find('templates > loading').text());
        errorTpl   = jQuery(configData.find('templates > error').text());
        
        // add theme path to image src
        profileTpl.find('img').attrAppend('src', themePath);
        loadingTpl.find('img').attrAppend('src', themePath);
        errorTpl.find('img').attrAppend('src', themePath);
        
        // use loading template
        loadingTpl.append(langData[langLocal].loading);
        
        // we can now unlock the refreshing function
        configLoaded = true;
        
        // start loading profiles
        SteamProfile.refresh();
    }

    function loadProfile(profileIndex) {
        // check if we have loaded all profiles already
        if (profileIndex >= profiles.length) {
            // unlock loading
            loadLock = false;
            return;
        }
        
        var profile = jQuery(profiles[profileIndex++]);
        var profileID = profile.data('profileID');
        
        if (profileCache[profileID] == null) {
            // load xml data
            jQuery.ajax({
                type: 'GET',
                url: getXMLProxyURL(profileID),
                dataType: 'xml',
                success: function(request, status) {
                    // build profile and cache DOM for following IDs
                    profileCache[profileID] = createProfile(jQuery(request));
                    // replace placeholder with profile
                    profile.empty().append(profileCache[profileID]);
                    // load next profile
                    loadProfile(profileIndex);
                }
            });
        } else {
            // the profile was build previously, just copy it
            var profileCopy = profileCache[profileID].clone();
            createEvents(profileCopy);
            profile.empty().append(profileCopy);
            // load next profile
            loadProfile(profileIndex);
        }
    }

    function createProfile(profileData) {
        if (profileData.find('profile').length !== 0) {
            var profile;
            
            var steamID = profileData.find('profile > steamID').text();
            var steamID64 = profileData.find('profile > steamID64').text();
            var customUrl = profileData.find('profile > customURL').text();
            var profileUrl = 'http://steamcommunity.com/profiles/' + steamID64;
            
            if (customUrl.length > 0) {
                profileUrl = 'http://steamcommunity.com/id/' + customUrl;
            }
        
            if (steamID.length == 0) {
                // the profile doesn't exists yet
                return createError(langData[langLocal].no_profile);
            }
            
            // profile data looks good
            profile = profileTpl.clone();
            
            // set state class, avatar image and name
            var onlineState = profileData.find('profile > onlineState').text();
            profile.find('.sp-badge').addClass('sp-' + onlineState);
            profile.find('.sp-avatar img').attr('src', profileData.find('profile > avatarIcon').text());
            profile.find('.sp-info a').append(profileData.find('profile > steamID').text());

            // set state message
            var info = profile.find('.sp-info');
            if (profileData.find('profile > visibilityState').text() == '1') {
                info.append(langData[langLocal].private_profile);
            } else {
                info.append(profileData.find('profile > stateMessage').text());
            }

            // set game background
            var gameLogoSmall = profileData.find('profile > inGameInfo > gameLogoSmall').text();
            if (showGameBanner && gameLogoSmall.length > 0) {
                profile.css('background-image', 'url(' + gameLogoSmall + ')');
            } else {
                profile.removeClass('sp-bg-game');
                profile.find('.sp-bg-fade').removeClass('sp-bg-fade');
            }

            if (showSliderMenu) {
                // add button links
                profile.find('.sp-addfriend').attr('href', 'steam://friends/add/' + steamID64);
                profile.find('.sp-addfriend').attr('title', langData[langLocal].add_friend);
                
                profile.find('.sp-viewgames').attr('href', profileUrl + '/games/');
                profile.find('.sp-viewgames').attr('title', langData[langLocal].view_games);
                
                profile.find('.sp-viewfriends').attr('href', profileUrl + '/friends/');
                profile.find('.sp-viewfriends').attr('title', langData[langLocal].view_friends);
                
                profile.find('.sp-viewgroups').attr('href', profileUrl + '/groups/');
                profile.find('.sp-viewgroups').attr('title', langData[langLocal].view_groups);
                
                profile.find('.sp-viewinventory').attr('href', profileUrl + '/inventory/');
                profile.find('.sp-viewinventory').attr('title', langData[langLocal].view_inventory);
                
                profile.find('.sp-viewwishlist').attr('href', profileUrl + '/wishlist/');
                profile.find('.sp-viewwishlist').attr('title', langData[langLocal].view_wishlist);
                
                profile.find('.sp-viewvideos').attr('href', profileUrl + '/videos/');
                profile.find('.sp-viewvideos').attr('title', langData[langLocal].view_videos);
                
                profile.find('.sp-viewscreenshots').attr('href', profileUrl + '/screenshots/');
                profile.find('.sp-viewscreenshots').attr('title', langData[langLocal].view_screenshots);

                createEvents(profile);
            } else {
                profile.find('.sp-extra').remove();
            }

            // add other link hrefs
            profile.find('.sp-avatar a, .sp-info a.sp-name').attr('href', profileUrl);
            
            return profile;
        } else if (profileData.find('response').length !== 0) {
            // steam community returned a message
            return createError(profileData.find('response > error').text());
        } else {
            // we got invalid xml data
            return createError(langData[langLocal].invalid_data);
        }
    }
    
    function createEvents(profile) {
        // add events for menu
        profile.find('.sp-handle').click(function() {
            profile.find('.sp-content').toggle(200);
        });
    }

    function createError(message) {
        var errorTmp = errorTpl.clone();
        errorTmp.append(message);    
        return errorTmp;
    }
}

jQuery(document).ready(function() {
    SteamProfile = new SteamProfile();
    SteamProfile.init();
});


p.s
Я как понимаю где то в js или в xml прописаны 2 пути, то-есть 1 нормальная работающими картинками, а 2 в корень ссылается за картинками, только вот где найти я незнаюsad.gif ну уже разными своими умении менял все что можно было, ну не выходит не какsad.gif

Отредактировал: rus26, - 27.1.2015, 8:48
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя oxoTHuk.
сообщение 27.1.2015, 8:55
Сообщение #4


Иконка группы

Стаж: 17 лет

Сообщений: 879
Благодарностей: 515
Полезность: 867

Код:
 class="sp-viewgames"

Ищи стили, скорее всего там косяк. Загони под спойлер ссылку, гляну что там, надеюсь регаться не нужно для это будет.
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя rus26
сообщение 27.1.2015, 9:01
Сообщение #5


Стаж: 12 лет

Сообщений: 586
Благодарностей: 42
Полезность: < 0

Цитата(oxoTHuk. @ 27.1.2015, 9:55) *
Код:
 class="sp-viewgames"

Ищи стили, скорее всего там косяк. Загони под спойлер ссылку, гляну что там, надеюсь регаться не нужно для это будет.

ну стиль всего один, вот архив самого хука этого прикрепил Прикрепленный файл  _WA34__SteamProfile_2.zip ( 718,31 килобайт ) Кол-во скачиваний: 3
, а в стилях сайта там нету нечего такого подобного sp-viewgames , сейчас проверил.
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя oxoTHuk.
сообщение 27.1.2015, 9:11
Сообщение #6


Иконка группы

Стаж: 17 лет

Сообщений: 879
Благодарностей: 515
Полезность: 867

Будет время, посмотрю внимательнее
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
Статус пользователя rus26
сообщение 27.1.2015, 9:13
Сообщение #7


Стаж: 12 лет

Сообщений: 586
Благодарностей: 42
Полезность: < 0

Цитата(oxoTHuk. @ 27.1.2015, 10:11) *
Будет время, посмотрю внимательнее

спасибо жду
Перейти в начало страницы         Просмотр профиля    Отправить личное сообщение
   + Цитировать сообщение
  Ответить в данную темуНачать новую тему
 
0 пользователей и 1 гостей читают эту тему: