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)
-   -   Staff Messenger (https://vborg.vbsupport.ru/showthread.php?t=50715)

Dean C 03-22-2003 10:00 PM

Staff Messenger
 
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

Quote:

Today at 19:54 Mist said this in Post #1
Credits:
  • PPN for clarifying the explode and in_array functions and how to use them

erm, that was, me.... ^^

nice idea never the less :)

Dan 03-23-2003 04:58 PM

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

[high]* grog6 clicks install too
[/high]

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

[high]* GoTTi clicks install and will use ;)[/high]

EvilLS1 03-23-2003 09:52 PM

Nice idea Mist. :)

*EvilLS1 clicks install

Xanthine 03-23-2003 10:14 PM

Quote:

Today at 03:10 PM Da_GoTTi said this in Post #11
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.

Vile 03-23-2003 10:51 PM

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

LOTR 03-24-2003 09:49 AM

Hello i try to run the FIRST query

INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);

but i got this error:

Code:

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

Quote:

Today at 12:49 PM LOTR said this in Post #21
Hello i try to run the FIRST query

INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);

but i got this error:

Code:

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

Quote:

Today at 09:34 AM chrisz said this in Post #18
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

Quote:

Today at 11:49 AM LOTR said this in Post #21
Hello i try to run the FIRST query

INSERT INTO settinggroup VALUES (40, 'Staff Messaging System', 40);

but i got this error:

Code:

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

Quote:

Today at 01:28 PM SmartGnome said this in Post #23
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

Quote:

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

LOTR 03-26-2003 05:18 AM

Thanks Mist :)

how about the other queries in the installation file as below:
Code:

INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,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,description,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,description,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 &lt;br&gt 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

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


All times are GMT. The time now is 04:50 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.01401 seconds
  • Memory Usage 1,791KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete