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)

Skyrider 10-12-2012 08:07 AM

Is there also anyway that when they are linked the steamID icons at the post profiles will always go to their /profiles/XXXXXX rather than their customURL?

CoZmicShReddeR 10-12-2012 05:05 PM

Quote:

Originally Posted by FF|Skyrider (Post 2370052)
You have no idea how many steam accounts are being hijacked, even with the steam guard feature enabled. I've seen it happen many times. And with the future forums we are going to run, every additional security would be appreciated.

Also, a while ago I asked as a suggestion if it could be made impossible to unlink your steam account. Can this still be done?

Accounts hacked with steam guard enabled? Only way they could steal your account was if they had your email password... I wouldn't say there is nothing to worry about but I been using steam since it was launched and have 6 accounts and non have been hacked... 99% of the people I know that got their accounts stolen clicked the free games link that takes you to a page that looked like the official steam page they logged in and their accounts were hijacked... And the there are people that use the same password everywhere and there are websites set up years ago that the owner would take his users email address and user password and steal accounts on steam but Steam Guard help stop a lot of that crap...

If anything I would put a disclaimer on the Steam login to warn people not to use the same password everywhere...

Disasterpiece 10-13-2012 12:13 PM

Quote:

Originally Posted by FF|Skyrider (Post 2370052)
You have no idea how many steam accounts are being hijacked, even with the steam guard feature enabled. I've seen it happen many times. And with the future forums we are going to run, every additional security would be appreciated.

Also, a while ago I asked as a suggestion if it could be made impossible to unlink your steam account. Can this still be done?

In my opinion people who get hacked with steamguard activated did bring this on themselves. But I see where you're coming from, I'll see what I can do. In the meantime, you can disable the quick register feature, so people need a normal forum account first.

Quote:

Originally Posted by joshskeety (Post 2372444)
Hey DP,

Does this currently remove users from the usergroup they're added to if they are no longer in the Steam group?

If not, could it?

It should, doesn't it work?

Quote:

Originally Posted by FF|Skyrider (Post 2372474)
Is there also anyway that when they are linked the steamID icons at the post profiles will always go to their /profiles/XXXXXX rather than their customURL?

The mod currently uses the url which steam sends from the profile information. If a steam id is set up for this profile, the full url with /id/idname is returned. I don't see a reason why the numeric url should be forced?


It seems that the feature to replace the normal register method completely with the steam linker has been requested a lot. Unfortunately, that's not so simple due to the way the register script is made. I'll see if there is a way to do it anyway.

joshskeety 10-14-2012 12:52 AM

What I mean DP is, if a user leaves our Steam Group it would be nice if a steamconnect cron would check the steam group membership and remove X usergroup from them if they're not in our steam group anymore.

So if I've made someone a member of our "Members" usergroup or they were in the steam group and moved to "Members" when registering, they can be removed automatically if they leave our Steam Group. We have a ton of members and from time to time they leave our Steam Group and they don't always have the same Steam name and Forum name so tracking them down in the users list and removing their "Members" usergroup is really time consuming.

wolkhan 10-16-2012 06:12 AM

i am taking an error after then login page what can i do

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

Drunken F00l 10-17-2012 07:32 AM

If I have a memcache server set up in my config.php, could you use that for caching instead of the stc_cachedir option?

AshenTemper 10-18-2012 02:42 AM

First of all, I want to say great mod. I've installed it and using it on one of the communities I help manage.

I do need a little assistance, though. And of course, it'll be something a little crazy or else where is the fun in trying to do it.

The community I am using this for currently is on a game dev site. We are working with Steam to have the game downloadable through there. For a testing phase, we will want to distribute keys to the game for specific users so they can access the game.

Instead of doing the ol' "email them something" routine (people tend to lose these or not get them and we get to play email tag), we would rather put the key in their profile. Since we are only giving them to people who use Steam, we're requiring them to connect their account (via this mod, w00t).

Due to this, I figured I could just add a new field to the "do=steamlink" that displayed this (or the default "Unassigned" if they don't have one yet).

For this I am just using a custom Profile Field (#5) - Single-Line Text Box & Field Editable by User = No. We'll just inject the key into those profiles but we don't want a user accidentally messing up their key when trying to copy/paste it.

I thought I had everything working and this is what I used in the modifyoptions_steam template just under the "Profile visibility state:" part:

Quote:

<label for="stc_testkey">Steam Test Key:</label>
<strong id="stc_testkey">{vb:raw post.field5}</strong>
The label is showing up but the field is coming up blank. I figured you must be already calling vbbuser since you're grabbing the username but I could be wrong. Or am I not labeling the vb:raw correctly? Any help would be appreciated!


Feature Request: Something I think other devs and communities would enjoy is having something like this baked into the mod itself. Just a custom field(s) where they can assign data in it that the end-user can see but not manipulate. Would be good for Keys and other kind of data.

Drunken F00l 10-19-2012 08:39 PM

It appears quotation marks and other HTML entities in usernames are unescaped during the linking process
http://shproject.ru/ss/rVK.png

joshskeety 10-20-2012 12:35 AM

Whoa, Tony?

Hello :)

SpikedRocker 10-28-2012 07:08 PM

I get the same error Wolkhan gets, I think it may be releated to login2.php and trying to post the steam64 number to the user's line in the database. Any thoughts?

Disasterpiece 10-29-2012 06:47 PM

Quote:

Originally Posted by wolkhan (Post 2373332)

I can not read that... could you please translate the headline at least?

wolkhan 10-29-2012 07:28 PM

https://vborg.vbsupport.ru/external/2012/10/6.jpg

Skyrider 11-01-2012 08:42 AM

^

I think the "https" might be at fault?

wolkhan 11-02-2012 10:03 AM

Quote:

Originally Posted by FF|Skyrider (Post 2377462)
^

I think the "https" might be at fault?

What should i do ?

Disasterpiece 11-04-2012 12:54 PM

did you enter the "https://yourforumurl" when you created your steam api key?

wolkhan 11-04-2012 01:20 PM

Quote:

Originally Posted by Disasterpiece (Post 2378293)
did you enter the "https://yourforumurl" when you created your steam api key?

Yes i try as "https://forum.trdota.net" and "http://forum.trdota.net" but i took this error message


https://vborg.vbsupport.ru/external/2012/11/35.jpg

Disasterpiece 11-04-2012 02:50 PM

try using only "trdota.net"

wolkhan 11-04-2012 03:18 PM

i tried as https://www.trdota.net , http://www.trdota.net , www.trdota.net , trdota.net but error is the same :(

Disasterpiece 11-04-2012 03:31 PM

Your website doesn't display the register with steam button and I'm not able to read your language, so it's hard for me to reproduce it myself.

wolkhan 11-04-2012 04:42 PM

Disasterpiece fixed my problem thank you so much

SpikedRocker 11-04-2012 05:47 PM

Quote:

Originally Posted by wolkhan (Post 2378348)
Disasterpiece fixed my problem thank you so much

I am having this issue as well, what was done to fix?

Disasterpiece 11-04-2012 10:18 PM

Quote:

Originally Posted by Blackglade (Post 2378414)
The plugin you gave was awesome and i uploaded it to vbulletin having it appear in profile pic's however how do i make it so it appears under the users name when he posts a new thread or reply?

There is a solution I posted a while ago *somewhere* in this thread, I suggest you take a look through the thread, otherwise I'll come back to you later.

Quote:

Originally Posted by SpikedRocker (Post 2378378)
I am having this issue as well, what was done to fix?

Do you use a windows machine? I think it appears on some server os which do some silly stuff. However I found a way around this problem and completed my work on the next 1.4.3 version which I will run a few days on my productive system before releasing it official.

The changes are: (not final)
Code:

v1.4.3rc3

- Fixed quotes in Steam usernames messing up the register template
- Fixed browser error when redirecting from steam login back to the forum url (primarily) on Windows machines
        (directed to https:// instead of http://, now replaced with an option in the STC settings)
- Fixed group maintenance function not using cache for group data when the maintenance operation is split up in multiple steps
- Fixed potential security flaw in useradministration if using custom query fields
- Added Cron job to update user <-> steam group assocations every night (basically does what the mainenance script does, now once every night)
- Added option to disallow unlinking of steamaccount. In this case, unlinking is only possible through admincp
- Added ability to unlink account completely with a checkbox as the last field, updating usergroups as well.
        (before, if you set the steamid to empty string, it only removed the steam assocation, but didn't change the usergroups)
- Added memcached as optional cache system
- Reworked file cache system
- Updated steamconnect cache dir option, now a writable cache directory is required.
- Updated some option description strings to better describe which values to use.
- General code optimization

If you really cant wait or want this problem to fixed immediately, send me a mail and I give you the next version earlier.

Disasterpiece 11-05-2012 04:58 PM

Update time!

Today I present the newest version (i skipped a version, dont be confused) 1.4.4 which will be RC3.
Introducing a few new features as requested and a bunch of fixes:

Code:

v1.4.4rc3

- Fixed a bug which would cause intense logfile spamming
- Fixed steam sessions not being permanent

v1.4.3rc3

- Fixed quotes in Steam usernames messing up the register template
- Fixed browser error when redirecting from steam login back to the forum url (primarily) on Windows machines
        (directed to https:// instead of http://, now replaced with an option in the STC settings)
- Fixed group maintenance function not using cache for group data when the maintenance operation is split up in multiple steps
- Fixed potential security flaw in useradministration if using custom query fields
- Added Cron job to update user <-> steam group assocations every night (basically does what the mainenance script does, now once every night)
- Added option to disallow unlinking of steamaccount. In this case, unlinking is only possible through admincp
- Added ability to unlink account completely with a checkbox as the last field, updating usergroups as well.
        (before, if you set the steamid to empty string, it only removed the steam assocation, but didn't change the usergroups)
- Added memcached as optional cache system
- Reworked file cache system
- Updated steamconnect cache dir option, now a writable cache directory is required.
- Updated some option description strings to better describe which values to use.
- General code optimization

Anyone who had the browser error that the connection has been lost will be happy, because this is now solved.

The requested feature that users aren't allowed to unlink their account is now available too (optional) from the admincp settings.

If you're having a huge forum and want to make use of memcached, you'll find the optional memcache system there as well. xcache may be supported in the future if necessary, altough I think most will be covered with memcached, since it's clearly the more popular choice.

For anyone who uses the feature of usergroups depending of certain steamgroups the user is in, the update functionalities to monitor users leaving/joining said steamgroups now runs every night, so this should be improved as well.

Update process is straight-forward:

1) turn off your vbulletin
2) import the xml file as product, choose overwrite when uploading
3) upload and overwrite all existing files within the upload directory of the archive. Images may be omitted, if you use your own custom ones of course.

NOTE: To anyone who uses a logfile to log all steam connect actions, make sure to empty the logfile since it may have grown to a large filesize. There has been a bug which caused intense logging which has now been fixed.

Let me know if any problems turn up or anything doesn't work correctly.

Remember: Always back up your forum before performing updates!

x3evolution 11-06-2012 03:18 AM

I am having an issue, when i get added to the "forum" group for being in the steam group, in the mysql tables it puts my membergroupid as ,15. vBulletin doesnt like this or mysql doesnt like it, is there a fix to make it to where this isnt an issue ?

Blackglade 11-06-2012 04:11 AM

Quote:

Originally Posted by Disasterpiece (Post 2221308)
There's a link in the user control panel, you can see it as a small button in the first screenshot.

I have a different functions.php file. Altough I was sure it works on 4.1.0 as well, I developed it on a 4.1.3-4.1.4. I'll check it out tomorrow, or you could just upgrade to the latest vbulletin version. Wouldn't be a bad idea anyway.

Import the attached plugin. Then you'll find the avatar urls as a template var:

Code:

{vb:raw post.steamavatarfull}
{vb:raw post.steamavatar}
{vb:raw post.steamavatarmedium}

Which are the same image, but different in size.

Ok so i found the thing you told me to download and i installed it. Now its STILL not appearing in my postbit thing and according to what you said i will find the avatar urls as a template var. What does that mean and where do i post {vb:raw post.steamavatar} so that i can get it to appear underneath the username of my users when they post a thread or a reply?

joshskeety 11-06-2012 07:35 AM

Thanks for the update DP. I noticed that it added a few people to the member group who I had missed! Awesome.

One problem though, there are several users who are not in my steam group anymore and they were not removed from that secondary usergroup.

Disasterpiece 11-06-2012 12:01 PM

Quote:

Originally Posted by x3evolution (Post 2378766)
I am having an issue, when i get added to the "forum" group for being in the steam group, in the mysql tables it puts my membergroupid as ,15. vBulletin doesnt like this or mysql doesnt like it, is there a fix to make it to where this isnt an issue ?

I was sure that vb won't have a problem with that because I have seen other addons doing this too (the ,42 thing with the comma even if there's only one group) I'll check it later and upload a fixed version.

Quote:

Originally Posted by Blackglade (Post 2378767)
Ok so i found the thing you told me to download and i installed it. Now its STILL not appearing in my postbit thing and according to what you said i will find the avatar urls as a template var. What does that mean and where do i post {vb:raw post.steamavatar} so that i can get it to appear underneath the username of my users when they post a thread or a reply?

I suggest you send me a pm with your forum details and an administrative account, also include a detailed description how you want it to appear, then I'll take a look myself.

Quote:

Originally Posted by joshskeety (Post 2378793)
Thanks for the update DP. I noticed that it added a few people to the member group who I had missed! Awesome.

One problem though, there are several users who are not in my steam group anymore and they were not removed from that secondary usergroup.

Can you run the maintenance action and confirm that it doesn't remove such users? If so, I'll check later today and include a fix in the next version. The membergroup thing is still a bit clunky, there are more than one user fields which need to be checked... Maybe I'll rework it so it is correct once and for all :rolleyes:

joshskeety 11-06-2012 01:23 PM

Yep, it doesn't remove them at all.

Our group has gotten quite sizable so it's hard to keep track of when users all the time. Sometimes we'll have users leave our group and not tell us, so they'll still have access to our Member only forums when we wouldn't want them having access. That's primarily what I use this feature for. Plus, it's nice to have our Member usergroup and Steam members group fully sync'd.

jaffaman 11-06-2012 03:14 PM

Installed and working on Version 4.2.0 PL3 :)

iSins 11-06-2012 03:34 PM

Is there away to make it so people who haven't linked there steam account to have a button saying "Link your steam account now" instead it saying "Sign in using steam"?

x3evolution 11-06-2012 04:59 PM

Disaster this is what i get when i have the issue


Code:

Database error in vBulletin 4.2.0:

Invalid SQL:
SELECT title, usergroupid FROM usergroup WHERE usergroupid IN (6,,37) ORDER BY title;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '37) ORDER BY title' at line 1
Error Number  : 1064
Request Date  : Tuesday, November 6th 2012 @ 11:58:15 AM
Error Date    : Tuesday, November 6th 2012 @ 11:58:17 AM
Script        : http://*****.org/admincp/user.php?do=edit&u=1
Referrer      : http://*****.org/admincp/index.php?l...3Dedit%26u%3D1
IP Address    : **.**.**.**
Username      : Ryan
Classname    : vB_Database_MySQLi
MySQL Version : 5.5.27-cll


jldrake 11-06-2012 05:14 PM

Can you add a steam connect option to set the size of the avatar in the profile. Right now its way to big on full. It would be nice to have a drop down setting to change everybody on the websites steam avatar size.

It would also be nice to haven an option to turn that off/on.

Blackglade 11-06-2012 05:21 PM

Quote:

Originally Posted by Disasterpiece (Post 2378826)
I suggest you send me a pm with your forum details and an administrative account, also include a detailed description how you want it to appear, then I'll take a look myself.

OK i sent you the information, once again thanks a lot :D

Disasterpiece 11-06-2012 05:59 PM

Quote:

Originally Posted by iSins (Post 2378899)
Is there away to make it so people who haven't linked there steam account to have a button saying "Link your steam account now" instead it saying "Sign in using steam"?

You could modify the graphic to say what you want it to say if you like.

Quote:

Originally Posted by x3evolution (Post 2378911)
Disaster this is what i get when i have the issue


Code:

Database error in vBulletin 4.2.0:

Invalid SQL:
SELECT title, usergroupid FROM usergroup WHERE usergroupid IN (6,,37) ORDER BY title;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '37) ORDER BY title' at line 1
Error Number  : 1064
Request Date  : Tuesday, November 6th 2012 @ 11:58:15 AM
Error Date    : Tuesday, November 6th 2012 @ 11:58:17 AM
Script        : http://*****.org/admincp/user.php?do=edit&u=1
Referrer      : http://*****.org/admincp/index.php?l...3Dedit%26u%3D1
IP Address    : **.**.**.**
Username      : Ryan
Classname    : vB_Database_MySQLi
MySQL Version : 5.5.27-cll


That must be related to the membergroup format issue I discussed a few posts earlier. Do you need immediate help with this? If so, please contact me with access to your database (phpmyadmin) or send me a PM, I'll explain you how to fix this by yourself if you prefer.

Quote:

Originally Posted by jldrake (Post 2378914)
Can you add a steam connect option to set the size of the avatar in the profile. Right now its way to big on full. It would be nice to have a drop down setting to change everybody on the websites steam avatar size.

It would also be nice to haven an option to turn that off/on.

I'll look into it.

Disasterpiece 11-07-2012 07:57 PM

Another Update Time!

Today I included a bunch of fixes for functionalities and a critical bugfix which caused database errors in some cases.

Code:

v1.4.5rc3

- Fixed rare error with secondary usergroups being stored in the wrong format causing a Database Error
        (When updating the plugin file, a function repairs all existing database entries once)
- Fixed new user sometimes not being assigned the correct usergroups when registering/linking/unlinking
- Fixed scheduled/maintenance tasks not updating steam user's usergroups correctly
- Fixed stc_cache using object references instead of the actual values
- Fixed the user's display group sometimes not updating correctly
- Fixed scheduled/maintenance tasks clearing the cache, even if memcached system is used
- Fixed scheduled/maintenance tasks sometimes not writing their output into the logfile
- Fixed some typos/errors in the options description text
- Added the option to force an email address in quick register
- Added the option to force the primary steam usergroup as the display group
- Added the option to immediately check if the user is member of the specified steamgroup. This should be disabled if the steam
        group is too huge, (remember that for each page the script needs to query, the registration process is delayed 1 second)
        in which case the correct steamgroup dependant usergroup is assigned the next time the scheduled task runs.

You'll find a small patch process when updating the plugin file. Older versions of the mod just appended additional usergroups to the existing ones, this could lead to invalid strings like ,1 or 5,,6 which would cause database errors if they appeared. The patcher fixes those entries and the updated addon will make sure that this won't happen again.

Next are a few new options, the important ones being that you now can force steam users to enter an email address. At the beginning I thought that new users shouldn't be bothered with having to enter an email address but I respect many forum owners want to be able to send those users emails nontheless, so you're now able to turn on quick registration but have the user to enter an email address. This of course doesn't affect existing users which didn't enter one.

Next is the improved update functionality for handling with additional usergroups when a user registers with steam connect and is in the specified steam group. Last time this didn't work quite well, so now everything revolving about those groups and linking/unlinking forum accounts should work as intended.
Additionally, the scheduled job which keeps those associations updated runs every day at 4:00 am. If you want to increase the interval or change the time, you may do so in the scheduled task section of the admincp.

What you'll notice is a linkback at the footer of your forum to this vb.org mod page and to steam. Reason is, that steam does actually require a linkback to appear on any sites which use their API. This change follows the requirement and appends a linkback to this mod if someone is curious where to find this addon. This doesn't give me any benefits like revenue other than more popularity for the mod which again doesn't generate any money for me directly. You are welcome to donate a small amount if you really want to remove the backlink to this mod page, the steam backlink however must remain because I don't have any power over their rules.

As always, backup your forum before updating, download the newest archive file, upload all contents inside "upload" into your forum overwriting existing ones, then upload the new xml plugin file in your admincp choosing to update existing products.

Let me know if any issues come up.

jaffaman 11-07-2012 08:31 PM

Updated no problems :)

Drunken F00l 11-07-2012 08:50 PM

Quote:

Originally Posted by Disasterpiece (Post 2379231)
- Added the option to immediately check if the user is member of the specified steamgroup. This should be disabled if the steam
group is too huge, (remember that for each page the script needs to query, the registration process is delayed 1 second)
in which case the correct steamgroup dependant usergroup is assigned the next time the scheduled task runs.

Why does this check need to take so long? I think you could use the ISteamUser/GetUserGroupList API. Ex:
http://api.steampowered.com/ISteamUser/GetUserGroupList/v0001/?key=<redacted>&format=xml&steamid=765611979684594 73

CoZmicShReddeR 11-08-2012 09:27 AM

I had to update mine twice to get it to show in admincp settings

FROM
product-steamconnect_1_4_4rc3.zip
TO
product-steamconnect_1_4_5rc3.zip

And the API and group settings was removed as well

Not complaining just might be my hosting...

Disasterpiece 11-08-2012 07:01 PM

Quote:

Originally Posted by Drunken F00l (Post 2379244)
Why does this check need to take so long? I think you could use the ISteamUser/GetUserGroupList API. Ex:
http://api.steampowered.com/ISteamUser/GetUserGroupList/v0001/?key=<redacted>&format=xml&steamid=765611979684594 73

Thanks, wasn't aware I can use this too. I'll check if I can improve the function.

Quote:

Originally Posted by CoZmicShReddeR (Post 2379327)
I had to update mine twice to get it to show in admincp settings

FROM
product-steamconnect_1_4_4rc3.zip
TO
product-steamconnect_1_4_5rc3.zip

And the API and group settings was removed as well

Not complaining just might be my hosting...

I re-arranged the settings, maybe that's why. But it shouldn't be a problem I hope.

Drunken F00l 11-08-2012 07:13 PM

Quote:

Originally Posted by Disasterpiece (Post 2379470)
Thanks, wasn't aware I can use this too.

You can have a look at the ISteamWebAPIUtil/GetSupportedAPIList API to see all the APIs available. Just make sure to give it an API key like the other APIs otherwise you'll only see APIs available without an API key.


All times are GMT. The time now is 08:52 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.01894 seconds
  • Memory Usage 1,901KB
  • 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
  • (6)bbcode_code_printable
  • (23)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