vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatic Thread Move... (https://vborg.vbsupport.ru/showthread.php?t=40211)

lordofgun 06-24-2002 02:35 AM

Automatic Thread Move...
 
There are a few posters who regularly post crap on our boards by starting a thread that doesn't belong there. I don't want to ban them outright, but...

Is there any way to create a hack that will automatically move threads started by a certain user to a designated forum immediately upon them posting it?

Thanks in advance!

Logician 06-24-2002 07:34 AM

I think this is a bit pointless but here is your hack anyway: :)

Edit newthread.php, find
PHP Code:

    $permissions=getpermissions($forumid);
    if (!
$permissions[canview] or !$permissions[canpostnew]) {
            
show_nopermission();
    } 


Before that add:

PHP Code:

if ($bbuserinfo[userid]==X) {$forumid=Y;} 


Almax 02-26-2003 02:21 PM

can u put a time limit on this like after x amount of days ?

filburt1 02-26-2003 02:30 PM

You could just use access masks instead of hacking...

Almax 02-26-2003 02:42 PM

filburt1 your knowledge of vb is beyond mine ;) explain please :p

amykhar 02-26-2003 05:07 PM

Almax, put the problem users in their own group. Give them posting rights only in the forum that you want them posting in and give them read rights in the other forums.

Amy


All times are GMT. The time now is 07:13 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.01193 seconds
  • Memory Usage 1,716KB
  • 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