Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Gamercard in Profiles Details »»
Gamercard in Profiles
Version: 2.0, by TheInsaneManiac TheInsaneManiac is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.x Rating:
Released: 10-14-2009 Last Update: 11-03-2009 Installs: 13
Uses Plugins Auto-Templates
 
No support by the author.

Display your gamercard in your profiles with ease. Gamercards will display under the about tab in profiles.

Installation:
1.) In the AdminCP go to User Profile Fields -> Add New User Profile Field.

2.) Select Single-Line Text Box.

3.) Apply the following settings:
Title:
Gamertag
Description:
Put your Xbox Live Gamertag here.
Max length of allowed user input:
16
Field Required:
No
Private Field:
No
Field Searchable on Members List:
Yes
Show on Members List:
No

4.) After saving take note of what the ID is of the field.

5.) In the AdminCP under Gamertag Profile put the ID in there.
Ex: field123


Optional:
You can now view gamercards in posts by hovering over their gamertag. See screenshot for better explanation.

To do this go into your headinclude template and find:
<!-- / CSS Stylesheet -->

Below add:
$gamercardinpostbit

In postbit find:
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

Add the following code after, be sure to change XX to your gamertag field ID:
<if condition="$post['fieldXX']"><div">$vbphrase[gamertag]: <a href="http://profile.mygamercard.net/$post[fieldXX]" target="_blank" onmouseover="return overlibImage('', 'http://card.mygamercard.net/$post[fieldXX].png');" onmouseout="return overlibMouseout();">$post[fieldXX]</a></div></if>


FAQ:
Question: I get a "Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING" error.
Answer: You did not fill in your profile field correctly or at all.


Known Issues:
Gamercard will not display if gamertags have spaces. -Fix being worked on


Upgrading:
Import the product and select Allow Overwrite.


Changelog:
2.0 - Fixed a bug which prevented the gamercard script from running in the postbit.
1.8 - Fixed a bug that prevented gamercards to show in profiles.
1.5 - Added the ability to see the gamercard via posts.
1.0 - Release

Download Now

File Type: zip Gamercard in Profiles 2.0.zip (17.0 KB, 60 views)

Screenshots

File Type: jpg Gamercard.jpg (57.8 KB, 0 views)
File Type: jpg Postbit.jpg (81.7 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 02-12-2010, 08:05 PM
KasparP KasparP is offline
 
Join Date: Feb 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I hover over it, it just says "loading image" and it won't load. Any ideas?
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 06:08 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.06418 seconds
  • Memory Usage 2,225KB
  • Queries Executed 17 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (3)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete