Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Can't Use Private Messages Before X posts Details »»
Can't Use Private Messages Before X posts
Version: 1.0.1, by Developer Developer is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.6.8 Rating:
Released: 08-14-2007 Last Update: Never Installs: 126
Uses Plugins
 
No support by the author.

Can't Use Private Messages Before X posts.

Version 1.0.1
Description::.

This is a ported version from my hack to vb3.5.4
This hack allows to you to put a certain number of posts that a user should have before Use Private Messages but the can still send to staff groups .. admin, moderators, super moderators
[Hack Features::.
1-easy yo install
2-members can read pms but can't send
3-but they can still send pms to saff members ...
4-admin Controllable
Admin Controllable
From vBulletin Options ==> vBulletin Options ==> Can't Use Private Messages Before X posts , Enable/Disable the hack. AND Posts Count.]
Installation::.
1-Import The Product.
History::.
1.0.0 On 15. Aug 2007 Initial Version.
1.0.1 On 19. Aug 2007 Slight bugfix.
Hack Languages
English
Details
1 plugin , 6 phrases , 3 options

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 11-24-2007, 05:20 PM
vitrag24's Avatar
vitrag24 vitrag24 is offline
 
Join Date: Nov 2006
Location: India
Posts: 639
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

**EDITED**
Working.
Thanks.

But i would like to make an upgrade in which users even can't see pm window .as if users see pm window and click on send and see msg they can not use pm then they will be frustrated if pm was longer as they wasted itme in writing.
Reply With Quote
  #33  
Old 11-25-2007, 12:44 PM
ParsianSat_Net ParsianSat_Net is offline
 
Join Date: Sep 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is doing?
Reply With Quote
  #34  
Old 12-09-2007, 07:21 AM
DPtheGod's Avatar
DPtheGod DPtheGod is offline
 
Join Date: May 2007
Location: Everett, WA
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is working fine on my 3.6.8.

Nice hack. Saved me time of editing usergroup promotions!
Reply With Quote
  #35  
Old 01-29-2008, 05:02 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it still work in 3.7?
Reply With Quote
  #36  
Old 02-06-2008, 01:09 PM
Julrou Julrou is offline
 
Join Date: Jul 2007
Location: France
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
Does it still work in 3.7?
Yes, of course.

But it still doesn't work with members already registered on the board, it works only with the new members...
Reply With Quote
  #37  
Old 02-08-2008, 11:41 AM
tanujdude91 tanujdude91 is offline
 
Join Date: Nov 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we disable this option for some usergroups???
Reply With Quote
  #38  
Old 02-14-2008, 08:39 PM
AngelBlue AngelBlue is offline
 
Join Date: Jun 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest :

(1) You should add a URL tag to your product, so that they can find this page again more easily:
PHP Code:
<url>https://vborg.vbsupport.ru/showthread.php?t=155308</url> 
(2) That you consider implementing a version of this hack simply with template changes.

Example: I find that by adding the following to the beginning :
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6,4,2,1,3,9,8,18,13,14,15,10))">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><TR><TD class="tcat">Sorry, you cannot send private messages.</TD></TR>
<TR><TD>
<BR><B>This is usually caused by a low post count</b>, although other possible causes are :
<UL>
<LI>A negative reputation score</LI>
<LI>A recent infraction</LI>
<LI>Your account awaiting email or admin activation</LI>
</UL>
<BR>To contact the webmaster or a moderator, you should instead post a new thread in <a href="http://www.ourdomainname.org/forum/forumdisplay.php?f=XXX">the requests forum</a>.
</TD></TR></TABLE>
<else />
and the following to the end :
Code:
</if>
of the "pm_newpm" template, I can very effectively stop certain usergroups from sending PMs. Combined with using the "promote based on posts" options in the promotions system, this can be a very effective alternative to your hack. Not only does it stop them seeing the "send pm" box at all (as opposed to letting them fill it out, but then giving them an error when they try to use it), but it has less overhead, too.
The downsides of my versions are :
(1) not as flexible as having php code to define who can and who can't send PMs
(2) can't know who you are sending the PMs to, unfortunately... so not very effective for blocking the sending of PMs to all but certain people. I get around this restriction by having a "requests" forum which anyone can post a thread in and reply to their own thread in... but only moderators can see or reply to other peoples' threads. This hack still lets the affected users be *sent* pms... so staff can contact the users concerned via PMs... the users are just forced to use a requests forum or email if they want to talk back.

(3) Have you considered having a pre-filled in "to" field in the send_pm template?
Say, you could make a product that, when someone loads the new_pm page, creates a $restricted_pm_html variable, and populates it with a drop-down menu of the names of the administrators or people designated to handle pms by new/restricted users.
If the template detected the user being restricted and, instead of giving them a free text entry box for the recipient name, simply gave them a drop-down menu... that could be a very effective way of limiting PMs.

For example, if you want people with zero posts to only be able to send PMs to the administrator, you could take :
Code:
					<if condition="$show['popups']">
					<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js?v=$vboptions[simpleversion]"></script>
					</if>
					<div>$vbphrase[recipient_usernames]</div>
					<div id="pmrecips"><textarea id="pmrecips_txt" name="recipients" rows="<if condition="is_browser('mozilla')">1<else />2</if>" cols="50" tabindex="1">$pm[recipients]</textarea></div>
					<if condition="$show['popups']">
						<div class="vbmenu_popup" id="pmrecips_menu" style="display:none; z-index:50"></div>
						<script type="text/javascript">
						<!--
						vbmenu_register('pmrecips', true);
						recip_sugg = new vB_AJAX_NameSuggest('recip_sugg', 'pmrecips_txt', 'pmrecips');
						recip_sugg.allow_multiple = true;
						//-->
						</script>
					</if>
					<span style="display:none" onclick="return swapbcc(this);" id="bccspan1">[<a href="#">$vbphrase[bcc]</a>]</span>
					<span id="bccspan2">$vbphrase[bcc] $vbphrase[recipient_usernames]<br /></span>
					<div id="bccpmrecips"><textarea id="bccpmrecips_txt" name="bccrecipients" rows="<if condition="is_browser('mozilla')">1<else />2</if>" cols="50" tabindex="1">$pm[bccrecipients]</textarea></div>
					<if condition="$show['popups']">
						<div class="vbmenu_popup" id="bccpmrecips_menu" style="display:none; z-index:50"></div>
						<script type="text/javascript">
						<!--
						vbmenu_register('bccpmrecips', true);
						bccrecip_sugg = new vB_AJAX_NameSuggest('bccrecip_sugg', 'bccpmrecips_txt', 'bccpmrecips');
						bccrecip_sugg.allow_multiple = true;
						<if condition="$show['bcclink']">
						fetch_object('bccpmrecips').style.display = 'none';
						fetch_object('bccspan2').style.display = 'none';
						fetch_object('bccspan1').style.display = '';
						function swapbcc(obj)
						{
							obj.style.display = 'none';
							fetch_object('bccpmrecips').style.display = '';
							fetch_object('bccspan2').style.display = '';
							return false;
						}
						</if>
						//-->
						</script>
					</if>
and put the following before it :
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3,4,etc)">
<input type="text" name "pmrecips" value="ADMINNAME" DISABLED>
<input type="hidden" name="bccrecipients" value="">
<else />
and the following after it :
Code:
</if>
That limits members of those groups to sending PMs only to ADMINNAME.
Reply With Quote
  #39  
Old 04-15-2008, 04:23 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Surprised this mod is not more advanced and used than it is. And I am guessing the feature did not make it into vB 3.7?
Reply With Quote
  #40  
Old 04-15-2008, 07:23 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The simplest form, blocking users with 0 posts from sending PMs, can be accomplished by inserting this at the top:

Code:
<if condition="$bbuserinfo[posts] < 1">
  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
      <td class="tcat">Send a Private Message</td>
    </tr>

  <tr>
    <td class="panelsurround" align="center">
      <div class="panel">
<p><b>Because of concerns with unsolicited e-mail, we are now asking that visitors to our forums participate in our forum before sending private messages.</b><br /><br />
Please introduce yourself and tell us a little bit about yourself before sending private messages to other members.</p>
      </div>
    </td>
  </tr>
<else />
and this at the bottom:

Code:
</if>
of the pm_newpm template.
Reply With Quote
  #41  
Old 05-19-2008, 02:58 AM
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

stilll ok wid vb3.7 ?
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 06:02 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.06455 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
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
  • (7)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete