vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide from Postbit Plugin? (https://vborg.vbsupport.ru/showthread.php?t=301594)

iZefi10 08-25-2013 01:37 PM

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.

https://vborg.vbsupport.ru/external/2013/08/18.png

Any help would be much appreciated!

Joe

Max Taxable 08-25-2013 01:44 PM

Reading the source code of the "friendly" forum might yield a clue, since alot of the developers brand their work in the code.

iZefi10 08-25-2013 01:47 PM

Quote:

Originally Posted by Max Taxable (Post 2440955)
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.

Max Taxable 08-25-2013 02:35 PM

Quote:

Originally Posted by iZefi10 (Post 2440957)
Nothing is listed.

I might have some better luck, if I had a link.

kh99 08-25-2013 03:39 PM

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.

ozzy47 08-25-2013 03:46 PM

This may work, https://vborg.vbsupport.ru/showthread.php?t=215277

kh99 08-25-2013 03:55 PM

Quote:

Originally Posted by ozzy47 (Post 2440994)

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.

iZefi10 08-27-2013 03:19 PM

Thank you for the help, each of you.


All times are GMT. The time now is 11:21 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.01092 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete