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)

Disasterpiece 11-25-2011 12:49 PM

Quote:

Originally Posted by Strategos (Post 2271634)
This would be very cool. Sadly, I cant get it working with the latest VB.

"doesn't work" doesn't help me much... could you elaborate plz?

Strategos 11-30-2011 05:20 AM

Quote:

Originally Posted by Disasterpiece (Post 2271759)
"doesn't work" doesn't help me much... could you elaborate plz?

Actually I messed up or did something wrong. Got it working now though!

Amazing mod. 5/5 and nominated. I hope to see the updated with more organizational features and is there a way to retrieve the steam id from a user registered through openid for say use with a donation system, etc?

Skyrider 11-30-2011 08:33 AM

Can this mod take over the registration page? So no one can register anymore using the original/normal registration page? So people go to register.php and they have to login/register using steam. I'd also like to see the feature that only administrators can unlink people's account, rather than the user.

PS.. Is there anyway that already registered usersgroups can be forced to another usergroup if they use steam login?

Example: If I move everyone to "Need steam login validation" usergroup I want them after they used the steam login link to the usergroup "Registered users".

wtfaatp 11-30-2011 06:59 PM

Hey disaster you figure anything out about the steam ID problem when an admin auto links the accounts?

Disasterpiece 12-01-2011 04:56 PM

Quote:

Originally Posted by FF|Skyrider (Post 2273318)
Can this mod take over the registration page? So no one can register anymore using the original/normal registration page? So people go to register.php and they have to login/register using steam. I'd also like to see the feature that only administrators can unlink people's account, rather than the user.

No.
It is not intended to replace the vBulletin registration system. The mod is made to extend the current one.

You could however set vbulletin to put new registered users in another usergroup and move them to the registered usergroup as soon as they linked their useraccount. This would require some coding however.

Quote:

Originally Posted by FF|Skyrider (Post 2273318)
PS.. Is there anyway that already registered usersgroups can be forced to another usergroup if they use steam login?

Depending on your PHP skills, you could simply add a line to the link process code, which puts the user into an additional usergroup. If you can't do this on your own, send me a PM i might find some time to help you out with it.

Quote:

Originally Posted by wtfaatp (Post 2273437)
Hey disaster you figure anything out about the steam ID problem when an admin auto links the accounts?

Not yet, in all cases where I modified the steamid manually, it worked without problems.

I got the algorithm from steam friend id => steam64 id from this page: http://forums.alliedmods.net/showthread.php?t=60899
Maybe there's a bug in the code itself?

Sorry, can't reproduce it... if all else fails and they're only a few, you can edit the steam64 id manually in the vbulletin user table.

Strategos 12-02-2011 01:29 AM

Quote:

Originally Posted by FF|Skyrider (Post 2273318)
Can this mod take over the registration page? So no one can register anymore using the original/normal registration page? So people go to register.php and they have to login/register using steam. I'd also like to see the feature that only administrators can unlink people's account, rather than the user.

PS.. Is there anyway that already registered usersgroups can be forced to another usergroup if they use steam login?

Example: If I move everyone to "Need steam login validation" usergroup I want them after they used the steam login link to the usergroup "Registered users".

I like this too. I think there should be an option to require it on registration, since alot of people run forums that solely relate to only steam games.

Disasterpiece 12-02-2011 12:34 PM

I'll see what I can do.

Problem is that the vbulletin registration script itself is very isolated and hard to modify without modifying the vb core files which is an absolute no-go.
The way the steam authentication works, is by using its own login script (login2.php) and creating a session via the vbulletin API by itself.
There's no way to completely alter the core vbulletin login script, that's why the mod can only function as an extension instead of a replacement.

However, it might be possible to work something out with usergroups being assigned on registration, I'll see to it as soon as I get some time.

Skyrider 12-02-2011 01:41 PM

Quote:

Originally Posted by Disasterpiece (Post 2273994)
I'll see what I can do.

Problem is that the vbulletin registration script itself is very isolated and hard to modify without modifying the vb core files which is an absolute no-go.
The way the steam authentication works, is by using its own login script (login2.php) and creating a session via the vbulletin API by itself.
There's no way to completely alter the core vbulletin login script, that's why the mod can only function as an extension instead of a replacement.

However, it might be possible to work something out with usergroups being assigned on registration, I'll see to it as soon as I get some time.

With your current system if you create a forum account you can still login normally which I really like. Isn't it just possible to replace the register.php file solely to use the steam login? Which makes it possible to both use login and login2.

Disasterpiece 12-02-2011 01:54 PM

Yes you can do that. However, I won't build this into my mod, because I refuse to build mods which urge users to replace/modify vbulletin core files. That's just bad style and produces more support queries as soon as a vb update comes live.

Everyone is welcome to alter/remove the register.php file by their own, unfortunately I can't provide support for that.
The login2.php has all the necessary steps to register an account with the steam login, so the register/login process should work even without the register.php file. No guarantee on that tho, I haven't checked that possibility yet.

wtfaatp 12-02-2011 02:41 PM

Disaster would you like to do some testing with my fourms to see for yourself?

It's just really weird I see no reason for the added "-" or the improper math :\.
What really gets me if they do it comes out 100% perfect :\
Ugh I'm so lost.

Also about people wanting to use the steamid for other hacks. Maybe make it so that the admin has the option to create a custom user table and direct this to pust the steam id (maybe even any other information) in each table!? Thought maybe something you could offer up!

Disasterpiece 12-02-2011 03:18 PM

Quote:

Originally Posted by wtfaatp (Post 2274025)
Disaster would you like to do some testing with my fourms to see for yourself?

It's just really weird I see no reason for the added "-" or the improper math :\.
What really gets me if they do it comes out 100% perfect :\
Ugh I'm so lost.

Sure, send me the credentials per PM, maybe I can fix it from there.

Quote:

Originally Posted by wtfaatp (Post 2274025)
Also about people wanting to use the steamid for other hacks. Maybe make it so that the admin has the option to create a custom user table and direct this to pust the steam id (maybe even any other information) in each table!? Thought maybe something you could offer up!

hmm, the steam64 id is in the usertable, it's in the $vbulletin->userinfo which is available from.. everywhere and there's even a getter function for this. Not sure what else I should add... it's already simple for other developers :confused:

dopeytjen 12-04-2011 11:10 AM

Will this work on the latest vB?

Skyrider 12-04-2011 08:37 PM

Quote:

Originally Posted by dopeytjen (Post 2274534)
Will this work on the latest vB?

Yes, it does.

Quote:

Everyone is welcome to alter/remove the register.php file by their own, unfortunately I can't provide support for that.
The login2.php has all the necessary steps to register an account with the steam login, so the register/login process should work even without the register.php file. No guarantee on that tho, I haven't checked that possibility yet.
It does, and I already modified the register.php to use the steam login link directly (redirect).. However, email validation still requires register.php to be intact to activate their account. And disabling new registrations also works partly, but before you can finish the forums says registrations is disabled.

I do wish however (if possible) that all people who use steam login to be moved to a new primary usergroup IF set in the AdminCP options regardless if they have registered before on the forums. We are having a team fortress 2 forums aimed for steam login, and I'm afraid people who already registered are not being moved to another usergroup if they link their steam account to their forum account even if the new usergroup (primary) has been set in your mod.

Strategos 12-05-2011 10:48 PM

Another suggestion.

If you don't want to modify the registration template, could you include something that allows to make it so certain users groups will go into certain other usergroups when connected?

like registered users > verified registered users
and
moderators > verified moderators

Disasterpiece 12-05-2011 10:56 PM

Quote:

Originally Posted by Strategos (Post 2275016)
Another suggestion.

If you don't want to modify the registration template, could you include something that allows to make it so certain users groups will go into certain other usergroups when connected?

like registered users > verified registered users
and
moderators > verified moderators

I'll add an option to put users into usergroups on certain situations in the next update.

Disasterpiece 12-05-2011 11:07 PM

Just a short note for all Administrators with the 1.2.1 version:
I added the 1.2.2 version, which fixed a small bug in the admin interface, producing malformed Steam64-IDs when edited in the admincp.

No bigger upgrade necessary than importing the new product xml file, overwriting the older version.

Strategos 12-06-2011 04:52 AM

yay! :D

wtfaatp 12-06-2011 04:59 AM

Man thank you for this fix :D Now to make a fork for other mod's :D Again Thnx :D

Strategos 12-09-2011 01:32 AM

Oh and another important suggestion :D

You should make it so that you can choose which usergroups can unlink their steam accounts. It's easy for someone to troll, and unlink their account so that when you ban them they can re-link it.

Also, upgrading steam connect seems to reset the table of who has registered and who hasn't.

Disasterpiece 12-09-2011 09:07 AM

Quote:

Originally Posted by Strategos (Post 2276081)
Oh and another important suggestion :D

You should make it so that you can choose which usergroups can unlink their steam accounts. It's easy for someone to troll, and unlink their account so that when you ban them they can re-link it.

That's a good suggestion. Will do in the next update.

Quote:

Originally Posted by Strategos (Post 2276081)
Also, upgrading steam connect seems to reset the table of who has registered and who hasn't.

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.

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.

Disasterpiece 12-16-2011 11:38 AM

Quote:

Originally Posted by Captain Tycoon (Post 2278263)
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.

Not a feature yet, but I see that many people want this. I'll see what I can do.

Zaggeh 12-16-2011 01:59 PM

I had some users with narrower resolutions complain about the green "Sign in through Steam" button being overlapped by the welcome, notifications, and profile links.

Rather than adding {vb:raw steam_button} where the mod creator used in his example, I had more success adding it in the following places in the header template:

For logged in but not yet linked users:
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
                                <vb:if condition="$vboptions['enablefacebookconnect']">
                                        {vb:raw facebook_header}
                                </vb:if>
                                {vb:raw steam_button}

For not logged in users:
Code:

                                <input type="hidden" name="do" value="login" />
                                <input type="hidden" name="vb_login_md5password" />
                                <input type="hidden" name="vb_login_md5password_utf" />
                        </form>
                        {vb:raw steam_button}

This ensures that regardless of the size of the browser window or the user's resolution, the Sign in through Steam button will always be visible and not overlap with existing objects in the header.

Overall, a really nice mod and I really appreciate the work you put into it! The only thing I can think of for improvement is some method for the sign in through steam thing to stay visible after the accounts are linked and the person is logged in, so that they know they are using it. (kind of how if you use FB connect you get a little pic of your avatar and the FB icon)

Captain Tycoon 12-17-2011 12:00 PM

Quote:

Originally Posted by Disasterpiece (Post 2278292)
Not a feature yet, but I see that many people want this. I'll see what I can do.

Ok thank you

Also, is there a way to:

1. Search function - search by users steam id in advanced search maybe?

2. Make certain code show up only for people who have linked their account with steam and for people who havent. Abit like how vbulletin has a code to show for only logged in users + guests..etc.

Disasterpiece 12-20-2011 12:13 AM

This is the todo list for the 1.3 which will hopefully be the first non-beta Release Candidate. (following no specific order)

Code:

- add a field for steam id search in advanced search form
- add an easier method for template tags to separate steam/non-steam users
- add some kind of indicator so users see that their steam account is linked
- control over the unlink feature, who may or may not unlink the steam account
- add control for users to hide their steam profile information
- improve handling for avatar urls in template vars, add indication for profile being public/private
- adding a feature which logs users linking/unlinking their accounts to detect multiaccounts/trolls
- add a ban list to blacklist certain steam64/steam-ids which won't be allowed to register/link

If you think there's something missing, feel free to add your suggestion here.

Strategos 12-22-2011 06:14 PM

Quote:

Originally Posted by Disasterpiece (Post 2279252)
This is the todo list for the 1.3 which will hopefully be the first non-beta Release Candidate. (following no specific order)

If you think there's something missing, feel free to add your suggestion here.

The mod needs ability to for promotions based on usergroup.

Unlinked register > Linked registered

Unlinked moderator > Linked moderator

That way you can control whether or not they can post based off steamid verification.

Ps: Also, be sure to make it so you can toggle to display the unlink button. That way, if a user gets banned they can't just re-register and continue trolling

Disasterpiece 12-22-2011 07:40 PM

Quote:

Originally Posted by Strategos (Post 2280144)
The mod needs ability to for promotions based on usergroup.

Unlinked register > Linked registered

Unlinked moderator > Linked moderator

Easier way: Create a group "linked user" which is allowed to post in specific forums and use it as a secondary usergroup. You can already assign linked users this usergroup in the plugin's settings.

Quote:

Originally Posted by Strategos (Post 2280144)
Ps: Also, be sure to make it so you can toggle to display the unlink button. That way, if a user gets banned they can't just re-register and continue trolling

You mean an option to disallow linking for banned users?

Strategos 12-23-2011 06:51 PM

Quote:

Originally Posted by Disasterpiece (Post 2280177)
Easier way: Create a group "linked user" which is allowed to post in specific forums and use it as a secondary usergroup. You can already assign linked users this usergroup in the plugin's settings.


You mean an option to disallow linking for banned users?

I already did that. However, when you have many different usergroups with different permissions, some more than others, you can't do it without making them all equal.

I mean basically what the other guy was suggesting. Allow the option to disallow unlinking for select usergroups. (or by admin only)

tonjohn 01-09-2012 05:57 PM

Quote:

Originally Posted by Disasterpiece (Post 2280177)
Easier way: Create a group "linked user" which is allowed to post in specific forums and use it as a secondary usergroup. You can already assign linked users this usergroup in the plugin's settings.

What would be super cool is if you could limit access to a forum based on game ownership or other Steam user information.

tonjohn 01-09-2012 06:34 PM

What all needs to be changed for this to be compatible with vb 3.8? Is it just the templates that need to be updated?

Disasterpiece 01-09-2012 08:00 PM

Quote:

Originally Posted by tonjohn (Post 2285628)
What all needs to be changed for this to be compatible with vb 3.8? Is it just the templates that need to be updated?

All the templates, the product, the login script, basically >70% of the code.


All times are GMT. The time now is 02:24 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.01823 seconds
  • Memory Usage 1,883KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (32)bbcode_quote_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
  • (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