Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2006, 12:57 AM
Hogwarts Hogwarts is offline
 
Join Date: Jun 2006
Location: Hogwarts
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Member Can't View Replies"

I am going to start developing a Hogwarts (Harry Potter) type vB soon, and I wanted to get some of my ideas out there for hacks. I don't think anything like this exists yet. I would like an add-on permission.

A permission that can be active for different forums. And here is what a normal user would have.

They can view the forum and all the regular default stuff but ...

They can NOT create their own threads (that's already there)

they can reply to the main thread (that's there as well)

Now when people hand in their "homework" I would like all the mods and upper class people to be able to read the threads, but NOT the regular members, so they can't copy and cheat ya know? I'd be nice if the student could see their own post so they knew it went threw, but that doesn't have to be there. though I’m not sure how they would know it went threw?

So yea a permission for "Memeber Can't View Replies"

if that makes since?

Reply with questions if anyone has some.

Edit: I found this, but it's for guests only right?
https://vborg.vbsupport.ru/showthrea...how+first+post

Maybe that could be edited to achive this? Also im not sure if that allows them to reply?
Reply With Quote
  #2  
Old 06-06-2006, 01:06 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is available via usergroup permissions on a per forum basis.

You can set the permissions in the forum for 'can view others threads' to NO which will then only allow them to view the threads that they have created in the forum. You will need to apply this to every usergroup that you wish to hand in homework.

Make sure you set the guest permissions to deny view permissions for that forum too, otherwise they might cotton on to the fact that they can logout and see everything that way and cheat
Reply With Quote
  #3  
Old 06-06-2006, 01:21 AM
Hogwarts Hogwarts is offline
 
Join Date: Jun 2006
Location: Hogwarts
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's not what I wanted though, I want them to be able to view the thread, just not the replys of other members.

So the teacher (mod/mega mod/admin ect) would create a homework assignment thread, and have a member reply.

Understand?

if worst comes to worst i'll just make them PM the teachers.
Reply With Quote
  #4  
Old 06-06-2006, 01:35 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I was imagining a different setup.

No problem

The modification that you have linked to will work, with a little modification of it's own.

Replace
Code:
!$bbuserinfo['userid']
with
Code:
in_array($bbuserinfo['usergroupid'], array(5,6,7))
If you have any additional usergroups that you wish to see the posts, add the id number to the list. Any usergroups not listed here will not meet the condition and so will not see the posts. I have allowed Moderators, Super Moderators and Administrators to view the posts in the code given.
Reply With Quote
  #5  
Old 06-06-2006, 01:51 AM
Hogwarts Hogwarts is offline
 
Join Date: Jun 2006
Location: Hogwarts
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At the moment my vB licance is up, and I only have a 3.0.6 *I have an owned licance, its just i haven't had the money to upgrade to 3.5+ and I am going to in a day or two, I thought due to the fact that it was a templat mod i'd try it on my localhost vB i had to mess around with, but I got this error.

Code:
The following template conditional expression contains function calls:

<if condition="$post[postcount] > XX andin_array($bbuserinfo['usergroupid'], array(5,6,7))">

Function Name Usage in Expression 
andin_array andin_array($bbuserinfo[\'usergroupid\'], array(5,6,7) 

With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()
Reply With Quote
  #6  
Old 06-06-2006, 01:54 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make sure you have a space between the and and the in_array
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 01:40 PM.


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.03960 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete