vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Check this out (https://vborg.vbsupport.ru/showthread.php?t=61578)

Logikos 02-15-2004 08:35 AM

Check this out
 
Please if someone could tell me how i can let guest post to one thread ID only i will appreciate it. This is the reason why. http://www.computerproblems.org/foru...ead.php?t=1153

I would appreciate it alot, and would mean alot to eddie.

Thanks in advance

Boofo 02-15-2004 08:43 AM

Set in in the forum permissions for the usergroup.

Logikos 02-15-2004 08:44 AM

i can set it to that one thread?

Boofo 02-15-2004 08:51 AM

Sorry. My fault. I was thinking forum. Nope. Can't do that in there. Probably have to go with a hack. ;)

Logikos 02-15-2004 06:29 PM

if i only knew the code.

vbmechanic 02-15-2004 06:42 PM

Here's a guess...

newreply.php, FIND:

PHP Code:

if (($bbuserinfo['userid'] != $threadinfo['postuserid'] OR !$bbuserinfo['userid']) AND (!($forumperms CANVIEWOTHERS) OR !($forumperms CANREPLYOTHERS)))
{
    
print_no_permission();
}
if (!(
$forumperms CANVIEW) OR (!($forumperms CANREPLYOWN) AND $bbuserinfo['userid'] == $threadinfo['postuserid']))
{
    
print_no_permission();


Replace with:

PHP Code:

if ($threadinfo['threadid']!=1153)
{
if ((
$bbuserinfo['userid'] != $threadinfo['postuserid'] OR !$bbuserinfo['userid']) AND (!($forumperms CANVIEWOTHERS) OR !($forumperms CANREPLYOTHERS)))
{
    
print_no_permission();
}
if (!(
$forumperms CANVIEW) OR (!($forumperms CANREPLYOWN) AND $bbuserinfo['userid'] == $threadinfo['postuserid']))
{
    
print_no_permission();
}




All times are GMT. The time now is 08:40 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.01094 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete