Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2013, 04:26 PM
coolbreeze86 coolbreeze86 is offline
 
Join Date: Jan 2013
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need a Private Message Mod that work like this

Is there is any mod that works like this,

Minimum Posts needed (say 10 posts in the last 30 days) To read a PM sent by other members or to Send PM to other members.

I had seen some vbulletin board, but doesn't know exactly which mod is doing working like this. Help me friends!
Reply With Quote
  #2  
Old 08-02-2013, 04:43 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Advanced Permissions Based on Post Count

https://vborg.vbsupport.ru/showthread.php?t=233979
Reply With Quote
  #3  
Old 08-02-2013, 05:14 PM
coolbreeze86 coolbreeze86 is offline
 
Join Date: Jan 2013
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for your reply. i need for particular x days, just asked there. hope i will get.
Reply With Quote
  #4  
Old 08-02-2013, 07:40 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This guy:

https://vborg.vbsupport.ru/member.php?u=369511

Created several time based permissioning mods. You might have some luck sending him a PM.
Reply With Quote
  #5  
Old 08-02-2013, 07:46 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this one https://vborg.vbsupport.ru/showthread.php?t=274283 does that help?
Reply With Quote
Благодарность от:
coolbreeze86
  #6  
Old 08-03-2013, 01:58 PM
coolbreeze86 coolbreeze86 is offline
 
Join Date: Jan 2013
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no the above said mods doesn't work like what i mean..

still waiting friends...
Reply With Quote
  #7  
Old 08-04-2013, 03:31 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coolbreeze86 View Post
no the above said mods doesn't work like what i mean..

still waiting friends...
This guy I linked you too earlier might happily code this for you and release it to the community. Why don't you PM him?

https://vborg.vbsupport.ru/showpost....83&postcount=4
Reply With Quote
  #8  
Old 08-04-2013, 10:55 AM
mokujin's Avatar
mokujin mokujin is offline
 
Join Date: Oct 2005
Location: Czech
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if it's what you need but try this code for hook private_start

PHP Code:
$lastdays 30// count posts from last 30 days
$lastposts 10// need 10 posts from last 30 days to be able to read/send PMs

$time TIMENOW - (86400 $lastdays);

$postcount $vbulletin->db->query_first_slave("SELECT COUNT(*) AS posts 
        FROM " 
TABLE_PREFIX "post
        WHERE userid = " 
$vbulletin->userinfo['userid'] . "
        AND dateline > " 
$time "
    "
);

if (
$postcount['posts'] < $lastposts)
{
    
print_no_permission();

Reply With Quote
2 благодарности(ей) от:
coolbreeze86, Max Taxable
  #9  
Old 08-04-2013, 04:32 PM
coolbreeze86 coolbreeze86 is offline
 
Join Date: Jan 2013
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
This guy I linked you too earlier might happily code this for you and release it to the community. Why don't you PM him?

https://vborg.vbsupport.ru/showpost....83&postcount=4
I had asked him, but he told me that, "he won't do coding for vb anymore"

--------------- Added [DATE]1375637677[/DATE] at [TIME]1375637677[/TIME] ---------------

Quote:
Originally Posted by mokujin View Post
Not sure if it's what you need but try this code for hook private_start

PHP Code:
$lastdays 30// count posts from last 30 days
$lastposts 10// need 10 posts from last 30 days to be able to read/send PMs

$time TIMENOW - (86400 $lastdays);

$postcount $vbulletin->db->query_first_slave("SELECT COUNT(*) AS posts 
        FROM " 
TABLE_PREFIX "post
        WHERE userid = " 
$vbulletin->userinfo['userid'] . "
        AND dateline > " 
$time "
    "
);

if (
$postcount['posts'] < $lastposts)
{
    
print_no_permission();

Thanks for your reply, Hope you understood my request, may i know how to add this to my coding to get worked.
Reply With Quote
  #10  
Old 08-04-2013, 04:49 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by coolbreeze86 View Post
I had asked him, but he told me that, "he won't do coding for vb anymore"
Well, that sucks and it's happening more and more. Hope you find what you need.
Reply With Quote
Благодарность от:
coolbreeze86
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04234 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete