vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Restrict posting after hours? (https://vborg.vbsupport.ru/showthread.php?t=302434)

viper357 09-19-2013 05:41 AM

Restrict posting after hours?
 
Hi, I've searched but can't seem to find anything that does this, I need a function whereby I can prevent a member from posting during a certain time period. Reason being is one of our highly respected members that is very valuable to the forum tends to make a lot of stupid posts in the early hours when he's been drinking, so I want to be able to prevent him from making posts between 10pm and 6am for example. :o Thanks. :)

BirdOPrey5 09-20-2013 11:35 AM

This is for VB4 but Re-Usable Code- https://vborg.vbsupport.ru/showthread.php?t=298126

If anyone wants to try to convert it to VB3 be my guest, otherwise I will see what I can do when I'm out of the hospital... Assuming all goes well today.

ozzy47 09-20-2013 11:38 AM

Wait, what, in the hospital??

BirdOPrey5 09-20-2013 11:41 AM

Yeah... having issues with massive kidney stones- been in and out the last month. Today they plan to put a drain in my kidney through my back to let it drain (and an infection drain) and will operate in a few weeks.

Hope to be home later today, been here over a week on this stay already.

If I were home I would have converted this to VB3, I think I put in some VB3 code thinking I would do it eventually.

The main issue is going to be the data type used in the Admin CP settings (the expandable array) isn't part of VB3, so it will need to be just a big multi-line text box.

ozzy47 09-20-2013 11:50 AM

Man Joe that sucks, I hope all goes well for you.

viper357 09-20-2013 03:55 PM

Thanks BOP5, get well soon. :)

It would be nice if it could just prevent him from posting instead of actual banning, I think that would be quite upsetting and may alienate the person, whereas an explanation with a simple time restriction to prevent posting might be better, not sure if it's possible though? Thanks. :)

BirdOPrey5 09-20-2013 06:11 PM

You can move them to a usergroup without permission to post rather than be banned.

I was wrong, the admin cp code does work on VB 3.x... so a vb3 version should be fairly easy.

CAG CheechDogg 09-21-2013 05:24 AM

Oh snaps BOP5, hope you get better my Friend ! ... You got this !

BirdOPrey5 09-27-2013 02:00 PM

I didn't forget about this... Unfortunately VB3 lacks the hook VB4 has and means this pretty much needs a major rewrite to work on VB3 best I can tell.

viper357 09-27-2013 05:54 PM

Thank you. :)


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