Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Users Can Hide Posts From Unregistered Browsers Details »
Users Can Hide Posts From Unregistered Browsers
Mod Version: 1.00, by TygerTyger (Member) TygerTyger is offline
Developer Last Online: Jul 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Beta 3 Rating: (0 vote - 0 average) Installs: 7
Released: 13 Jul 2006 Last Update: 13 Jul 2006 Downloads: 34
Not Supported Template Edits  

Requested by a forum member because of someone who had been banned continuing to nose around the forum as a Guest and I thought it was a sufficiently neat idea to be worth making known to the masses. All users have to do is choose to hide their posts to unregistered browsers (and search engines) in their UserCP. Sort of like a custom Tachy for privacy. Screenshot at the bottom!



INSTRUCTIONS

OPEN:
AdminCP > User Profile Fields > Add New User Profile Field

Add a new Single-Selection Menu then fill in the following settings:

Title: Hide my posts from Unregistered Browsers and Search Engines
Options: (Make sure they are in this order!)
No
Yes
Set Default: Yes, but no First Blank option
Field Required: No but display at registration
Field Editable by User: Yes
Private Field, Field Searchable on Members List, Show on Members List: All No. (Unfortunately you must make this a non-private field or the change won't register with Guests)

Display Page: Options: Log In/Privacy

Save the page and make a note of the field number assigned to your Custom Field, which is shown on the User Field Manager page next to the display number. If this is your first Custom Field then your field number will be 6. In the following template edit, change the X in fieldX to the number of your Custom Field.



OPEN:
UserCP > Styles & Templates > Edit Templates > Postbit(_legacy)

FIND: (shouldn't be tricky, it's the first lines )

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

FIND: (Should be equally difficult, it's the last lines)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



And you're done! You can of course change the post-subtitute message to anything you like but you can't hide a post entirely because it breaks the formatting of the page so the table row must remain.


Demo:



Feedback, bugs, complaints to the usual address on the back of a postcard. You're going to hell if you use this hack and don't click install.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Hide Posts To Unregistered Users - Posting Option Jafo232 vBulletin 3.5 Add-ons 20 02 Dec 2006 18:14

Comments
  #2  
Old 13 Jul 2006, 11:10
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Oh, nuts to this. Why did the similar thread not appear when I searched for it? Freaking vBulletin search engine...

Oh well, I guess now you have choice of doing it with a plugin using the other guy's method or a purely a template edit using mine.

His deals with the threadbit, mine does not. Mine doesn't trouble the database either, of course.

Last edited by TygerTyger; 13 Jul 2006 at 11:40.
Reply With Quote
  #3  
Old 14 Jul 2006, 16:23
rob30UK rob30UK is offline
 
Join Date: Oct 2005
TygerTyger...

You have made here a fairly reasonable attempt at a mod, but I feel maybe you could make it far better. With a little thought behind why this would be used, it could have been made slightly differently. Think about it this way instead - I think this should be a native feature:-

Ability for users to hide their 'THREADS' from non members (not posts, as it would make convos non-sensical)....

This would however happen on a PER THREAD basis, not a global switch in usercp (bad idea)

The ability to hide threads or not should be controlled by the permissions system and an admin should be able to specify which groups can and cant do this.

The above, in my opinion would be the best implementation of any mod along these lines and would result in a very very popular and usable (even practical) mod.

I'm sure someone will do this very soon.... wonder who'll be first?
Reply With Quote
  #4  
Old 14 Jul 2006, 17:46
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Well if you check the other guy's method I linked to in the post above yours, his isn't too far off doing that.

The reason I left this one here (aside from the fact the search didn't pick it up until after I'd posted it :rolleyes) is because it's a quick-n-easy template-only edit and would still be useful for someone who wants to keep their posts out of the search engines which apparently some do.

I'm inclined to think that a global thread-switch would be what most people are after though, I think that a per-thread mod would have a more limited use. If not because what I personally would do is a make a forum section for "Secrets" or whyever people would want to hide their thread and just hide the section from Guests.
Reply With Quote
  #5  
Old 15 Jul 2006, 03:57
utw-Mephisto utw-Mephisto is offline
 
Join Date: Feb 2005
I would rather see something like used here on vb.org were code is only visible for licensed user ..
Reply With Quote
  #6  
Old 15 Jul 2006, 08:06
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
To be honest I'm astonished they don't already do that, I assumed they did.

Edit: They do.

Last edited by TygerTyger; 25 Jul 2006 at 08:07.
Reply With Quote
  #7  
Old 30 Aug 2006, 17:59
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Thanks for the hack! I'll install it right away...
Reply With Quote
  #8  
Old 17 Sep 2006, 18:50
txsbmw's Avatar
txsbmw txsbmw is offline
 
Join Date: May 2006
I just tried this on 3.6.1 and cannot get it to work. Is there any way to make this work with 3.6.1?
Reply With Quote
  #9  
Old 27 Nov 2006, 01:46
jilly jilly is offline
 
Join Date: Jul 2002
Real name: jilly
modifying...

so how exactly would I modify this so that a user hides their posts from all usergroups, not just guests?
__________________
(alphabetically) My Hacker Heros - Thank You Coders!! Your hard work and creativity is appreciated!
Abe1 - Andreas - Calorie - CMX_CMGSCCC - Cyb - Darkwaltz4 - Mosh - MrZeropage - Oblivion Knight - Paul M. - Phalynx - PixelFX - Psionic Vision - randominity - Sabret00the - tamarian - tehste - Tygertyger - Zachariah - Zero Tolerance
Reply With Quote
  #10  
Old 27 Nov 2006, 02:47
jilly jilly is offline
 
Join Date: Jul 2002
Real name: jilly
nevermind, got it solved

someone told me to remove the bbuser condition at the end, and just use

<if condition="$post['fieldxx'] == Yes">

instead, and it works fine!!! Thank you so much Tyger, this is a great option for my users when they need to hide their posts from general view for whatever reason, and what the freedom to hide or unhide their posts whenever they need to.
__________________
(alphabetically) My Hacker Heros - Thank You Coders!! Your hard work and creativity is appreciated!
Abe1 - Andreas - Calorie - CMX_CMGSCCC - Cyb - Darkwaltz4 - Mosh - MrZeropage - Oblivion Knight - Paul M. - Phalynx - PixelFX - Psionic Vision - randominity - Sabret00the - tamarian - tehste - Tygertyger - Zachariah - Zero Tolerance
Reply With Quote
  #11  
Old 01 Dec 2006, 11:10
@ngel @ngel is offline
 
Join Date: Jan 2005
Real name: Spyros
Great work, but I am a little confused...
Here's my postbit_legasy


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and the field is field12!
How is it modified?
Thank you all!
Reply With Quote
  #12  
Old 02 Dec 2006, 19:30
@ngel @ngel is offline
 
Join Date: Jan 2005
Real name: Spyros
Anybody that could help?
Reply With Quote
  #13  
Old 03 Dec 2006, 13:44
Pcparts's Avatar
Pcparts Pcparts is offline
 
Join Date: May 2005
Niice hack.

but would this also work on vb 3.5.x?

Thanks
Reply With Quote
  #14  
Old 07 Dec 2006, 15:20
@ngel @ngel is offline
 
Join Date: Jan 2005
Real name: Spyros
well, I did it on my own...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #15  
Old 12 Feb 2008, 16:42
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
If you want to let users hide their USERNAMES from guests browsing their posts, but still let them see the rest of the post, add the possible value "Anonymous" to the fieldXXXX checkbox options, then open postbit_legacy and find :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add before :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

find :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add before :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 17:33.

Layout Options | Width: Wide Color: