Restrict Posts Per Board

Started by vbgamer45, January 02, 2013, 01:34:29 PM

Previous topic - Next topic

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Marina3

On smf 2.1.3
An error has occurred
Token verification failed. Please go back and try again.

Shades.

Quote from: Marina3 on January 05, 2023, 03:35:29 AMOn smf 2.1.3
An error has occurred
Token verification failed. Please go back and try again.

Quote from: vbgamer45 on December 25, 2022, 11:10:13 PMUntested for 2.1

COMPATIBLE WITH 2.0.3, 2.0.8, 2.0.9, 2.0.15, 2.0.18 ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Steve

#63
Quote from: vbgamer45 on December 25, 2022, 11:10:13 PMUntested for 2.1
Just tested it and tried to install with emulation but it gives a significant error during the installation testing process. Just an FYI.

In Sources/Post.php find:

$boards = boardsAllowedTo('post_new');

Replace with:

if(isset($modSettings['rp_mod_enable']) && !empty($modSettings['rp_mod_enable']) && isset($modSettings['rp_mod_enable_calendar']) && !empty($modSettings['rp_mod_enable_calendar']) && $modSettings['rp_restrict_method'] === 'topics') {
$boards_to_exclude = RP_isAllowedToPostEvents();
$boards = array_merge(array_diff($boards, $boards_to_exclude), array_diff($boards_to_exclude, $boards));
}

DO NOT pm me for support!

vbgamer45

Updated for SMF 2.1.x  8)
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

MrPython

Quote from: Marina3 on January 05, 2023, 03:35:29 AMOn smf 2.1.3
An error has occurred
Token verification failed. Please go back and try again.

2.1.3 support. Check for updates.

Marina3

How to restrict both new topics and new replies at the same time?
It is necessary to restrict both limit the number of topics and the number of replies.
For example, make restrict 10 topics and 20 replies at the same time?

Marina3

How to set the Restrict posts for the all forum as a whole, and not per individual boards?

vbgamer45

No way to do that. You have to do each board
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: