The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Profile Fields in Postbits Details »» | |||||||||||||||||||||||||
Show Profile Fields in Postbits
For German Users goto http://www.vbhacks-germany.com/forum...ead.php?t=3236 Features 1. Shows Profile fields in the postbits. 2. Dosent shows if field is blank. 3. Admin can set which profile field to show and in which order. 4. Admin can set where to show under posts by user or under username NEW Why Use it As am running my university forums so, setting "roll no" (student-id-no) in postbit made easy to recognize ppl posting.. you can add fields like "Favourite music", "Favourite movie", "Favourite book" and add them in postbits.. REFERSH THE ADMIN PANEL AFTER INSTALLING IT there might be such plugin b4 but am unable to find it,, is it? Works on all 3.5.x ..... and on 3.6.0 special thanks to nicedreams here for 3.6.0 users Liked it? How about Supporters / CoAuthors Show Your Support
|
Comments |
#32
|
|||
|
|||
Great Hack,
But I got one problem, one of my profile fields that is a multiple choice list, and for some reason the optin is not showing up properly in the post bit. It is showing a number instead of one of the correct options. I have screen shots of my user profile fielld options and screen of the post bits showing the numbers? Any idea how to fix this so it shows the correct option? I have a country field that works fine with this hack, but that is a text box option, not multiple choice box. Any ideas? |
#33
|
|||
|
|||
I think that you set up your multiple choice as a multiple selection? Is that they way you wanted it?
|
#34
|
|||
|
|||
ya, it is possible that a member could be two options. Is that what might be messing it up?
I wonder if I change the settings now, would it mess up everyones profile? |
#35
|
|||
|
|||
Quote:
find: Code:
$Query = "select title from ".TABLE_PREFIX."profilefield where profilefieldid=".substr($value, 5); Code:
$Query = "select title, type, profilefieldid from ".TABLE_PREFIX."profilefield where profilefieldid=".substr($value, 5); Code:
$row2=$GLOBALS['vbulletin']->db->query_first($Query); Code:
if ($row2[type] == 'checkbox') { if ($row2[profilefieldid] == 15) { $fieldvalue = ''; if ($post[$value] & 1){$fieldvalue = 'A ';} if ($post[$value] & 2){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'I ';} if ($post[$value] & 4){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'C ';} if ($post[$value] & 8){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'F ';} if ($post[$value] & 16){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'D ';} if ($post[$value] & 32){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'S ';} if ($post[$value] & 64){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'H ';} if ($post[$value] & 128){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'N ';} if ($fieldvalue != ''){$post[$value] = $fieldvalue;} } if ($row2[profilefieldid] == 19) { $fieldvalue = ''; if ($post[$value] & 1){$fieldvalue = 'A ';} if ($post[$value] & 2){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'S ';} if ($post[$value] & 4){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'D ';} if ($post[$value] & 8){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'S ';} if ($post[$value] & 16){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'I ';} if ($post[$value] & 32){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'C ';} if ($post[$value] & 64){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'M ';} if ($post[$value] & 128){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'M ';} if ($post[$value] & 256){if ($fieldvalue != ''){$fieldvalue .= ', ';}$fieldvalue .= 'O ';} if ($fieldvalue != ''){$post[$value] = $fieldvalue;} } } Jim |
#36
|
|||
|
|||
Thanks, I'll give that a shot!!! and let you know how it goes Thanks
|
#37
|
|||
|
|||
can i modify it 2 a link
so its like CLICK HERE 2 GO TO _____ n then the field's stuff is a link...instead of showing the whole URL... |
#38
|
|||
|
|||
Quote:
|
#39
|
|||
|
|||
I'm using the Collapsible Postbit (postbit legacy) and this doesn't work for me
|
#40
|
|||
|
|||
I would like to put a line-break between the start and end of the displayed fields as it falls to close to the data above and below - also to make it bold would be handy - anyone know how?
|
#41
|
|||
|
|||
my members just asked me to add more info in their postbit..this is the one
i really needed..thanx for this nice hack..*clicked install* |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|