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 08-08-2003 09:49 PM

I'm sticking with my previous reply. :)

This is not related to the hack itself unless applied the hack wrongly in the first place.

This line:
PHP Code:

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

will stop email confirmation waiting members and guests getting the threads in the showthread list (though there are still other ways to get them so this hack is not perfect which is irrelevant at the moment), in forum with ID 1.

If your code is correct, your problem should be related to your forum permissions somehow.
Quote:

User Groups | Forum Permissions
to do this, or to -->
Forums & Moderators | Permissions
-- and it's the same result, right
right

hadley 08-08-2003 10:04 PM

Where can I find that line of code so that I can check it?

Cal Poly Forum 08-27-2003 08:52 PM

PHP Code:

if ($forum['forumid']==AND $bbuserinfo['usergroupid']==Y

eval(
"standarderror(\"".gettemplate("error_youdonthavepermission")."\");"); 
exit; 



What is the usergroupid? Would I insert "Unregistered / Not Logged In" as "usergroupid"?

And is this compatible with 2.3.2?

NTLDR 08-27-2003 09:14 PM

For "Unregistered / Not Logged In" its 1.

ie:

PHP Code:

if ($forum['forumid'] == AND $bbuserinfo['usergroupid'] == 1) { 
eval(
"standarderror(\"".gettemplate("error_youdonthavepermission")."\");"); 
exit; 



tm21 12-11-2003 06:03 AM

Is there an update for this hack for version 2.3.3? I noticed the code in the file is slightly different, and there are 2 occurences. I tried it anyway and nothing happened.

tm21 12-15-2003 02:46 PM

I did get this to work finally, you have to edit the second occurence in showthread.php, not the first.


All times are GMT. The time now is 08:52 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.02378 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)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
  • (6)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