vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Reply but not View (https://vborg.vbsupport.ru/showthread.php?t=318524)

KGodel 05-02-2015 02:47 PM

Reply but not View
 
I have a situation I'd like to be able to make happen but I am unsure if it can be done using the current permissions or if there is a mod, so here it is:

I'd like a thread's first post and poll to be viewed by all members and have all members have the ability to vote in the poll. I want everyone to be able to reply but only specific usergroups to actually view the replies. Any ideas?

MarkFL 05-02-2015 02:59 PM

I think that would be doable with a template edit...I will see what I can do with this soon, unless someone beats me to it. :D

KGodel 05-02-2015 03:16 PM

Ah thanks mate. Hope it wont be too difficult, just want it that way in one forum so its pretty small. ^^

MarkFL 05-02-2015 03:19 PM

Quote:

Originally Posted by KGodel (Post 2544685)
Ah thanks mate. Hope it wont be too difficult, just want it that way in one forum so its pretty small. ^^

Okay, I will create a mod so you can control which forum(s) this will affect. I don't foresee this being difficult, but you never know...however, I will give it my best. :D

MarkFL 05-04-2015 03:38 PM

1 Attachment(s)
Okay, I have an add-on for you to test out. :D

1.) Download and extract the attached zip file.

2.) Upload the contents of the "upload" folder to your forum's root folder.

3.) Follow:

AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

4.) Follow:

Settings ► Options ► MarkFL: Show First Post Only v1.0

5.) Enable the add-on by setting "Product Enabled?" to "Yes."

6.) Choose the usergroup(s) you wish to exclude.

7.) Choose whether you want the product to act globally, or in certain forums only.

8.) Save settings.

Test it out, and let me know if there are any problems or changes you would like. :)

KGodel 05-04-2015 04:37 PM

Awesome Mark! I will do this as soon as I get home from work a bit later! :D

--------------- Added [DATE]1430780212[/DATE] at [TIME]1430780212[/TIME] ---------------

Tested. The mod does not seem to be working. Settings: Not all forums, selected one forum, exempted one usergroup, everyone could still see replies.

MarkFL 05-05-2015 12:07 AM

1 Attachment(s)
I have rewritten the add-on to make it much more efficient. There is no external PHP file anymore, so all you need to do to install this is:

1.) Download and extract the attached zip file.

2.) Follow:

AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product.

Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.

Click "Import"

4.) Follow:

Settings ► Options ► MarkFL: Show First Post Only v1.0

5.) Enable the add-on by setting "Product Enabled?" to "Yes."

6.) Choose the usergroup(s) you wish to exclude.

7.) Choose whether you want the product to act globally, or in certain forums only.

8.) Save settings.

Test it out, and let me know if there are any problems or changes you would like. :D

MarkFL 05-05-2015 12:11 AM

Quote:

Originally Posted by KGodel (Post 2544853)
...Tested. The mod does not seem to be working. Settings: Not all forums, selected one forum, exempted one usergroup, everyone could still see replies.

I just now noticed this reply...do you use "postbit_legacy" on your site or "postbit?" I have coded the add-on assuming "postbit_legacy" is being used.

MarkFL 05-05-2015 02:04 AM

1 Attachment(s)
I found the issue at James' site and have attached the fixed add-on here. :D


All times are GMT. The time now is 09:06 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.01066 seconds
  • Memory Usage 1,731KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete