Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2003, 12:10 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default set max threads by usergroup in forum

ok heres the deal...

i have a set of forums that contains many sub forums. I want to set a max amount of overall threads that a member can start depending on their usergroup. Say a member of usergroup 8 (max set at 6) has his six threads in this group of forums then he has to delete one before starting another.

This limit only applies to the selected forums, not the entire board.

Any ideas???

Would somebody give me a hand here??
Reply With Quote
  #2  
Old 04-04-2003, 12:24 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I'm not wrong, the code has been given in this forum (hack requests and probably by me), please give it a shot by searching here.
Reply With Quote
  #3  
Old 04-04-2003, 09:43 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm, I searched for posts by you that contained the word "thread", got 7 pages of results (for your own intrest ) and found the following which are not quite what i was looking for,
https://vborg.vbsupport.ru/showthrea...ghlight=thread
https://vborg.vbsupport.ru/showthrea...ghlight=thread
https://vborg.vbsupport.ru/showthrea...ghlight=thread

i will keep looking........
Reply With Quote
  #4  
Old 04-05-2003, 06:34 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess writing one is easier than searching for the old one

Here you go (not tested, holler if it does not work and I'll fix it)
Attached Files
File Type: txt usergroup can post y threads in forum z.txt (1.1 KB, 23 views)
Reply With Quote
  #5  
Old 04-05-2003, 07:03 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks heaps, i hope one day i have the knoledge to help others more often.

I shall install soon and let you know.
Reply With Quote
  #6  
Old 04-05-2003, 09:02 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep that works .......

How do i include the subforums within "Z" ?

example no. 6 is my "category" forum(main parant), and there are 20 subforums underneath it.

What do i have to add to limit a member to only starting 5 threads maximum in either no.6 or any of the sub forums.

The present code will limit the max thread allowed to only "Z"

Thanks
Reply With Quote
  #7  
Old 04-24-2004, 08:46 PM
koon koon is offline
 
Join Date: Apr 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This code doesn't seem to work with Vbulletin 3.x, Logician or anyone else; would you know how to get this working for 3.x ? I would be very grateful for this code...
Reply With Quote
  #8  
Old 04-24-2004, 09:04 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by koon
This code doesn't seem to work with Vbulletin 3.x, Logician or anyone else; would you know how to get this working for 3.x ? I would be very grateful for this code...
here you go:
Attached Files
File Type: txt usergroup can post y threads in forum z VB3.txt (1.1 KB, 19 views)
Reply With Quote
  #9  
Old 04-25-2004, 12:54 AM
koon koon is offline
 
Join Date: Apr 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you logician!
Reply With Quote
  #10  
Old 04-25-2004, 03:20 PM
koon koon is offline
 
Join Date: Apr 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician, would threads made by a user before I added this code count towards it? Because it seems to let a user post another thread even though they already have one in a certain forum, but after that it kicks in for em.

I'm not sure if this is just a mistake in the code, or if it's because it doesn't count old threads, or does it only work per day?
Reply With Quote
Reply


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 07:47 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.04798 seconds
  • Memory Usage 2,274KB
  • Queries Executed 14 (?)
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
  • (1)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete