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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2009, 05:22 PM
spicywedge spicywedge is offline
 
Join Date: Jun 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I need help restricting PM's to moderator and users

Hi

I am looking for a way that I can restrict users from sending PM's to each other but at the same time still allow them to send and receive PM's to and from the admin staff on my board.

Is there a way that this can be done or am I stuck with either keeping the PM system on/off for everyone. Any help is appreciated.
Reply With Quote
  #2  
Old 06-16-2009, 12:10 AM
Outbackmark's Avatar
Outbackmark Outbackmark is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this on a couple of boards, turn your PMs off then create a forum with permissions set to regular members only able to see thier own threads.
Change the PM links to a newpost in that forum (posbit, user cp and profile etc)
I can give you the template changes if you need them.
This setup allows Mods and Admins to see all threads in the "Contact Staff" forum and members only see their own threads - works like a charm and stops all the PM rubbish in it's tracks!
Reply With Quote
  #3  
Old 06-16-2009, 01:23 PM
spicywedge spicywedge is offline
 
Join Date: Jun 2008
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be brilliant if you could send that on. It is proving a real pain on my board.
Reply With Quote
  #4  
Old 06-17-2009, 07:32 AM
Outbackmark's Avatar
Outbackmark Outbackmark is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I will post here and PM it to you -

Forum changes
1. Open your forum manager and create a forum where you would like it, I called mine "Contact the Staff", in the forum setup page set it as follows
Act as Forum - yes
Forum is Active - yes
Forum is Open - yes
The other settings can be set as you would normally do.

Click save then select Set Forum Permissions, click on Registered Users and set the following-
Can View Forum - yes
Can View Thread Content - yes
Can View Others' Threads - no
Can Use Email to Friend - no
Can Download Attachments - yes
Can See Deletion Notices - no
Can See Thumbnails - yes
Can Search Forums- yes
Can Post Threads - yes
Can Reply to Own Threads - yes
Can Reply to Others' Threads - no
Can Edit Own Posts - up to you
Can Delete Own Posts - no
Can Delete Own Threads - no
Can Open / Close Own Threads - no
Can Move Own Threads - no
Can Rate Threads - no
Follow Forum Moderation Rules - yes
The rest I set to no, but does not really matter.
Click save and set the same for other usergroups that you do not wish to be able to see all threads etc. Mine is set so Admins and Mods can see and answer all threads, but this is up to you.

Usergroup permission changes
Turn off PMs for the usergroups concerned in the Usergroup Manager, set stored PMs to 0.


Template Changes

Open your Style Manager and click edit templates on the style you are using, if using more than one you will have to change them all.
Find template MEMERINFO under Memberifo Templates and double click toopen the editor.

Find
Code:
				<if condition="$show['pm']">
					<li class="vbmenu_option"><img src="$stylevar[imgdir_button]/sendtofriend.gif" alt="" class="alt2 inlineimg" /> <a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]" rel="nofollow"><phrase 1="$prepared[username]">$vbphrase[send_private_message_to_x]</phrase></a></li>
				</if>
Replace the link
Quote:
private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]
with a link to newthread in your Contact forum, to get that, open the forum, click New Thread and copy the url before you click submit.
It should look like this http://www.yoursite.url/forum/newthread.php?do=newthread&f=72
Also replace
Quote:
$vbphrase[send_private_message_to_x]
with
Quote:
Contact Staff
or whatever you want to call it.
Click save
When someone clicks it they will be automatically sent to a newthread in the contact forum.

3. Now go the the postbit templates and edit the postbit template and the postbit legacy templates, you need to do the same thing, find the links to newpm, which are in the dropdown menu and replace it as per above, then save the templates.

If you are new to template edits do yourself a favour and download PSPad, it is free and a great editor, before you change the templates copy all the text from your present template into a .txt file and save it on your hard drive, then you can always paste it back in of you run into trouble.
The edited templates will show up in red in the list, so if they are already red it means that there have been edits done to the template and it always is a good thing to save a copy.
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 12:38 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.03386 seconds
  • Memory Usage 2,192KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • 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