vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - SteamProfile Integration (https://vborg.vbsupport.ru/showthread.php?t=231081)

d3vilfish666 01-16-2010 03:50 PM

I maybe off the ball here but I think if you close your browser then empty your browser cache and then relogin to your website it will show the correct status. { both ie 7/8 & ff 3.x have settings in options to delete browser history cookies cache etc automaticly}
Info for the author if there is anyway to push the cookie to refresh that would be great.

Chainspell 01-19-2010 01:08 AM

k i got it to work except for the images.

the images are displayed fine (the buttons to add friends, etc) in firefox. but in IE the address for the images is: http://www.tf2tactics.com/steamprofi...add_friend.png

anyone got a clue on how to fix this? i've been digging around...

Chainspell 01-19-2010 02:00 AM

http://www.tf2tactics.com/showthread...&p=480#post480

i also edited the colors and some of the icons to look exactly like the friends list on steam. if you guys want me to upload my steamprofile folder just let me know :)

anyone been able to fix the icon thing yet?

Chainspell 01-19-2010 02:16 AM

hahaha!!! i fixed it!

for those who are wondering, i commented out those pesky double src url thingy (added the red comment tags) on steamprofile.js:

Code:

                // load templates
                profileTpl = $(configData.find('templates > profile').text());
                loadingTpl = $(configData.find('templates > loading').text());
                errorTpl  = $(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);

then on steamprofile.xml, changed all SRC= images relative to root path. full steamprofile.xml code:
Code:

<?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 "themes/" folder. -->
                <var name="theme">default</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>
        </vars>
        <!-- The HTML templates 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 target="_blank" href=""></a><br />
                                </div>
                                <div class="sp-extra">
                                        <div class="sp-handle"></div>
                                        <div class="sp-content">
                                                <a class="sp-joingame" title="Join Game" href=""><img src="/steamprofile/themes/default/icon_join_game.png" width="16" height="16" alt="" /></a>
                                                <a class="sp-addfriend" title="Add to Friends" href=""><img src="/steamprofile/themes/default/icon_add_friend.png" width="16" height="16" alt="" /></a>
                                                <a class="sp-viewitems" title="View Items" href="" target="_blank"><img src="/steamprofile/themes/default/icon_view_items.png" width="16" height="16" alt="" /></a>
                                        </div>
                                </div>
                        </div>
                        </div>
                        </div>
                ]]>
                </profile>
                <loading>
                <![CDATA[
                        <div class="sp-loading">
                                <img src="/steamprofile/themes/default/loading.gif" width="32" height="32" alt="" />
                                Loading...
                        </div>
                ]]>
                </loading>
                <error>
                <![CDATA[
                        <div class="sp-error">
                                <img src="/steamprofile/themes/default/error.png" width="16" height="16" alt="Error" />
                        </div>
                ]]>
                </error>
        </templates>
</steamprofile-config>


hulkster 01-28-2010 08:21 PM

1 Attachment(s)
Hi

i have a problem

invalid profile alias

it's looks like js dont work
but on VB option js i on

DJ29Joesph 02-08-2010 09:30 PM

Worked great, thanks :P

hulkster 02-12-2010 01:38 PM

can you help me please ?

Chainspell 02-12-2010 03:23 PM

you cant put in your steam profile login for some reason, it doesnt work. you have to use STEAM_X:X:XXXXXXXX or Steam Community IDs (17 digit number)

also i didnt do this part (number 8 in the guide):

Optional To only accept Steam IDs add the following to "Regular Expression":
STEAM_[0-9]:[0-9]:[0-9]{4,}

because you can't put in the 17 digit number if you do.

hulkster 02-13-2010 04:41 AM

Hi
I do everithings,couple times
i even miss nr 8
but still have this

http://thegames.pl/photos/x.jpg

I have Loadnig and then this /\ (on the sreen)

we rebuild code but don have js adsons

Code:

<vb:if condition="$post['fieldX']"><iframe src="http://steamprofile.com/steam/profile/steamprofile/{vb:raw post.fieldX}.png" align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></vb:if>

Chainspell 02-13-2010 05:26 AM

whats your url? you have to have the .js files


All times are GMT. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02630 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete