Thread: Integration with vBulletin - Steam Connect - Sign in with your Steam Account! [RC3]
View Single Post
  #328  
Old 10-18-2012, 02:42 AM
AshenTemper's Avatar
AshenTemper AshenTemper is offline
 
Join Date: Mar 2006
Location: Austin, Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02145 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete