vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Secret Messages to your own usergroup (https://vborg.vbsupport.ru/showthread.php?t=52250)

grog6 04-26-2003 10:00 PM

Secret Messages to your own usergroup
 
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

grog6 04-27-2003 09:27 PM

HERE IS THE FRENCH VERSION
Voici la version francaise

grog6 04-27-2003 09:28 PM

SC when you create a new post
SC quand vous laissez un nouvea message

grog6 04-27-2003 09:30 PM

RESULT if you belong to the good usergroup, else you'll see nothing different
Resultat si vous appartenez au bon usergroup, sinon vous ne verrez aucune modification

Red Blaze 04-27-2003 09:43 PM

whoa this is cool =D

Will try this out. ^_^

[high]* Red Blaze clicks install. :)[/high]

Koutaru 04-27-2003 10:57 PM

looks interesting but I'm not sure what I would use it for ;)

Red Blaze 04-27-2003 11:07 PM

hmm... there are no new tables anywhere. I can't add any hidden stuff. Oh well. =/

Marzas 04-28-2003 12:28 AM

nice hack
*installs

MindTrix 04-28-2003 05:18 AM

Swweeeett would be gr8 to see what people write about me :)

Logik 04-28-2003 05:27 AM

Sweet hack. :)

Jacko 04-28-2003 09:12 AM

do normal users see the "secret message to" bit??

grog6 04-28-2003 09:38 AM

Yes Jacko, of course :D
But you can remove it by modifing the .php files

wolfe 04-28-2003 12:31 PM

d00d hacks not working properly added everything and ran quierys not working

wolfe 04-28-2003 12:40 PM

i figured out the problem you said find

eval("dooutput(\"".gettemplate("editpost")."\");") ;

and add below if you do that it won't show add above same on newthread and newreply :D

flup 04-28-2003 02:33 PM

c00l

grog6 04-28-2003 03:14 PM

@ wolfe : you're right, all is good in the french archive, but Hellsatan make a mistake translating to english ;)

It's now corrected, thx for having reported it :)

DPoole 04-28-2003 09:24 PM

Quote:

Today at 02:40 PM wolfe said this in Post #14
i figured out the problem you said find

eval("dooutput(\"".gettemplate("editpost")."\");") ;

and add below if you do that it won't show add above same on newthread and newreply :D


Had same prob i was gonna un-install it 2morrow but seeing your post made it add the code above and not below and it works a treat now

cheers for great hack and cheers for fix

[high]* DPoole click on Installs[/high]

Chris M 04-29-2003 05:40 PM

I confused "au dessus" with "au dessous";)

They mean totally different things:confused::eek:

;)

Good hack;)

*installs*

Satan

Holidazed 04-29-2003 05:47 PM

What is the security on this? For example, can a Registered User have a secret message for an Admin? or is this feature only availble for groups I select? Can I set it via the ACP??

grog6 04-29-2003 06:21 PM

The arhive is now totally OK, there was small mistakes in the translation ;)

@ bitg : ?? security on this ? All should work perfectly, a message reserved for an admin, only will be show to admins ...

grog6 04-29-2003 09:01 PM

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:

Chris M 04-29-2003 09:05 PM

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:p

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

Satan

Holidazed 04-30-2003 02:57 PM

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?

grog6 04-30-2003 03:22 PM

@ bitg : Everybody can post a private message ;)

mADmAX` 05-07-2003 04:38 PM

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?

Hobbes 05-14-2003 01:41 AM

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

Hobbes 05-14-2003 03:08 AM

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

[high]* Anguish clicks install[/high]

BryanB85 08-25-2003 04:13 AM

How would you make it so that Admins can read all private messages posted inside the thread?

grog6 08-25-2003 08:15 AM

@BryanB85 :
https://vborg.vbsupport.ru/showthrea...077#post389077


All times are GMT. The time now is 12:18 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.01243 seconds
  • Memory Usage 1,799KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete