View Full Version : Staff Messenger
Dean C
03-22-2003, 10:00 PM
Staff Messenger
by Mist
Description:
This hack allows you to display a message to your staff at the top of every page. Therefore it is made clear to them :)
Features:
Add staff usergroups to the accepted list
Easily edit whether you wish the message to be displayed or not
HTML customizable messages
Installation:
Simply follow the instruction in the attachment
Credits:
Xenon for explaining the explode and in_array functions
PPN for clarifying how to use them ;)
To Do:
Add ACP option to select title for the staff message
Dean C
03-23-2003, 04:55 PM
<i>Space reserved for FAQ's</i>
Dean C
03-23-2003, 04:57 PM
Editing ACP options:
Dean C
03-23-2003, 04:57 PM
Message on all pages:
Xenon
03-23-2003, 04:57 PM
Today at 19:54 Mist said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=372030#post372030)
Credits:
PPN for clarifying the explode and in_array functions and how to use them
erm, that was, me.... ^^
nice idea never the less :)
Nice hack might install later....
Dean C
03-23-2003, 04:59 PM
Hehe well it never got through to me. Scott has always explained things so well to me (me being a slow-learner ;))
*adds xenon to credits as well just to make him feel better :)*
- miSt
grog6
03-23-2003, 05:02 PM
* grog6 clicks install too
Really usefull :)
Koutaru
03-23-2003, 05:30 PM
This will be very useful in the future ^_^ nice work Mist
Dean C
03-23-2003, 05:56 PM
Thanks Koutaru
GoTTi
03-23-2003, 06:10 PM
Mist, this can be used to display news on forums to all members cant it?
GoTTi
03-23-2003, 06:27 PM
yea it can, nice hack
* GoTTi clicks install and will use ;)
EvilLS1
03-23-2003, 09:52 PM
Nice idea Mist. :)
*EvilLS1 clicks install
Xanthine
03-23-2003, 10:14 PM
Today at 03:10 PM Da_GoTTi said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=372133#post372133)
Mist, this can be used to display news on forums to all members cant it?
Yea, just put all user group IDs in the admin options and change the name from staff message to something more appopriate.
Nice hack, and lol@the test message you posted :D
partang2
03-24-2003, 04:37 AM
Nice! Thanks Mist!
*Clicks Install*
alkatraz
03-24-2003, 06:16 AM
NICE!!!
chrisz
03-24-2003, 07:34 AM
ok great hack, just want to check something..
Only admin of the board can see this right?
thnx dude you rock.
SmartGnome
03-24-2003, 07:36 AM
This is eactly what I needed Mist :D
Will install it later today after work.
Thanks for sharing
Cheers
Automated
03-24-2003, 08:06 AM
nice idea :p
Hello i try to run the FIRST query
INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);
but i got this error:
Error
SQL-query :
INSERT INTO settinggroup
VALUES ( 40, 'Staff Messaging System', 40 )
MySQL said:
Duplicate entry '40' for key 1
Back
Any idea why this is happening to my db?
Thanks
SmartGnome
03-24-2003, 11:25 AM
Today at 12:49 PM LOTR said this in Post #21 (https://vborg.vbsupport.ru/showthread.php?postid=372433#post372433)
Hello i try to run the FIRST query
INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);
but i got this error:
Error
SQL-query :
INSERT INTO settinggroup
VALUES ( 40, 'Staff Messaging System', 40 )
MySQL said:
Duplicate entry '40' for key 1
Back
Any idea why this is happening to my db?
Thanks
Probably you have already a settinggroup with id 40 in your database.
SmartGnome
03-24-2003, 11:28 AM
Hi Mist
One way install without any problems. Piece of Cake man :D
Request:
Can you make the title also selectable in the admin, then I can use it also for announcements to my users.
Great hack, install is clicked
:banana:
Dark Shogun
03-24-2003, 11:34 AM
Pretty cool hack. I will have to install when I get home in May. :)
Dark Shogun
sabret00the
03-24-2003, 12:32 PM
nice, will install this later
Dean C
03-24-2003, 03:28 PM
Today at 09:34 AM chrisz said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=372415#post372415)
ok great hack, just want to check something..
Only admin of the board can see this right?
thnx dude you rock.
Just change the usergroupid's to your admin usergroupid only :)
Dean C
03-24-2003, 03:31 PM
Today at 11:49 AM LOTR said this in Post #21 (https://vborg.vbsupport.ru/showthread.php?postid=372433#post372433)
Hello i try to run the FIRST query
INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);
but i got this error:
Error
SQL-query :
INSERT INTO settinggroup
VALUES ( 40, 'Staff Messaging System', 40 )
MySQL said:
Duplicate entry '40' for key 1
Back
Any idea why this is happening to my db?
Thanks
Change the 40 to 60 or something like that (both instances of 40 in the query) :)
- miSt
Dean C
03-24-2003, 03:31 PM
Today at 01:28 PM SmartGnome said this in Post #23 (https://vborg.vbsupport.ru/showthread.php?postid=372463#post372463)
Hi Mist
One way install without any problems. Piece of Cake man :D
Request:
Can you make the title also selectable in the admin, then I can use it also for announcements to my users.
Great hack, install is clicked
:banana:
What do you mean? :)
SmartGnome
03-24-2003, 04:25 PM
What do you mean?
Should be nice to have an extra input field in the acp where you can give the Title (Message to all Staff:) or any other text.
By this way I can also make announcements to other usergroups with different titles.
It's just a questsion, don't feel pressed :D
Cheers
Dean C
03-24-2003, 05:37 PM
Oh that won't be hard
- adds to to-do list :)
- miSt
Thanks Mist :)
how about the other queries in the installation file as below:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,40,'Display Staff Messages','displaystaffmessages','1','Do you wish the message to be displayed to all staff to be displayed on all pages?','yesno','1');
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,40,'Staff Usergroups','staffusergroups','5,6,7','Enter the usergroup id\'s of your staff in here. (Seperate with commas WITH NO SPACES!)','','2');
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,40,'Message','themessage','','Here you put the message that you want to be displayed on all pages to your staff.<br>(You may use html as as <br> tags are needed to go to a new line','textarea','3');
Do i have to changes those too? let say i chose to change to 80.
thanx.. ;)
Dean C
03-26-2003, 03:48 PM
Yes ;)
notorious
03-26-2003, 08:59 PM
thx mist nice hack, will install this later
Areku
03-27-2003, 07:17 AM
As usual, clear, straight and AWESOME hacks, Mist!
/Me installs!
Dean C
03-27-2003, 03:29 PM
Your Welcome Areku :)
- miSt
SemperFidelis
05-06-2003, 01:46 PM
Great hack Mist
Thanks
:)
Chris M
05-06-2003, 05:10 PM
Nice, but I swear that I saw you post some pornographic links;):p
Satan
Dean C
05-06-2003, 06:45 PM
Lol what? ^^
- miSt
Dark Shogun
05-17-2003, 10:34 PM
The hack seems to work right but I have one problem. Does anyone know how I get the header to not show if there is no message?
Dark Shogun
Example - HERE (http://www.gamers-nexus.net/prob.bmp)
Dean C
05-18-2003, 10:12 AM
Please try not to attach bmp's as they're such high quality that they take us 56k'ers an age to download :p
Any chance you could attach it as a gif of jpg?
Thanks
- miSt
vB-Host.com
05-18-2003, 10:56 PM
Mist, I installed it but nothing is showing up. also in the instructions i don't see how you post a message for staff to read
Dean C
05-21-2003, 01:03 PM
You go to the vbulletin options section of your admin cp and its right at the bottom of the page :) ^^
- miSt
hehe..
thanks... never thought of lookin there :)
Dean C
05-21-2003, 03:28 PM
No problem :) ^^
- miSt
Ryan Ashbrook
05-22-2003, 06:11 PM
05-18-03 at 12:12 PM Mist said this in Post #40 (https://vborg.vbsupport.ru/showthread.php?postid=396615#post396615)
Please try not to attach bmp's as they're such high quality that they take us 56k'ers an age to download :p
Any chance you could attach it as a gif of jpg?
Thanks
- miSt
Here is what he means, I made a cut down of the area which he was talking about.
It's also in jpeg form, just for you. ;)
Dean C
05-23-2003, 06:02 PM
The reason that is shown is because you have not entered content in the 'vbulletin options's section of the admin cp to be shown ;)
- miSt
Slybone
10-19-2003, 03:13 AM
Question, How exactly do I post staff messages, I see no options anywhere in the admin cp...
Dean C
10-19-2003, 08:50 AM
Check the 'vbulletin option's section of the admin cp and scroll rightttt down :)
Slybone
10-19-2003, 08:19 PM
yeah... Found that... next 2 problems are... One... The message doesn't display when I tell it to.. also it repeats that one form
Thanks for tha Help.
I just installed this hack and have one question. WHere it says 'enter the usergroups id' how do i know the user group id of the mods?
One more thing. I cannot seem to get the message to come out at all.
I got htis to work. I like it! One question though. It would be nice to be able to use the VB codes such as RED etc in the body of the message. I can't seem to get that to work. Also being able to show multiple messages and have this self scroll would really be nice.
nice hack but i have vbulletin 2.3.2 would it work on there becuase i couldn't find some code
assassingod
12-01-2003, 06:38 PM
What code can't you find?
Josh Combs
01-10-2004, 10:13 PM
I accidently ran the query one to many times. How can I remove these from my db? Thanks
INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,40,'Display Staff Messages','displaystaffmessages','1','Do you wish the message to be displayed to all staff to be displayed on all pages?','yesno','1');
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,40,'Staff Usergroups','staffusergroups','5,6,7','Enter the usergroup id\'s of your staff in here. (Seperate with commas WITH NO SPACES!)','','2');
INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,40,'Message','themessage','','Here you put the message that you want to be displayed on all pages to your staff.<br>(You may use html as as <br> tags are needed to go to a new line','textarea','3');
that is what I ran. Your help would be apreaciated!
Josh
SmartGnome
03-30-2004, 09:06 AM
Hi Mist,
Any change you will update this one to vb3 Gold ?
I hope you do :banana:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.