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)
-   -   Integration with vBulletin - Steam Connect - Sign in with your Steam Account! [RC3] (https://vborg.vbsupport.ru/showthread.php?t=266883)

Psyd0x 12-10-2011 02:53 AM

I have a problem, the steam icon not appear in the post bit, can you tell me how to fix it?

Strategos 12-10-2011 03:38 AM

Quote:

Originally Posted by Disasterpiece (Post 2276145)
That's a good suggestion. Will do in the next update.



That shouldn't happen! Do you have backups? I'll check later if this might occur somehow, but it relies on the vbulletin upgrade system, wich only performs additional process and does nowhere remove any entries at all, or did you uninstall the plugin first? In this case the user table columns are dropped.

Yeah I uninstalled the plugin and uploaded the new one and it reset the activation status of everybody.

Skyrider 12-10-2011 09:15 PM

Also, have you by any chance read my suggestion regarding making unlink an option to groups? So not everyone can unlink.

Disasterpiece 12-11-2011 12:07 AM

Quote:

Originally Posted by Strategos (Post 2276438)
Yeah I uninstalled the plugin and uploaded the new one and it reset the activation status of everybody.

You shouldn't do that, upgrading a product means uploading the product xml file and choose overwriting, that way only the install routines for the next version update are processed.
If you uninstall, the uninstall routine will drop all relevant tables.

I suggest to revert to a backup and in the future only upgrade without uninstalling the mod.
I'll add a note so the problem won't happen to other users.


Quote:

Originally Posted by FF|Skyrider (Post 2276600)
Also, have you by any chance read my suggestion regarding making unlink an option to groups? So not everyone can unlink.

I have, but I'm not sure if this would be an useful feature. If all users are allowed to link their profile any time they want, they should be able to un-link as well.

Depending on how skilled you are with php, you could add the required code snippets yourself in the function which unlinks the users.
In any case, this seems to be a too special request, but I'll consider it nontheless for the next update.

Quote:

Originally Posted by Psyd0x (Post 2276435)
I have a problem, the steam icon not appear in the post bit, can you tell me how to fix it?

Do you have a custom style?
Do you have the plugin activated?

Strategos 12-12-2011 01:21 AM

Quote:

Originally Posted by FF|Skyrider (Post 2276600)
Also, have you by any chance read my suggestion regarding making unlink an option to groups? So not everyone can unlink.

Yes that is a good idea. I think it would be appropriate because I have a system where, in order to post, people must register their steam acc. Therefore, if they get banned, they cant create another acc and continue trolling. 100% antispam :D

Cadellin 12-13-2011 10:16 PM

I must congratulate you on a brilliant job on this - the potential for the future is enormous!

Probably a daft question but what template conditions/variables should I use for the following:

- IF steam linked user
- IF steam avatar is available
- IF steam profile is public/profile
- VAR User SteamID (post.steam64?)

What is your recommended location for the steam cache and the file permissions for that folder?

Thanks in advance

Disasterpiece 12-15-2011 01:20 PM

Quote:

Originally Posted by Cadellin (Post 2277502)
- IF steam linked user

HTML Code:

Linked=<vb:if condition="$vbulletin->userinfo['steam_link']">1<vb:else />0</vb:if>
Quote:

- IF steam avatar is available
Won't work, because the data steam returns gives you a generic url to the avatar, which returns the default questionmark avatar if none was specified. So in short: There is no way to find that out.

Quote:

- IF steam profile is public/profile
Coming in the next update. For now you can only check that in the code, not in templates yet.
PHP Code:

global $vbulletin;

$steamid get_user_steamid($vbulletin->userinfo);
$steaminfo fetch_steam_info($steamid$vbulletin->options['stc_apikey']);

if (
$steaminfo['communityvisibilitystate'] == '3') {
echo 
'Public';
} else {
echo 
'Private';


Quote:

- VAR User SteamID (post.steam64?)
HTML Code:

{vb:raw bbuserinfo.steam_code}
Where you can replace bbuserinfo with any other var containing userinformation, like for example in postbit templates.

Quote:

What is your recommended location for the steam cache and the file permissions for that folder?
I recommend the /tmp folder on linux machines, so if you use multiple vbulletin instances, they can all share the same cached files instead of one of their own.
Also, it's good style to keep all cached data at one location. At least it should remain outside a web-accessible directory for privacy reasons.

Folder permissions should be 0777, but as long as the webuser has read/write permission, it's good enough.

Cadellin 12-15-2011 09:49 PM

Thanks for the reply Disasterpiece everything works (including avatars) exactly how I wanted so you've been invaluable.

Can I be cheeky and suggest a steam icon permission so users can choose to show/hide in postbit would be very useful as I know some people will want to use this for login but not share their info.

It might also be useful to add instructions for cache setup to the instructions - I didn't immediately realise the address had to be from the server root.

Disasterpiece 12-16-2011 02:20 AM

The suggestion to add an option to hide the steam details has already been mentioned, I'm not 100% sure how to offer this completely, but It will be in the next major version. Soon. :)

@Instructions for cache: Aye, noticed the lack of an understandable description too.

Captain Tycoon 12-16-2011 09:44 AM

How can I disable the Unlink Feature? I don't want people to be able to unlink steam id's after they have linked them. Only admins should be able to do it via admin user settings.


All times are GMT. The time now is 01:12 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.01419 seconds
  • Memory Usage 1,756KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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