The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Can someone help me with this hack/feature to my forum?
I want to add two additional info fields into my members profiles to display two things as shown in the attached photo.
The thing thats different is i want them to appear as shown in the pic. Is that possible? Any help advice appreciated. Willing to pay someone to help me with it as well if possible. |
#2
|
||||
|
||||
If I'm understanding what you want, thats easy. No hack necessary.
Just create the two new fields in your admin control panel.. Make a note of the field IDs for the two new fields. You can find out what the ID is by clicking "modify" under profile fields in the admin control panel, then hold your mouse over the new fields.. The field ID is displayed at the end of the URL at the bottom of your screen. Then edit your postbit template and add this wherever you want them to appear: <smallfont>Currently Playing: $post[fieldX] <br> X-Box Live gamer tag: $post[fieldX]<br></smallfont> (replace the Xs with the field ID) You can add the fancy tables around them with html. |
#3
|
||||
|
||||
awesome. is it ok to prep the code and post it here for you to check for me?
|
#4
|
||||
|
||||
what template do i edit?
|
#5
|
||||
|
||||
oh and how do i make it NOT appear if nothing is entered into their profile? is that possible?
if you visit http://www.xboxworld.com.au/forum/sh...0844#post40844 you can see it working what template do i put it into to make it appear under the location and postcount bit? |
#6
|
||||
|
||||
hehe there we go ive got it all working nicely now but if u can help me make it optional so that if nothings entered, nothing displays that would be incredible!
|
#7
|
||||
|
||||
Quote:
Craig |
#8
|
||||
|
||||
thanks craig, i worked it out can you help mae make it optional, ie make them not display in the forum posts if nothing is entered into the fields by the user..
|
#9
|
||||
|
||||
In admin/functions.php find:
Code:
if ($post[customtitle]==2) { $post[usertitle] = htmlspecialchars($post[usertitle]); } Code:
// first profile field if ($post[fieldX]!="") { $gamedata1="<smallfont><b>Currently Playing:</b><br>$post[fieldX]</smallfont><br>"; } else { $gamedata1=""; } // second profile field if ($post[fieldX]!="") { $gamedata2="<smallfont><b>Xbox Live gamer tag:</b><br>$post[fieldX]</smallfont><br>"; } else { $gamedata2=""; } Now go to your postbit template and remove all of the code & text that you added earlier.. Now replace it with: $gamedata1 $gamedata2 That should work. |
#10
|
||||
|
||||
thats awesome, thank you so much EvilLS1, worked perfectly first time!
that is awesome |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|