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
Staff Messenger Details »»
Staff Messenger
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-22-2003 Last Update: 03-22-2003 Installs: 38
 
No support by the author.

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

Show Your Support

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

Comments
  #22  
Old 03-24-2003, 09:49 AM
LOTR's Avatar
LOTR LOTR is offline
 
Join Date: Dec 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 03-24-2003, 11:25 AM
SmartGnome's Avatar
SmartGnome SmartGnome is offline
 
Join Date: Mar 2003
Location: Amsterdam
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 03-24-2003, 11:28 AM
SmartGnome's Avatar
SmartGnome SmartGnome is offline
 
Join Date: Mar 2003
Location: Amsterdam
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mist

One way install without any problems. Piece of Cake man


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:
Reply With Quote
  #25  
Old 03-24-2003, 11:34 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty cool hack. I will have to install when I get home in May.

Dark Shogun
Reply With Quote
  #26  
Old 03-24-2003, 12:32 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, will install this later
Reply With Quote
  #27  
Old 03-24-2003, 03:28 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 03-24-2003, 03:31 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 03-24-2003, 03:31 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 01:28 PM SmartGnome said this in Post #23
Hi Mist

One way install without any problems. Piece of Cake man


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?
Reply With Quote
  #30  
Old 03-24-2003, 04:25 PM
SmartGnome's Avatar
SmartGnome SmartGnome is offline
 
Join Date: Mar 2003
Location: Amsterdam
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Cheers
Reply With Quote
  #31  
Old 03-24-2003, 05:37 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh that won't be hard

- adds to to-do list

- miSt
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 11:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10154 seconds
  • Memory Usage 2,313KB
  • Queries Executed 27 (?)
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
  • (3)bbcode_code
  • (5)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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