![]() |
Show Your XBOX 360 Gamertag as your Avatar in Postbit
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. |
Where's teh demo?
|
I modified it to show in the Members profile instead, but thanks for the idea.
|
Quote:
|
Fantastic Thanks Alot!
|
forsome reason i cant get this too work
|
What problems are you having with this? Is it not showing up when you make a post?
Make sure that you made this modification on the postbit (Not postbit_legacy I will post up the modification to postbit_legacy in a couple of days as I just changed it on my board to work) |
Quote:
all profile fields are filled out accordingly but it's not showing up :( |
Quote:
|
Quote:
|
Quote:
|
Quote:
i can't find where you're talking about...can you paste a screenshot? |
nothing to do with my skin either...it's something in the coding or something...
i think you need to check it bro. i did it on the base default skin and it didnt work either...i REALLY want this to work on my boards, please take a look at it bro |
hmm post a link to your site and i'll register on there and see what could be going on. You may have to give me admin rights for me to be able to see what could be causing it. But that is completely up to you
|
Quote:
www.sanpoffracing.com/forums thanks dude, sooner the better =) |
hmm I tried to go to your site and it wouldn't load? were you having server troubles with your site the other night?
EDIT: lol I saw the problem.... you had www.sanpoffracing.com/forums should have been www.snapoffracing.com/forums (it was spelled sanp instead of snap.)....lol no probs though EDIT #2: Ok I have registered on your site and my username is (what else) Nazarath. I will need admin access and the ability to edit the styles to see what could be going on.... though right now it looks like it may deal with the zoints add-on you have. won't know till i can see the code |
oops, sorry about that.
I'm giving your name temp. admin priveleges |
OK I have registered on your site. Ill need admin to see what could be causing it. Right now it looks like it might be the zoints but I won't know till i get in there.
Actually it looks like you may need to give me super admin rights... the only way to do that is through the config.php file and find the line that says PHP Code:
|
Quote:
|
Can someone tell me how big in size the avatar will be?
Thanks Darren |
I see you just fixed my issue! can i have a detailed explanation as to what i did wrong?
|
the gamercard is a height of 140 pixels and a width of 204 pixels
|
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 |
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 |
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) |
It would be cool to be able to display the gamertag in certain forums (not all forums on my board are xbox related"
|
All times are GMT. The time now is 05:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|