Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Users Awaiting Email Confirmation - Selective PMs Details »»
Users Awaiting Email Confirmation - Selective PMs
Version: 1.0, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 12-05-2005 Last Update: Never Installs: 18
Uses Plugins
 
No support by the author.

What does this do?
This add-on blocks members of the "Users Awaiting Email Confirmation" usergroup from sending PM's to anyone except members of staff (Mods, Supermods and Admins).

Installation
You need to make sure that the "Users Awaiting Email Confirmation" usergroup have permission to send PMs. Do this using the Usergroup Editor in the AdminCP.

Then install the Product XML as normal.

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!

Show Your Support

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

Comments
  #2  
Old 12-06-2005, 01:30 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great work
Reply With Quote
  #3  
Old 12-06-2005, 02:07 PM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A must product, at least for me
Reply With Quote
  #4  
Old 12-06-2005, 02:51 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work!
Reply With Quote
  #5  
Old 12-06-2005, 03:32 PM
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, is it possible to extend this to custom usergroups?

Regards
Reply With Quote
  #6  
Old 12-06-2005, 03:41 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From what perspective? If you wish to add additional "staff" usergroups, edit the following line in the plugin:

PHP Code:
$staff_usergroups = array(567); 
Those numbers represent usergroup ids. In this case, mods, supermods and admins. To add a custom usergroup to the "staff usergroup" list, just add it's usergroup id to that.

If you meant that you wish to make other usergroups only be able to PM staff, then look for the following line (the first line of the plugin):

PHP Code:
if ($vbulletin->userinfo['usergroupid'] == 3
Usergroup number 3 is by default the "Users Awaiting Email Confirmation" usergroup. To change this to another usergroup, just change this number to the relevant usergroup id.
Reply With Quote
  #7  
Old 12-06-2005, 03:48 PM
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

thanks for the fast reply. I meant the second one.

Instead of removing the "Users awaiting..." number, can I add other custom usergroups?

For example, usergroup 26
Should it be like this?

if ($vbulletin->userinfo['usergroupid'] == 3, 26) or is that not possible?

Also, is it possible to include a IF statement. For example, if the usergroup is 3, show error confirm email msg and if the usergroup is 26, show different message?

Regards
Reply With Quote
  #8  
Old 12-06-2005, 04:06 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To use 1 additional usergroup, change the line to:

PHP Code:
if (($vbulletin->userinfo['usergroupid'] == 3) or ($vbulletin->userinfo['usergroupid'] == 26)) 
This will check for usergroup 3 and usergroup 26.

To use more usergroups, do something like:

PHP Code:
if (($vbulletin->userinfo['usergorupid'] == 3) or ($vbulletin->userinfo['usergroupid'] == 26) or ($vbulletin->userinfo['usergroupid'] == 99)) 
You can continue to add usergroups in that fashion.

With regards to your second question, there is currently no way to do this within the existing code, but if you send me a PM with the usergroup ids and the text that you want displayed for each one, I will make a custom version for you

Thanks,
Alan.
Reply With Quote
  #9  
Old 12-06-2005, 05:37 PM
kadafi_alive kadafi_alive is offline
 
Join Date: Dec 2004
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again Alan @ CIT

The custom one worked perfectly
Reply With Quote
  #10  
Old 12-06-2005, 05:38 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent news
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:45 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.04454 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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