Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2013, 01:37 PM
iZefi10 iZefi10 is offline
 
Join Date: Jul 2013
Location: Lancashire, United Kingdo
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 08-25-2013, 01:44 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reading the source code of the "friendly" forum might yield a clue, since alot of the developers brand their work in the code.
Reply With Quote
  #3  
Old 08-25-2013, 01:47 PM
iZefi10 iZefi10 is offline
 
Join Date: Jul 2013
Location: Lancashire, United Kingdo
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
Reading the source code of the "friendly" forum might yield a clue, since alot of the developers brand their work in the code.
Nothing is listed.
Reply With Quote
  #4  
Old 08-25-2013, 02:35 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iZefi10 View Post
Nothing is listed.
I might have some better luck, if I had a link.
Reply With Quote
  #5  
Old 08-25-2013, 03:39 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
tbworld
  #6  
Old 08-25-2013, 03:46 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may work, https://vborg.vbsupport.ru/showthread.php?t=215277
Reply With Quote
  #7  
Old 08-25-2013, 03:55 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
That's pretty much what I was trying to say, but it's a better step by step guide. Also I'm glad you posted that because I had used $bbuserinfo instead of $post.
Reply With Quote
Благодарность от:
ozzy47
  #8  
Old 08-27-2013, 03:19 PM
iZefi10 iZefi10 is offline
 
Join Date: Jul 2013
Location: Lancashire, United Kingdo
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the help, each of you.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09480 seconds
  • Memory Usage 2,235KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete