vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Permissions: Can list posts, but not view. (https://vborg.vbsupport.ru/showthread.php?t=41815)

Logician 11-26-2002 02:42 PM

I edited my code, please reapply. Your other question also has been answered above..

ryancooper 11-26-2002 03:53 PM

Thanks a million!

One last question:
Woud this work as well?
PHP Code:

if ($forum['forumid']==OR ($forum['forumid']==AND ($bbuserinfo['usergroupid']==OR $bbuserinfo['usergroupid']==Z)) 

Hoping to include more thant one fourm?

Thank again for all you help!! :laugh:

Logician 11-26-2002 04:36 PM

Quote:

Hoping to include more than one forum?
PHP Code:

if (($forum['forumid']==OR $forum['forumid']==W) AND ($bbuserinfo['usergroupid']==OR $bbuserinfo['usergroupid']==Z)) 

Enjoy.. ;)

ryancooper 11-26-2002 06:32 PM

Works like a charm! Thanks again!

BTW Logician you should write this up as a hack and post it in the hafcks sections I bet many people would enjoy it! I know I do!

Thanks!!

marcel-ea 11-27-2002 01:37 AM

Hello logi
Thanks now it work fine.

But.
I have over 200 Forumids :)
Can i set a wildcard ?

Thanks

Logician 11-27-2002 07:58 AM

Quote:

Originally posted by marcel-ea
But.
I have over 200 Forumids :)
Can i set a wildcard ?

You can omit the forumid section alltogether which means it will apply to all forums. eg.:

PHP Code:

if ($bbuserinfo['usergroupid']==OR $bbuserinfo['usergroupid']==Z

Now the hack will restrict viewing of all threads in ALL forums if viewer is from usergroup Y or Z..

marcel-ea 11-27-2002 08:28 AM

Thank you
Yes thats great

hadley 08-08-2003 04:55 PM

I have this hack installed, and it works, but not exactly as I'd like.
Namely: When an unregistered visitor tries to open the thread, they're blocked, and must go through the registration process. That part's OK. However, they do not have to go through the confirmation process -- so, I get a fair number of registrations everyday from anyname@anydomain.com (and lots of variations). Can this hack be tweaked to force new registrants to respond to vB's email confirmation before they're allowed to open/view threads?

Logician 08-08-2003 06:29 PM

Quote:

Today at 08:55 PM hadley said this in Post #18
I have this hack installed, and it works, but not exactly as I'd like.
Namely: When an unregistered visitor tries to open the thread, they're blocked, and must go through the registration process. That part's OK. However, they do not have to go through the confirmation process -- so, I get a fair number of registrations everyday from anyname@anydomain.com (and lots of variations). Can this hack be tweaked to force new registrants to respond to vB's email confirmation before they're allowed to open/view threads?

it is related to your usergroup permissions, not the hack itself. Set your email confirmation members' forum permissions for that forum exactly as guests'.

hadley 08-08-2003 09:24 PM

It was already set that way -- permissions for "Unregistered / Not Logged In" and "Users Awaiting Email Confirmation" are the same.

To be clear: I want to let anyone, registered or not, open up any of 11 different forums, and see all the titles of all the threads in that forum. However, only registered and confirmed people should be able to open a thread to view the posts within it.

This is what I'm currently unable to do. I.e., I can force them to register before opening a thread, but I can't figure out how to force them to confirm before opening a thread.

Within vB, I have the admin choice to set "view threads" -- which means really means, view all contents of threads. I need two on/off levels: "view thread titles" and "view thread contents."

Btw, in the admin panel I can go to -->
User Groups | Forum Permissions
to do this, or to -->
Forums & Moderators | Permissions
-- and it's the same result, right?


All times are GMT. The time now is 11:14 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.01186 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete