Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Maximum New Threads/Replies per Day Per Usergroup Details »»
Maximum New Threads/Replies per Day Per Usergroup
Version: 1.2, by kall kall is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 09-10-2004 Last Update: 04-17-2005 Installs: 19
DB Changes
 
No support by the author.

Hack Name: Maximum New Threads/Replies per Day Per Usergroup
Hack Version: 1.2
Hack Author: Kall
Release: 11 September 2004
Last Update: 19 April 2005
Description: Restricts specific Usergroups to a maximum number of new threads/replies per defined time (in hours).
Requested by: Several people on vb.org.
Credit for the base of the code goes to 006, from his 'Require X Posts per Day to play in Arcade' hack.

Files to edit: 3 (/admincp/usergroup.php, newthread.php and newreply.php)
New Phrases: 1
Other edits: 4 queries to run.

Update to v1.15: Added ability to restrict New Replies per Usergroup, corrected query. If you installed it prior to this edit, please re-download and apply the newthread modification block again.

Update to v1.2: Made all variables unique (appeneded $nzb to the front of each, so as to avoid conflicts with any other hacks).
Added template modifications to inform members of number fo new threads/replies remaining.
It actually works on newthread for versions above 3.0.4 now! (I had no idea. Sorry.)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-22-2005, 04:25 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interestingly enough, the code looks very familiar.. lol

Thanks for the credit.

If this was also per forum based.. it would be awesome.
Reply With Quote
  #13  
Old 05-31-2005, 02:43 PM
SFishy SFishy is offline
 
Join Date: Nov 2001
Location: NY
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 007
Interestingly enough, the code looks very familiar.. lol

Thanks for the credit.

If this was also per forum based.. it would be awesome.
Very nice hack -- I needed the update (from version 2.x) of this -- nice job!
Reply With Quote
  #14  
Old 07-01-2005, 07:07 PM
fridayweb's Avatar
fridayweb fridayweb is offline
 
Join Date: Jun 2002
Location: F13 Headquarters
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots? I'm having a hard time figuring out where the "You may start $nzbpostsremaining more replies today." goes in my newthread & newreply templates. Thanks!
Reply With Quote
  #15  
Old 07-10-2005, 05:09 AM
Avi_Goldstein Avi_Goldstein is offline
 
Join Date: Jul 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack.

Can it be used if I am interested to resrict members of a usergroup to One posting per their subscription period, which they are permitted to edit at any time and which will be deleted after their subscription period ends ?

Thank You,

Avi
Reply With Quote
  #16  
Old 07-10-2005, 12:35 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Avi_Goldstein
Nice hack.

Can it be used if I am interested to resrict members of a usergroup to One posting per their subscription period, which they are permitted to edit at any time and which will be deleted after their subscription period ends ?

Thank You,

Avi
Well I installed this for a person and I saw it does not work for secondary groups. Only main.
So your subscription would have to change the main group for this to work.
I dont think Kall will do this for me nor care about vb's mood swings but you can ask and see if he will adjust that for you. OR you can do what you ask with the work around I just stated.
Reply With Quote
  #17  
Old 07-12-2005, 02:14 PM
Avi_Goldstein Avi_Goldstein is offline
 
Join Date: Jul 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am interested to help develop it, but not alone, meaning I can work on that project if someone will be doing/discussing it with me. Can ANYONE help, PLEASE :-).

You can send me a private message, I will be checking those often.
Reply With Quote
  #18  
Old 08-03-2005, 07:34 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway to have this work with secondary usergroups?
Reply With Quote
  #19  
Old 08-17-2005, 04:26 PM
dune dune is offline
 
Join Date: May 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by T3MEDIA
Well I installed this for a person and I saw it does not work for secondary groups. Only main.
So your subscription would have to change the main group for this to work.
We use subscriptions with only secondary groups as well. I think it's a better overall method (keep primary groups limited, all additional and flucuating perms come from secondary groups). Here's my idea. Someone smack me if I'm stupid...

For example:
Code:
$nzbmaxnewthread = $DB_site->query_first("
		SELECT maxnewthread AS number FROM " . TABLE_PREFIX . "usergroup 
		WHERE usergroupid=$bbuserinfo[usergroupid] 
	");
Becomes

Code:
$nzbmaxnewthread = $DB_site->query_first("
		SELECT max(maxnewthread) AS number FROM " . TABLE_PREFIX . "usergroup 
		WHERE usergroupid IN $bbuserinfo[membergroupids] 
	");
This way we get the maximum value for the given variable for all the groups the user belongs too. Since a value of zero means no max, only non-zero values will give us a limit.

I want this to apply only in a given forum though, not site wide. I don't know if the forum-permissions will take this into account?
Reply With Quote
  #20  
Old 08-17-2005, 05:59 PM
dune dune is offline
 
Join Date: May 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, found what I needed here:
https://vborg.vbsupport.ru/showthread.php?t=81584
Reply With Quote
  #21  
Old 10-17-2005, 09:43 AM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

any update for 3.5.0..
Reply With Quote
Reply

Thread Tools

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 04:35 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.05781 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete