vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   A mod to force every post in a particular subforum to show up as posted by anonymous? (https://vborg.vbsupport.ru/showthread.php?t=294606)

Zakalway 01-31-2013 08:11 AM

A mod to force every post in a particular subforum to show up as posted by anonymous?
 
This mod is basically perfect, but it still allows people to choose to post without showing up as anonymous: https://vborg.vbsupport.ru/showthread.php?t=177694

Any ideas?

Digital Jedi 01-31-2013 03:46 PM

If I were trying to do this, I wouldn't necessarily go the modification route. I'd force the particular forums I wanted this to happen in to use a specific style (which you can do in the Forum Manager). Then I'd customize the appropriate postbit templates in that style by stripping out username or Identifiable info, depending on how anonymous you want them to be (i.e. stripping out anything that might display a user ID.) Then, in the main style your forum uses, I'd use an IF condition around the appropriate code in (I believe it's) forumdisplay to exclude the username/lastpostby based on that forum ID(s). Which would effectively remove user names from that forum when showing up on forumdisplay.php and New Posts.

A little bit of work, but not necessarily difficult work. And it's safe enough to experiment with the custom style first yourself, before going live with it.

Zakalway 01-31-2013 05:36 PM

Ah, that's a great idea! Thank you so much for the guidance.

What about removing posts from that forum from Search results?

Digital Jedi 01-31-2013 08:43 PM

I said forumdisplay, but what I think I actually meant was threadbit. Put the appropriate if/else condition around the last posterthreadbit code, and that will take care of Search Results and Forum Home.

There might be a few places here and there you want to check/tweak. I'm thinking the Who's Online templates might need a tweak here and there, too, if you have that turned on.


All times are GMT. The time now is 04:59 AM.

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.01021 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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