The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show Your XBOX 360 Gamertag as your Avatar in Postbit Details »» | |||||||||||||||||||||||||||
Show Your XBOX 360 Gamertag as your Avatar in Postbit
Developer Last Online: Jun 2008
Ok for those of you that have an xbox 360 site that is running this great software I have a mod for you.
If you would like to have it when your members post a message it shows there gamertag instead of the avatar that they post then follow these simple steps. Please keep in mind that this mod implies that you have not modified your postbit template. If you have modified your postbit template then you will need to change this around a bit. Modifications: 2 Extra Fields 1 Template modification Add 2 New Fields: Note the field IDs for each new UserField, which you will need in the template code. 1st New UserField Go to AdminCP -> User Profile Fields -> Add New User Profile Field Profile Field Type: Single-Selection Radio Buttons Title: XBOX 360 (or what ever you want it to be) Description: Do you have an XBOX 360 Gamertag? If so Please select Yes. (or what ever you want it to be) Options: No Yes Note... these options have to be exactly Yes and No otherwise the changes won't work Set Default: Yes (This will set "No" To the default Option if you put "No" First) Field Required: No, but display at registration (or what ever you want it to be) Field Editable by User: Yes Allow user to input their own value for this option: No Click Save. 2nd New UserField Go to AdminCP -> User Profile Fields -> Add New User Profile Field Profile Field Type: Single-Line Text Box Title: XBOX 360 Gamertag (or what ever you would like it to be) Description: Please type your Gamertag Here. (or what ever you would like it to be) Field Required: No, but display at registration (or what ever you want it to be) Field Editable by User: Yes Click Save. Now don't forget to get the Field ID's From these 2 options. Cause you are going to need them in the next step. Template Modification: Go to AdminCP -> Styles & Templates -> Style Manager In the drop down for your style click on the "Edit Template" In the list expand the "Postbit Templates" Then double-click on "postbit" Find The Following: PHP Code:
PHP Code:
PHP Code:
Next, Find: PHP Code:
Added on 02/12/07. If you would like to have it display just the gamercard without taking the place of anything else just put the code below where ever you like. PHP Code:
Thats It for any changes. Save your template and go add your gamertag to your profile and have a look. If you have any questions feel free to ask. Help support me and my site by going to http://www.ravensreapers.com and helping our site grow. If you use this Mod Please click Installed. Supporters / CoAuthors Show Your Support
|
Comments |
#22
|
|||
|
|||
I see you just fixed my issue! can i have a detailed explanation as to what i did wrong?
|
#23
|
|||
|
|||
the gamercard is a height of 140 pixels and a width of 204 pixels
|
#24
|
|||
|
|||
Quote:
Then when the section that looks for this option was running it was looking for just "Yes" not "* Yes". So after racking my brain on the code for a bit....lol trying to see what could be causing it I checked the options and saw that. Changed them to just say "Yes" and "No" and then went back to my profile and reset the option to "Yes" and it started displaying. Thanks for pointing out that small problem to me too. I am going to update my original post to state this and also put in the code to have it just display with it not taking the place of the avatar. Edit: Sorry about that I noticed that in my explination at the top the options have the * on them. I should have specified it a bit better....lol |
#25
|
|||
|
|||
it just dowsnt show up for me no matter what i do maybe youcan have a look at it for me?
i have attached my postbit in a text file canyou havea look at it |
#26
|
|||
|
|||
Quote:
Check to see if you are using postbit or postbit_legacy. to do this go to [B]vBulletin Options -> Style & Language Settings -> Use Legacy (Vertical) Postbit Template[B] See if you have that set to Yes or No. If it is set to yes then you will need to add this hack to the postbit_legacy instead of postbit. Check to see if you have specified the options correctly (Instead of *No and *Yes change them to No and Yes without the *) and then save and go back to your profile and choose the option again. Check to see if you are applying it to the correct style (if you have multiple styles) Check that stuff and if that doesn't work then please post a link to your site and I may need to do the same thing on your site as I did for SnapOff (Which was to register and for you to give me super admin and if you don't trust me just ask SnapOff that I will not do anything to harm your site or steal any data from your site. I am trust worthy and how else am I supposed to support my hacks/mods.....lol) |
#27
|
|||
|
|||
It would be cool to be able to display the gamertag in certain forums (not all forums on my board are xbox related"
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|