vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Can't PM before have x posts in the day (https://vborg.vbsupport.ru/showthread.php?t=177010)

mastba 04-24-2008 04:39 AM

Can't PM before have x posts in the day
 
Hello. I want hack prevent users send pm before x posts per day .

Can any one help me ?

Thanks for you

Lynne 04-24-2008 02:59 PM

Search "posts" "All Mods" "Titles Only" and I find this: Can't Use Private Messages Before X posts

mastba 04-24-2008 11:59 PM

thanks for you I have installed this hack but I want another

" user can't PM before X posts today and tomorrow can't PM before X posts tomorrow "

x = number of his post per day not total posts.

Thanks for you

mastba 05-20-2008 04:16 AM

can any one help me ? :)

Our House 05-20-2008 12:09 PM

You could modify the mod that Lynne linked (pretty sure that's allowed) so that it works the way you want it.

Incidentally, what constitutes "today"? Is it 12am - 12am the user's time, forum time, or server time?

mastba 06-11-2008 10:16 PM

Hello


I edit this code

this is the result of my code ;)

PHP Code:

$userid $_SESSION[userid];
$today  mktime(000date("m"), date("d"), date("Y"));

$userposts $db->query_read("select postid from post where userid=\"$userid\" AND dateline > \"$today\" ");

 
$user_posts $db->num_rows($userposts);
if (
$user_posts $vbulletin->options['devel_cant_pm_posts'])
{
        
// throw the error ... 
        
standard_error(fetch_error('cantusepm'$vbulletin->options['devel_cant_pm_posts'], $userposts)); 


if any one can use and edit them please send to me what you are editing ;)


All times are GMT. The time now is 07:18 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.01007 seconds
  • Memory Usage 1,724KB
  • 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)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