The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide from Postbit Plugin?
Hello again. I was browsing a friendly forum earlier, and I noticed a Technical Announcement, stating they'd made some changes to the "profile options." Users now had the ability to "hide" certain things from their Postbit. I think this is really amazing, and I've been browsing the Plugins section of vbulletin.org for quite a while, and I haven't found anything. Here is a print screen of what I am talking about.
Any help would be much appreciated! Joe |
#2
|
||||
|
||||
Reading the source code of the "friendly" forum might yield a clue, since alot of the developers brand their work in the code.
|
#3
|
|||
|
|||
Nothing is listed.
|
#4
|
||||
|
||||
I might have some better luck, if I had a link.
|
#5
|
|||
|
|||
I don't know if it's an existing mod or not, but it's not that hard to do. You just need to create a new User Profile Field of type "Multiple Selection Checkbox", and list the items you want to be able to hide, then edit your postbit or postbit_legacy and put if tags around the various items. The only thing that's a little tricky is the condition to check. For example, you might list the items as
Code:
Username Userbars Join Date Location (etc) Then in postbit, you'd find the code for each of those and add: Code:
<if condition="!($post[fieldX] & 1)"> // existing code for username </if> ... <if condition="!($post[fieldX] & 2)"> // existing code for userbars </if> ... <if condition="!($post[fieldX] & 4)"> // existing code for join date </if> You'd replace the X in fieldX with the actual field number of the user profile field you create. Also, the values you check double for each item (1, 2, 4, 8, 16, 32, etc). The only thing is that by default the items will list vertically instead of horizontally like the one you posted. I'm not sure, you may be able to change that using CSS. |
Благодарность от: | ||
tbworld |
#6
|
||||
|
||||
This may work, https://vborg.vbsupport.ru/showthread.php?t=215277
|
#7
|
|||
|
|||
Quote:
|
Благодарность от: | ||
ozzy47 |
#8
|
|||
|
|||
Thank you for the help, each of you.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|