Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2015, 02:47 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 05-02-2015, 02:59 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
SaN-DeeP
  #3  
Old 05-02-2015, 03:16 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah thanks mate. Hope it wont be too difficult, just want it that way in one forum so its pretty small. ^^
Reply With Quote
  #4  
Old 05-02-2015, 03:19 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KGodel View Post
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.
Reply With Quote
Благодарность от:
KGodel
  #5  
Old 05-04-2015, 03:38 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I have an add-on for you to test out.

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.
Attached Files
File Type: zip MarkFL - Show First Post Only v1.0.zip (6.3 KB, 6 views)
Reply With Quote
Благодарность от:
DemOnstar
  #6  
Old 05-04-2015, 04:37 PM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

--------------- 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.
Reply With Quote
Благодарность от:
MarkFL
  #7  
Old 05-05-2015, 12:07 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Files
File Type: zip MarkFL - Show First Post Only v1.0.zip (3.2 KB, 4 views)
Reply With Quote
  #8  
Old 05-05-2015, 12:11 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KGodel View Post
...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.
Reply With Quote
  #9  
Old 05-05-2015, 02:04 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the issue at James' site and have attached the fixed add-on here.
Attached Files
File Type: zip MarkFL - Show First Post Only v1.0.zip (3.2 KB, 4 views)
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 09:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05057 seconds
  • Memory Usage 2,278KB
  • 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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (4)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete