vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Steam Mini Profiles (For Steam Connect) (https://vborg.vbsupport.ru/showthread.php?t=266884)

Disasterpiece 07-14-2011 10:00 PM

Steam Mini Profiles (For Steam Connect)
 
1 Attachment(s)
This Addon displays a Mini Steam Box in the postbit template.

It requires the Steam Connect Addon to find the according Steam ID.
It's a vbulletin-implementation of Barracuda's SteamProfile Plugin.


INSTALL

1) Upload all the files inside "upload" directory to their respective locations

2) CHMOD directory "clientscript/steamprofile/cache" to 777

3) Import the product xml file as an Addon inside your AdminCP

4) Navigate to Settings > "Steam Mini Profile Settings" and configure the product to fit your needs.

BASIC STYLING

The best idea is to use it in the upper right corner of the postbit. You can accomplish this by adding this CSS to your CSS > additional.css template:

Code:

div.steamprofile{
float:right;
display:block;
z-index:300;
}

If you want to place it at any other position inside the postbit* template, follow the instructions in this post: https://vborg.vbsupport.ru/showpost....70&postcount=3
Just place the following part anywhere you like the profile to appear:
HTML Code:

<vb:if condition="$post['steamid']"><div class="steamprofile" title="{vb:raw post.steamid}"></div></vb:if>

See Upgrade Notes for Upgrade v1.0 -> v1.1

Garrey 07-16-2011 02:13 PM

But how can I move it? It's before post - but I would like to get it after post and aligned to right.

Thanks!

Disasterpiece 07-16-2011 06:23 PM

Quote:

Originally Posted by Garrey (Post 2221214)
But how can I move it? It's before post - but I would like to get it after post and aligned to right.

Thanks!

Hi

First, go to Admincp > Plugins, deactivate the plugin "add steam profile" in hook "postbit_display_start".

Then you navigate to Styles > Templates > Postbit > postbit/postbit_legacy (depends on what you're using)

Find:
HTML Code:

<!-- / attachments -->
                                        </vb:if>

Below, add:
HTML Code:

<div class="steamprofile" title="{vb:raw post.steamid}"></div>
Then Navigate to Styles > Templates > CSS > additional.css
Add this to the template somewhere:
Code:

div.steamprofile{
float:right;
display:block;
z-index:300;
}

Save

That's it!

Garrey 07-17-2011 12:24 PM

You are fast!
Thanks a lot! :)

nojo 07-20-2011 11:32 PM

doesnt display the miniprofile...

i went and disabled the plugin hook ' Admincp > Plugins, deactivate the plugin "add steam profile" in hook "postbit_display_start". '

and i check the source of the html... it is where it needs to be, but it doesnt display...

any ideas?

ps. steam connect works 100%

Disasterpiece 07-21-2011 12:33 PM

Quote:

Originally Posted by nojo (Post 2223053)
doesnt display the miniprofile...

i went and disabled the plugin hook ' Admincp > Plugins, deactivate the plugin "add steam profile" in hook "postbit_display_start". '

and i check the source of the html... it is where it needs to be, but it doesnt display...

any ideas?



ps. steam connect works 100%

View the source code of your forum and search for the term "steamprofile/ajax/steamprofile.min.js"
It should appear within the head-tags of your template. If it doesn't, you need to include the following line in your headinclude template manually:

HTML Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.example.com/forum/clientscript/steamprofile/ajax/steamprofile.min.js"></script>

Substiture example.com with your forum url.

nojo 07-22-2011 04:40 PM

its there... have looked around at all the settings, still no idea... all the files are in the right folders.. steam connect is 100% all settings look 100%.

http://www.wkaclan.com/ if you want to peak at the source. (youll only be able to see the news section, which should be enough to see the source of a page with it on it)

nojo 07-22-2011 04:47 PM

iv also tried it with this on and off
Quote:

First, go to Admincp > Plugins, deactivate the plugin "add steam profile" in hook "postbit_display_start".

Disasterpiece 07-22-2011 04:56 PM

The plugin Add steamprofile should remain active.

It seems you're missing jquery. What does the setting "Skip JQuery" say in your admincp > steam mini profile settings?

nojo 07-23-2011 08:12 PM

works now, thanks

Trip3151 07-24-2011 08:59 AM

I get Invalid profile data. any one know why?

Disasterpiece 07-24-2011 11:49 AM

Quote:

Originally Posted by Trip3151 (Post 2224239)
I get Invalid profile data. any one know why?

Is your cache directory writeable? (clientscript/steamprofile/cache)

Trip3151 07-25-2011 05:54 AM

Quote:

Originally Posted by Disasterpiece (Post 2224271)
Is your cache directory writeable? (clientscript/steamprofile/cache)

Hi Disasterpiece
yeah I chmod it to 777 but still getting the same problem
http://forum.builtforsin.org/showthr...-Through-STEAM!

Disasterpiece 07-25-2011 03:53 PM

Quote:

Originally Posted by Trip3151 (Post 2224637)
Hi Disasterpiece
yeah I chmod it to 777 but still getting the same problem
http://forum.builtforsin.org/showthr...-Through-STEAM!

Do you have access to a database administration tool like phpmyadmin?
If so, take a look in the steam_link field in the vb_users table and send me a few values per PM from users where the mini profile is not working.

Skyrider 09-02-2011 11:06 AM

What code do I use to manually add the code so I can move the mini-profile to a different template or position?

Small bug report:
When viewing a private message, at the message of someone else that I'm viewing, it shows the steam information of my own, not of the person that messaged me.

Disasterpiece 09-02-2011 05:12 PM

Quote:

Originally Posted by FF|Skyrider (Post 2241154)
What code do I use to manually add the code so I can move the mini-profile to a different template or position?

Depends where you want the miniprofile to appear. postbit template makes the most sense, since it can basically positioned anywhere inside the postbit area.

Quote:

Originally Posted by FF|Skyrider (Post 2241154)
Small bug report:
When viewing a private message, at the message of someone else that I'm viewing, it shows the steam information of my own, not of the person that messaged me.

Noted, thanks for your feedback :)

Skyrider 09-03-2011 06:02 AM

Well, the mini-profile shows it within the legacy template. But the problem is that the thread icon is in the way (in my opinion) and it fills up some space. Perhaps I wanted to add it in the user profile information at the left within posts rather than above the title of the thread.

But when I remove the icons from the template's code, it also removes the small black line as well which is shown just below the thread's and replies icon which I don't want. Hence I'd like the steam mini-profile's template code so I can add it on different places.


EDIT:
Can users make their own steam-mini profile private so it won't display within threads?

Also, I think the mini-profile should be hidden if it displays this text:
Quote:

This user has not yet set up their Steam Community profile.

wtfaatp 09-03-2011 04:40 PM

For some reason all we are getting is grey boxes were the steam profile should be... Any idea on what might be causing this?

CoZmicShReddeR 09-03-2011 08:51 PM

Same here I think Steam changed something... Disasterpiece could you please update the code for this?

Disasterpiece 09-06-2011 10:02 AM

Right at it, give me a few days please...

Disasterpiece 09-06-2011 05:04 PM

Quote:

Originally Posted by wtfaatp (Post 2241589)
For some reason all we are getting is grey boxes were the steam profile should be... Any idea on what might be causing this?

Quote:

Originally Posted by CoZmicShReddeR (Post 2241642)
Same here I think Steam changed something... Disasterpiece could you please update the code for this?

Anyone still having trouble with this? For some reason, all my boxes seem to work again in my forums, so this might have been a short steam-related issue.

Skyrider 09-06-2011 08:34 PM

What is the raw code so I can replace the mini-steam profile on a different place within the postbit?

wtfaatp 09-09-2011 11:20 PM

Quote:

Originally Posted by Disasterpiece (Post 2242677)
Anyone still having trouble with this? For some reason, all my boxes seem to work again in my forums, so this might have been a short steam-related issue.

Yes i'm still having this problem... Here is a link to my forums if you would like to view.
http://mfc4life.com/showthread.php?32


Also note that for testing purposes its currently only installed on "Darkness"

CoZmicShReddeR 09-24-2011 02:48 PM

Yes am still having issues with this working...

Disasterpiece 09-24-2011 04:51 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2249580)
Yes am still having issues with this working...

Could you send me a link to your forum?
Works in my forum without changing a line of code.

wtfaatp 09-24-2011 06:56 PM

this is still a problem on my site also....
http://mfc4life.com/showthread.php?2...e-autoexec.cfg

Disasterpiece 09-25-2011 07:17 AM

Quote:

Originally Posted by wtfaatp (Post 2249668)
this is still a problem on my site also....
http://mfc4life.com/showthread.php?2...e-autoexec.cfg

According to your sourcecode, you linked jquery 2 times. Try to enable the option "skip jquery inclusion" in the admincp > settings > Steam Mini Profiles

wtfaatp 09-25-2011 04:42 PM

I've already enabled that option.

For good measure I disabled it check and re-enabled.

Disasterpiece 09-25-2011 05:58 PM

Then I suppose, you have the js inclusions from an older installation of steam miniprofile left, I can see the steamprofile.*.js being included twice and jquery being included three times.

You should fix your headinclude organization first.

mfowler70 09-27-2011 07:28 PM

1 Attachment(s)
Quote:

Originally Posted by Disasterpiece (Post 2221270)
Hi

First, go to Admincp > Plugins, deactivate the plugin "add steam profile" in hook "postbit_display_start".

Then you navigate to Styles > Templates > Postbit > postbit/postbit_legacy (depends on what you're using)

Find:
HTML Code:

<!-- / attachments -->
                                        </vb:if>

Below, add:
HTML Code:

<div class="steamprofile" title="{vb:raw post.steamid}"></div>
That's it!

Tried this, and although it works, I wasn't happy with the results since it also shows the block for users who haven't linked their Steam account. But there's a much easier method.

Go into the "add steam profile" plugin hook, and for the PHP code simply change:

PHP Code:

if ($steam_id get_user_steamid($user_info))
$template_hook['postbit_messagearea_start'] .= '<div class="steamprofile" title="'.$steam_id.'"></div>'

To this:

PHP Code:

if ($steam_id get_user_steamid($user_info))
$template_hook['postbit_userinfo_right'] .= '</div><div class="steamprofile" title="'.$steam_id.'"></div><div>'

Notice the extra DIV tags in the replacement code. This places the block directly under the Join Date/Location/Post Count part of the Userinfo section in the postbit. Your mileage may vary if using postbit_legacy as I don't use that.

Oh yeah, and awesome mod. Thanks!

Disasterpiece 09-28-2011 11:21 AM

Ah cool, looks nice btw :)

wombycat 09-29-2011 10:36 AM

Love these mods, great work!!!

I have a small issue the mini profile. It displays "BCMath extension required" in the mini display

http://reactgaming.net.au/showthread...allenge-react-next

i think this will be something simple though i have scoured these mod pages to no avail.

Cheers in advance

Disasterpiece 09-29-2011 01:57 PM

Well, BCMath is a math php extension, you can find it here: http://www.php.net/manual/en/book.bc.php

Installing it should solve the problem. However, I don't recall any functions the vbulletin mod is using, maybe the code from barracuda's original steam mini profiles tool requires this somehow. Do you have an older php version than 5.2?

wombycat 09-29-2011 03:09 PM

Not sure on the php version, contacted host and they enabled BCMATH extensions. Used a repository in LINUX? Apparently I was very lucky :/

Love the mod :)

Skyrider 10-02-2011 11:28 AM

"No profile ID assigned"

Anyway to hide if members get this?

Plus, how do you hide the SteamID profile from even being shown to members that don't want to show it to the public?

billstelling 10-10-2011 01:35 PM

Quote:

Originally Posted by wtfaatp (Post 2241589)
For some reason all we are getting is grey boxes were the steam profile should be... Any idea on what might be causing this?

if you are referring to the box being empty when you do a quick reply it has to do with vB and not steam or the mod. Quick reply amends the page for you without refreshing it for you but it is added to the db and anyone who opens the thread will see it as it as it should be just not you because it amended the page on your side but did not call back and refresh the page. If you navigate away from the page and then go back to it you will see the info in the box. or refresh the page, but you don't need to for any reason as everyone else will see it correctly.

billstelling 10-18-2011 02:42 AM

Hey DP. I'm getting the "Invalid profile data." on my test site on another server. It works great on the other site but I can't figure out why it's not working on this site. I had to check no for Skip JQuery Inclusion on this site and the other site is set the same.

billstelling 10-18-2011 02:49 AM

Oh, hey, if you would like a vB 4.1.7 suit to test and work with I will hook you up with my test site to use for working on your mods.

Disasterpiece 10-18-2011 02:14 PM

Quote:

Originally Posted by billstelling (Post 2258434)
Hey DP. I'm getting the "Invalid profile data." on my test site on another server. It works great on the other site but I can't figure out why it's not working on this site. I had to check no for Skip JQuery Inclusion on this site and the other site is set the same.

Do you have a link to that particular site where the problem appears? Maybe there is something wrong with the included files.

Quote:

Originally Posted by billstelling (Post 2258438)
Oh, hey, if you would like a vB 4.1.7 suit to test and work with I will hook you up with my test site to use for working on your mods.

sure, send me a pm. Always happy to see a helping hand :)

Captain Tycoon 12-16-2011 09:59 AM

What would I need to do/change to get this to work in the Member's Profile. I specifically want it to show above the tabs (visitor messages, about me..etc). I placed the code manually where I want it in "MEMBERINFO" but gives me "No Profile ID assigned".

This is code by Steam Connect used to show in postbit...

PHP Code:

include_once(DIR '/includes/functions_steamconnect.php');

$user_info fetch_userinfo($post['userid']);

$this->post['steamid'] = get_user_steamid($user_info); 

when I change the hook to member_start (as well as others) it gives me an error..

Quote:

Fatal error: Using $this when not in object context in /home/prestige/public_html/member.php(139) : eval()'d code on line 5
I'm assuming it's because the steam connect postbit code is pulling different variables than what's needed for the members profile? Any idea what I need to change on steam connect?


All times are GMT. The time now is 07:19 PM.

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.02250 seconds
  • Memory Usage 1,858KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_html_printable
  • (3)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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