vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Maximum New Threads/Replies per Day Per Usergroup (https://vborg.vbsupport.ru/showthread.php?t=69308)

007 04-22-2005 04:25 AM

Interestingly enough, the code looks very familiar.. lol

Thanks for the credit.

If this was also per forum based.. it would be awesome. :)

SFishy 05-31-2005 02:43 PM

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!

fridayweb 07-01-2005 07:07 PM

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!

Avi_Goldstein 07-10-2005 05:09 AM

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

T3MEDIA 07-10-2005 12:35 PM

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.

Avi_Goldstein 07-12-2005 02:14 PM

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.

T3MEDIA 08-03-2005 07:34 AM

Anyway to have this work with secondary usergroups?

dune 08-17-2005 04:26 PM

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?

dune 08-17-2005 05:59 PM

Nevermind, found what I needed here:
https://vborg.vbsupport.ru/showthread.php?t=81584

Ghanem 10-17-2005 09:43 AM

Hi,

any update for 3.5.0..


All times are GMT. The time now is 01:46 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.01001 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete