The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Xbox.com gamercard for all users Details »» | |||||||||||||||||||||||||
Function
These modifications on a vbulletin forum allow you to fully integrate the xbox.com gamercard on your forum next to each and every post a user makes. This will make it look more or less like the integration on our forum. Important First always backup the files that you're going to edit so you can revert to the old version if something goes wrong. We do appreciate if you gave us the due credits for these functions. Installation This modification was tested on vbulletin 3.5.0. You might have to put some codes on another location in your files depending on the version of vbulletin your have. 1. Add a gamertag field to your user (editable in profile) => vBulletin features a wide array of input options for you to gather information from your members through the creation of custom profile fields. With these fields you can present a list of options for the user to choose from or you can ask the user to give their own input. Go to the adminCP and add a custom field => User Profile fields => Add New User Profile Field You need a "Single-Line Text Box" Title => Gamertag Description => Xbox Live Gamertag Default Value => Leave empty Max length of allowed user input => 30 Display Size => 30 Display Order => put something like 10 or 15 Field Required => No as default but you can change if you want Field Editable by User => Yes because gamertags do tend to change Private Field => No the field is public Field Searchable on Members List => No Show on Members List => Yes Regular Expression => leave empty Save the field Go to the User Profile Field Manager and look for your custom field you just added and look for the name column there is an ID for the field. Something like "fieldXX" where XX is a number. Make sure you remember this value. 2. Go to the template you are using (Styles & Templates/Style Manager) and select Edit templates. Go to "postbit templates" and select the template you are using (probably postbit or postbit_legacy). and add the following code: fieldXX is the field value you got from step 1. You can embed the code in a div or a special table construction but that is up to you. Code:
<if condition="$post[fieldXX]"> <iframe src="http://gamercard.xbox.com/$post[fieldXX].card" scrolling="no" frameBorder="0" height="140" width="204">$post[fieldXX]</iframe> </if> You can see it active on the forum of http://www.xboxusersgroup.com Support For support contact us through the feedback forum. ALL MODIFICATIONS ARE DONE AT YOUR OWN RISK. XBOX USERS GROUP IS NOT RESPONSIBLE FOR ANY LOSS OF DATA. For gamertags with spaces look here for the solution. Credits All code is (c)2005 Xboxusersgroup.com and StonyArc. You are however allowed to change the location / display location of the gamercard however you see fit. Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
|
#13
|
|||
|
|||
Quote:
So the rest of the code is exactly the same. Should I make a new modification or can you handle it ? |
#14
|
|||
|
|||
Nice snipe stony..
For a dhtml popup window, check here https://vborg.vbsupport.ru/showthread.php?t=99769 |
#15
|
|||
|
|||
Quote:
Seems that there is a lot of discussion about the dhtml window. :speechless: |
#16
|
|||
|
|||
Ok this kinda psses me off First off I posted this as a request here
https://vborg.vbsupport.ru/showthrea...highlight=XBOX Im not saying you took someone elses work, but this hack existed prior to your post and I think others should get some credit for this, and by the way I have it running over at my site in the postbit which works MUCH better as a pop-up beacuse it will GROW larger and could mess your forum structure up. ALSO who cares what TeamXBOX thinks they didnt invent it! M$ put the code up for everyone to use in websites.. |
#17
|
|||
|
|||
Quote:
We released the how to very fast on xbox.com and our forum as a service. Afterwards I posted it here. I didn't want to cancel out any other threads that are in here. Moreover just look at want an MVP has to say about the teamxbox claim http://msmvps.com/glach/archive/2005/10/30/73546.aspx Funny stuff :smoke: |
#18
|
||||
|
||||
Can anyone tell me how to do an "if" they have a gamertag, use the XBox link ELSE show the avatar? I want it to show one or the other. Thanks.
|
#19
|
|||
|
|||
Quote:
FieldXX is the name of your gamertag field (see the first post) Code:
<if condition="$post['fieldXX']"> <div class="smallfont" align="center"> <iframe src="http://gamercard.xbox.com/$post[fieldXX].card" target="_blank" scrolling="no" frameBorder="0" height="140" width="204">$post[fieldXX]</iframe> </div> <else> <div class="smallfont"> <center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center> </div> </if> Hope this helps |
#20
|
|||
|
|||
Hey stonyarc.
Love the code. However, I'm much more interested in the entire card scheme style you have (avatar...username..etc etc with the gamercard underneath). Any chance of you releasing that? |
#21
|
||||
|
||||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|