PDA

View Full Version : Secret Messages to your own usergroup


grog6
04-26-2003, 10:00 PM
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

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 ;)

: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. ^_^

* Red Blaze clicks install. :)

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
Today at 02:40 PM wolfe said this in Post #14 (https://vborg.vbsupport.ru/showthread.php?postid=388398#post388398)
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

* DPoole click on Installs

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

// 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]==6 && $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:


// *****************************
// 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

* Anguish clicks install

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/showthread.php?postid=389077#post389077