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)

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 ? :)


All times are GMT. The time now is 11:45 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.01150 seconds
  • Memory Usage 1,741KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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