Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Secret Messages to your own usergroup Details »»
Secret Messages to your own usergroup
Version: 1.00, by grog6 grog6 is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 04-26-2003 Last Update: Never Installs: 15
 
No support by the author.

This hack will allow you to send (when you create a new post) a secret message to the usergroup you want. You can put a secret message for an administrator via the new post, but you can also add a different message for supermoderators or moderators in the same post!!! :-)

Files to modify : 4
Templates to modify : 4
SQL Queries to run : 2


Ce hack vous permet d''inserer quand vous postez une nouveau message (post ou thread) d'ajouter une partie ou vous pouvez choisir de faire passer un message aux usergroups que vous voulez. Vous pouvez faire passer un message aux administrateurs via le post que vous creez, mais egalement un different message aux super modos ou modos via ce meme post !! :-)

Fichiers a modifier : 4
Templates a modifier : 4
Requetes SQL a executer : 2


[HIGH]Thx to Hellsatan for the translation and the dialog You're a cool guy
Merci a Hellsatan pour la traduction et le dialogue sur MSN, t qqun de bien [/HIGH]

:banana:

HERE IS THE ENGLISH VERSION
Voici la version anglaise

Show Your Support

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

Comments
  #22  
Old 04-29-2003, 09:01 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want admins to see all private messages, just replace the modification to add in the admin/functions.php by

PHP Code:
//      FUNCTION TO VERIFY USERGROUP BY GROGINOU   
      
$usergroupaffich explode(",",$post[secret2]);
      
$nb=-1;
      while (list(
$key$val)=each($usergroupaffich)) {
         
$nb=$nb+1;
         
          if (
$bbuserinfo[usergroupid]==$val)
           { 

            
$messaffich explode("|||",$post[secret]); 
            
$messaffich[$nb]=bbcodeparse($messaffich[$nb]);
            
$secretaffich="<center><table border=1><tr><td align=center><center><smallfont><b><font color=red>Only the members of your  

usergroup can see this: <br></font></b>
$messaffich[$nb]</smallfont></center></td></tr></table></center>";

           }

else if (
$bbuserinfo[usergroupid]==&& $post[secret2]!='')
{
$messaffich explode("|||",$post[secret]); 
$messaffich[0]=bbcodeparse($messaffich[0]);
$messaffich[1]=bbcodeparse($messaffich[1]);
$messaffich[2]=bbcodeparse($messaffich[2]);

if (
$usergroupaffich[0]==6$usergroupaffich[0]="Admins : $messaffich[0]<br>";
if (
$usergroupaffich[1]==5$usergroupaffich[1]="Co-Admins : $messaffich[1]<br>";
if (
$usergroupaffich[2]==7$usergroupaffich[2]="Mods : $messaffich[2]<br>";

if (
$usergroupaffich[0]==5$usergroupaffich[0]="Co-Admins : $messaffich[0]<br>";
if (
$usergroupaffich[1]==7$usergroupaffich[1]="Mods : $messaffich[1]<br>";

if (
$usergroupaffich[0]==7$usergroupaffich[0]="Mods : $messaffich[0]<br>";

$secretaffich="<center><table border=1><tr><td align=center><center><smallfont><b><font 

color=green>
$usergroupaffich[0]$usergroupaffich[1]$usergroupaffich[2]</smallfont></center></td></tr></table></center>";}

           } 
Hellsatan will post SC soon
Thx to him :banana:
Reply With Quote
  #23  
Old 04-29-2003, 09:05 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks grog!

We worked to sort out problems for about an hour, partly due to my inability to wait, and my ability to ask stupid questions

Here are some screenshots, of what an Admin, Co-Admin (extra usergroup I have added), Super Moderator and Moderator sees in each post!

Satan
Reply With Quote
  #24  
Old 04-30-2003, 02:57 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

grog6, I was referring more to the following:

Can a "Registered Member" put a message in that only and Administrator or Moderator can read or is this just something a moderator can do only?
Reply With Quote
  #25  
Old 04-30-2003, 03:22 PM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ bitg : Everybody can post a private message
Reply With Quote
  #26  
Old 05-07-2003, 04:38 PM
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I rewrote a few things to put things into templates:

PHP Code:
// *****************************
//      FUNCTION TO VERIFY USERGROUP BY GROGINOU   

      
$usergroupaffich explode(",",$post[secret2]);
      
$nb=-1;
      while (list(
$key$val)=each($usergroupaffich)) {
         
$nb=$nb+1;
         
          if (
$bbuserinfo[usergroupid]==$val)
           { 

            
$messaffich explode("|||",$post[secret]); 
            
$messaffich[$nb]=bbcodeparse($messaffich[$nb]);
            eval(
"\$secretaffich .= \"".gettemplate("postbit_secret")."\";");

           }
}

//      FUNCTION TO VERIFY USERGROUP BY GROGINOU
// ***************************** 
How would I write that in to allow admins to read supers/mods messages?
Reply With Quote
  #27  
Old 05-14-2003, 01:41 AM
Hobbes's Avatar
Hobbes Hobbes is offline
 
Join Date: Dec 2002
Location: Cali
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed everything, but when I make a new thread and/or new reply nothing shows....O_o


FIXED!

i am just really stupid O_O
Reply With Quote
  #28  
Old 05-14-2003, 03:08 AM
Hobbes's Avatar
Hobbes Hobbes is offline
 
Join Date: Dec 2002
Location: Cali
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet, great hack, I was just wondering about this the other day!!!!

[high]* Anguish clicks install[/high]
Reply With Quote
  #29  
Old 08-25-2003, 04:13 AM
BryanB85 BryanB85 is offline
 
Join Date: Sep 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would you make it so that Admins can read all private messages posted inside the thread?
Reply With Quote
  #30  
Old 08-25-2003, 08:15 AM
grog6's Avatar
grog6 grog6 is offline
 
Join Date: Apr 2002
Location: France
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@BryanB85 :
https://vborg.vbsupport.ru/showthrea...077#post389077
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 08:49 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.05089 seconds
  • Memory Usage 2,321KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_php
  • (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
  • (2)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