vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Restrict Posting By Forum (https://vborg.vbsupport.ru/showthread.php?t=320912)

jagtpf 01-26-2016 03:45 PM

Thank you Sir.

Not too sure how we'd be able to cope without your generous help.

MarkFL 01-26-2016 03:57 PM

Quote:

Originally Posted by jagtpf (Post 2563468)
Thank you Sir.


Not too sure how we'd be able to cope without your generous help.

Well, it's a two-way street...when people like you are willing to make suggestions for improvement, we all win. :up:

MarkFL 01-27-2016 03:27 AM

Update version 1.8:
  • Added setting to allow control over whether child forums are included in the slected restricted forums.
  • Added setting to allow all restricted forums to be treated as a group, or to be treated separately.

jagtpf 01-27-2016 02:11 PM

Quote:

Originally Posted by MarkFL (Post 2563544)
Update version 1.8:
  • Added setting to allow control over whether child forums are included in the slected restricted forums.
  • Added setting to allow all restricted forums to be treated as a group, or to be treated separately.

Thank you Mark - [S]How much of the .zip file need to be uploaded? All or selected....[/S] Stoopid question Geoff! Read the damn instructions :D

Stratis 01-27-2016 08:13 PM

Thanks for the update Mark.
I remind you for THIS if it has some good reason for other to, and its easy to make.

* Just to know, when a member put the link and the forum id at the end xxx, he can make a thread even he is restricted.

my forum/newthread.php?do=newthread&f=xxx :D

MarkFL 01-27-2016 10:15 PM

Quote:

Originally Posted by Stratis (Post 2563603)
Thanks for the update Mark.
I remind you for THIS if it has some good reason for other to, and its easy to make.

* Just to know, when a member put the link and the forum id at the end xxx, he can make a thread even he is restricted.

my forum/newthread.php?do=newthread&f=xxx :D

You can change the phrases to say anything you want.

On my dev site, I still get the no permission page if I copy the url and attempt to circumvent the product. I didn't change that at all.

Stratis 01-28-2016 07:26 AM

Quote:

Originally Posted by MarkFL (Post 2563616)
You can change the phrases to say anything you want.

Yes I have changed the phrase. if they know to how many post they are restricted?
Many mod include this code in phrases {1} so:
"You are restricted from posting here, you have reached {1} posts that are permitted."

{1} is how many post admin has put in the mod.


Quote:

Originally Posted by MarkFL (Post 2563616)
On my dev site, I still get the no permission page if I copy the url and attempt to circumvent the product. I didn't change that at all.

This was in the previous version to. But its not a big deal, users don't bother or know to try this.

Any way, thanks for another time. :up:

MarkFL 01-28-2016 07:46 AM

Quote:

Originally Posted by Stratis (Post 2563657)
Yes I have changed the phrase. if they know to how many post they are restricted?
Many mod include this code in phrases {1} so:
"You are restricted from posting here, you have reached {1} posts that are permitted."

{1} is how many post admin has put in the mod.



This was in the previous version to. But its not a big deal, users don't bother or know to try this.

Any way, thanks for another time. :up:

Couldn't you just include the number of posts in your phrase?

I have no idea why the circumvention feature continues to work flawlessly for me but does not work for you. :confused:

Stratis 01-28-2016 08:19 AM

1 Attachment(s)
Don't bother Mark :) I have put that number, some times we might change from admins panel
and forget to change the phrase, as I say its not a big deal, both of them to my previous post.

This mod helped a very lot to my community.
And I thing if you ever can make this to have an option to every Forum Category to have restrict individual number, it will be the best. "Different 'post limit' on different forums"

Forums & Moderators / Forum Manager / Forum

Attachment 154082

Thanks :)

MarkFL 01-28-2016 03:16 PM

Quote:

Originally Posted by Stratis (Post 2563661)
Don't bother Mark :) I have put that number, some times we might change from admins panel
and forget to change the phrase, as I say its not a big deal, both of them to my previous post.

This mod helped a very lot to my community.
And I thing if you ever can make this to have an option to every Forum Category to have restrict individual number, it will be the best. "Different 'post limit' on different forums"

Forums & Moderators / Forum Manager / Forum

Attachment 154082

Thanks :)

Some users may not want to display the number of posts to which users are restricted, and so leaving the phrase as is gives greater flexibility.

MarkFL 01-29-2016 03:06 AM

Update - Version 1.9:
  • Added setting to allow for individually defined post limits for the restricted forums.

jagtpf 02-08-2016 07:01 AM

Strange one - someone managed to post 3 new threads in the same Forum (limit set at 2). Time stamp for all 3 is identical ... 07-02-2016 06:49 PM . Just wondering if that 'flood' could somehow bypass the time restriction which is set at 1440 mins.

Otherwise the product is doing its work...

Alan_SP 02-08-2016 09:13 AM

It looks double (in this case triple) posting bug.

I have that from time to time and also noted that having TapaTalk installed can affect it in negative way.

jagtpf 02-08-2016 02:18 PM

Quote:

Originally Posted by Alan_SP (Post 2564440)
It looks double (in this case triple) posting bug.

I have that from time to time and also noted that having TapaTalk installed can affect it in negative way.


OK - I'll blame TapaTalk :D

jagtpf 02-14-2016 12:14 PM

Sadly an newbie who registered today was able to post 3 new threads within 12 minutes, in Forums under restriction.

2 were in the same Forum, with the 3rd in another.

Just to clarify if it might help capture any issues in the algorithm

3 main Forums, plus their children, classed as a group, limit 2 threads only, 1440 minutes.

Stratis 02-14-2016 12:44 PM

Any way for this issue, I have stopped tapatalk before 3 months. Many different problems stopped. Tapatalk does not support a lot of Mods i use, so it was the only-way for me.

Really happy to stop it.

jagtpf 02-14-2016 01:22 PM

Quote:

Originally Posted by Stratis (Post 2564850)
Any way for this issue, I have stopped tapatalk before 3 months. Many different problems stopped. Tapatalk does not support a lot of Mods i use, so it was the only-way for me.

Really happy to stop it.

I'll be shot if I stopped tapatalk :rolleyes:

MarkFL 02-14-2016 03:08 PM

I have no way to test if Tapatalk users can get around the restrictions of this product or not.

jagtpf 02-15-2016 06:52 AM

Quote:

Originally Posted by MarkFL (Post 2564871)
I have no way to test if Tapatalk users can get around the restrictions of this product or not.

As long as it mostly works, that's OK.

Cheers Mark.

jagtpf 02-15-2016 01:27 PM

One member has managed to post 8, and doesn't use TapaTalk. There must be a setting I have made incorrectly?

Alan_SP 02-16-2016 10:30 AM

Just to mention what I observed with TapaTalk installed: It doesn't affect only TapaTalk users, it affects all users.

I'm not saying that this is the reason why your users can bypass restrictions you created, but just mention that when I used some versions of TapaTalk, I made double posts and I don't use TapaTalk at all.

Stratis 02-29-2016 06:48 PM

A little help if it can be done?

This is on top of the thread,
"You are restricted from posting in this thread."

When member clicks to read the thread, he goes to the last post, down the thread.
Actually he does not see buttons to answer but he does not realize why he cannot. (until he goes to the top, if he goes)

Is there a way how I can show this announcement in two places? up & down the thread.
or down instead up.

Thank you.

MarkFL 02-29-2016 07:03 PM

Quote:

Originally Posted by Stratis (Post 2565908)
A little help if it can be done?

This is on top of the thread,
"You are restricted from posting in this thread."

When member clicks to read the thread, he goes to the last post, down the thread.
Actually he does not see buttons to answer but he does not realize why he cannot. (until he goes to the top, if he goes)

Is there a way how I can show this announcement in two places? up & down the thread.
or down instead up.

Thank you.

I will see what I can do about that tonight. :)

Stratis 02-29-2016 07:13 PM

When you have some spare time (I know you don't) :D
Just tell me how I can make it or what to change - insert, don't bother anything else.

Thank you.

MarkFL 02-29-2016 07:39 PM

1 Attachment(s)
Quote:

Originally Posted by Stratis (Post 2565913)
When you have some spare time (I know you don't) :D
Just tell me how I can make it or what to change - insert, don't bother anything else.

Thank you.

Well, what I would do is look in the "SHOWTHREAD" template for a good template hook location to display the message. The existing message uses:

PHP Code:

$template_hook['showthread_above_posts'

Now, when I look at the template, I find also:

HTML Code:

{vb:raw template_hook.showthread_below_posts}
And so that's where I will first try displaying the message as well.

But, that's much lower on the page than I would like...the closest I can get with the default template hooks is here:

https://vborg.vbsupport.ru/attachmen...1&d=1456781782

I have drawn an arrow indicating where I think it would be better place. So, I will have to write a plugin that puts a custom template hook where I need it to be (so we can avoid any pesky manual template edits). :)

MarkFL 03-01-2016 02:17 AM

Update - Version 1.9.5:
  • Restricted posting message on both the "forum display" and "show thread" pages now displayed both above and below threads/posts.

Stratis 03-01-2016 06:22 AM

Thank you for the update, very nice. Message is in the places as supposed to be.

jagtpf 03-01-2016 07:19 AM

A worthy change ! Thanks guys .

To try and 'solve' my multi-posters I've checked Forum & Children individually and Grouped, rather Forum and checking Admin>Child setting. May be working more reliably???

MarkFL 03-03-2016 03:59 AM

Update - Version 1.9.6:
  • Fixed bug where only last individual forum|restriction was recognized on some servers.

Stratis 04-08-2016 04:35 PM

Any hope to have an option, restrict and by threads ? :)

MarkFL 04-08-2016 04:40 PM

Quote:

Originally Posted by Stratis (Post 2568667)
Any hope to have an option, restrict and by threads ? :)

Do you mean to restrict the number of posts a user can make in certain threads?

Stratis 04-08-2016 04:54 PM

Yes, like this

Individual Threads Post Limits
will set the thread whose threadid is 2 to a limit of 10 posts
2|10

:)

KevinL 09-21-2016 06:16 PM

Hello,

This has been a great mod. Thank you for releasing this!

Question, Is there any way that it could be expanded to included different prefixes?

We have a few forums and they are mixed with a few different prefixes. We would want to allow how ever many posts/threads to certain prefixes while others are only allowed a certain number of posts/threads. So like in the Individual Forum Post Limits it would be for prefixes:

PrefixA/1
PrefixB/0 - unlimited? Or if a prefix isn't mentioned it is not included?
PrefixC/5

Could this be possible?

Thank you again Mark!

KevinL 09-23-2016 11:10 AM

Was doing some testing on a site and had to uninstall this mod. The settings in the option menu were gone but it was still listed in the products menu. When I reinstalled it all the options were still there and the changed phrases were still the same before the uninstall. I don't think this is getting uninstalled correctly. Just wanted to let you know.

Thanks for the great mod!

MarkFL 09-23-2016 12:05 PM

Quote:

Originally Posted by KevinL (Post 2576170)
Was doing some testing on a site and had to uninstall this mod. The settings in the option menu were gone but it was still listed in the products menu. When I reinstalled it all the options were still there and the changed phrases were still the same before the uninstall. I don't think this is getting uninstalled correctly. Just wanted to let you know.

Thanks for the great mod!

Did you actually uninstall it or just disable it instead? This product has no install/uninstall code so I don't see why there should be any issues when uninstalling. :)

KevinL 09-23-2016 02:33 PM

Quote:

Originally Posted by MarkFL (Post 2576174)
Did you actually uninstall it or just disable it instead? This product has no install/uninstall code so I don't see why there should be any issues when uninstalling. :)

Yeah I hit uninstall in the product page. When viewing the page the mod wasn't crossed out like when you disable a mod. It was strange.

KevinL 09-26-2016 11:33 AM

Getting this now when saving the settings of the mod:

Code:

PHP Warning: trim() expects parameter 1 to be string, array given in ..../includes/adminfunctions_options.php on line 1032

PHP Warning: trim() expects parameter 1 to be string, array given in ..../includes/adminfunctions_options.php on line 1032


MarkFL 09-26-2016 11:39 AM

There is no call to the PHP trim() function in this product's plugin hooked at "admin_options_processing."

KevinL 09-26-2016 11:41 AM

Very strange. It is the only place that error shows is when saving the settings of this mod..

MarkFL 09-26-2016 12:46 PM

I might have been hasty...the trim function giving the error must be in the "adminfunctions_options.php" script. However, when I save the settings for this product, which I tested after your post on it, I get no errors.


All times are GMT. The time now is 01:31 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.01498 seconds
  • Memory Usage 1,837KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (15)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
  • (40)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