Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Steam Community Profile in Postbit Details »»
Steam Community Profile in Postbit
Version: 1.00, by AzH AzH is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 11-01-2008 Last Update: Never Installs: 11
Template Edits
Re-useable Code Translations  
No support by the author.

Hi. This is a quick dirty little edit which allows a user to display a link to their Steam Community Profile in their postbit. This mod is brought to you courtesy of http://left4deadforums.com.

First create a New User Profile Field:

Title: Steam Community Profile

Description: Your <a target="_blank" href="https://steamcommunity.com/"><b>Steam Community</b></a> profile page. Please only enter the final part of the URL. For example: "http://steamcommunity.com/id/left4deadforums" I would enter only "<b>left4deadforums</b>".

Default Value: LEAVE THIS BLANK

Max length of allowed user input: 30 (will prevent people posting the full URL. This is a "good thing".)

Field Length: 25

Profile Field Type: Single-Line Text Box

Field Required: No

Field Editable by User: Yes

Private Field: Yes

Field Searchable on Members List: Yes

Show on Members List: Yes

Regular Expression: LEAVE THIS BLANK

Hit save and make a note of the profile field ID for the next step.

Edit template POSTBIT. Find:

PHP Code:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if> 
Add below:

PHP Code:
<if condition="$post['fieldX']"><div>Steam ID: <a href="http://steamcommunity.com/id/$post[fieldX]target="_blank">$post[fieldX]</a></div></if> 
Replace ['fieldX'] with the number of your new profile field.


Save and you're done. Voila!!


DEMO: http://left4deadforums.com/835-left-...movie-1-a.html

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-10-2008, 08:19 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice but i get:
Code:
You did not enter the correct format for the Steam Community Profile field. Please read the field description for the expected format.
i entered the correct id...
Reply With Quote
  #3  
Old 11-11-2008, 02:24 AM
johkalhaups's Avatar
johkalhaups johkalhaups is offline
 
Join Date: Jun 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to add this mod as a little steam icon where your IM icons are:

Find this in postbit:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]


Add this right below:

Code:
<if condition="$post[fieldXX]">
<a href="http://steamcommunity.com/id/$post[fieldXX]" target="_blank"><img src ="$stylevar[imgdir_misc]/steam.gif"border="0"alt="View Member's Steam Community Profile"></a>
</if>

Upload the attachment to:

/images/misc


Dont forget to replace fieldXX with your field number you made.



Demo: http://www.theriseoftsm.com/forums/s...ead.php?t=2613
Reply With Quote
  #4  
Old 11-13-2008, 08:15 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fynnon View Post
very nice but i get:
Code:
You did not enter the correct format for the Steam Community Profile field. Please read the field description for the expected format.
i entered the correct id...
Where did you get that?
Reply With Quote
  #5  
Old 11-13-2008, 08:16 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh....

Sorry, my bad. Leave Regular Expression: and Default Value: blank.
Reply With Quote
  #6  
Old 11-14-2008, 11:41 AM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah..working now :-)

10x
Reply With Quote
  #7  
Old 02-01-2009, 04:25 PM
mlthmp mlthmp is offline
 
Join Date: May 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I realize its been awhile since anyone has posted here, but I've recently had a request to add such a mod and thought I'd give this one a try.

Here are the edits I've made to my postbit.
<if condition="$post['field18']"><div>Steam ID: <a href="http://steamcommunity.com/id/$post[field18]" target="_blank">$post[field18]</a></div></if>

I've also added the one above to add the image,
<if condition="$post[field18]">
<a href="http://steamcommunity.com/id/$post[field18]" target="_blank"><img src ="$stylevar[imgdir_misc]/steam.gif"border="0"alt="View Member's Steam Community Profile"></a>
</if>

However nothing is wanting to work. Does anyone notice any bonehead mistakes I've made in my edits? The field I made was field18.
Reply With Quote
  #8  
Old 02-01-2009, 08:21 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean by "nothing wants to work"? Can you supply your URL and more information as to the issues you're having?
Reply With Quote
  #9  
Old 03-04-2009, 08:16 PM
DontWannaName DontWannaName is offline
 
Join Date: Feb 2009
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 3.8.1? I see your forum is so im guessing it does.
Reply With Quote
  #10  
Old 03-04-2009, 11:08 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly in 3.8.x
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04750 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete