vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "Hide Forums" on "Show New Threads" (https://vborg.vbsupport.ru/showthread.php?t=82557)

darnoldy 06-06-2005 12:02 AM

"Hide Forums" on "Show New Threads"
 
Note: this discussion was begun on vB.com, but I have brought it over here to avoid getting a nastygram from the mods<G>

After some discussion, MGM wrote:

Quote:

Originally Posted by MGM
I wonder how easy it would be to make that a user option... we could just make a new profile field where the user enters their own forum id's (seperated by commas), then call the profile field in the navbar template where, if it exists, add &exclude=$bbuserinfo[field11] ...

which started me thinking:

One can create a custom profile field, with checkboxes for each forum or a multiple-selection drop-down called "Exclude from new post search"

One can modify the navbar template so that &exclude=$bbuserinfo[fieldn] is added to the newpost call.

But, here's where I get stuck....

The checkboxes need to list the forum names The exclude needs to list the forum numbers. Now checkboxes can display one thing and return another, but where does one edit that? Can one just go in and edit the usercp template--or what? How do we go from fforum names to forum numbers?

--don


All times are GMT. The time now is 09:24 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.01047 seconds
  • Memory Usage 1,710KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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