Uridium Posted April 7, 2009 Posted April 7, 2009 Thought this might come in handy for some people its the MOD made by KARLOS which gave an impressive announcement for users.. However this one basically does the same but is only viewable by staff. SQLS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up staff.php find case 'announce': announcements(); break; Add underneath case 'staffannounce': staff_announcements(); break; same file find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ADD Underneath You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open Up smenu.php Add this link under the original announcement URL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. PART 2 TO FOLLOW Quote
Uridium Posted April 7, 2009 Author Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff call this file staffannouncements.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up mainmenu.php Find.... Staff Panel \n"; Underneath add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You can now communicate with your staff and users cant see anything. Quote
Karlos Posted April 7, 2009 Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff ALTER TABLE `users` ADD `staffnew_announcements` INT( 11 ) NOT NULL DEFAULT '0'; Save some room :P :roll: $db->query("UPDATE `users` SET `new_announcements`=`new_announcements`+'1' WHERE `user_level` >= '2'"); Quote
DELETE ME NOW! Posted April 7, 2009 Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff Or even better dont store it in users table? Make new sql for staff put the staff userids in there. Make a thing for mainmenu.php for staff done:P And just edit the sql in the php files. done :P Quote
Uridium Posted April 7, 2009 Author Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff Or just use the one ive posted which works and doesnt confuse the hell out of new members to CE :) Quote
DELETE ME NOW! Posted April 7, 2009 Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff Or just use the one ive posted which works and doesnt confuse the hell out of new members to CE :) Lol :P Quote
bocco Posted April 7, 2009 Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff why can you just use the mail staff feature ?? seems like that would be a little better .... but then again, its a personal preference Quote
AlabamaHit Posted April 7, 2009 Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff If you want to add this under announcements in main menu instead of staff menu use... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Karlos Posted April 7, 2009 Posted April 7, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff Or.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Got bored :P Save's using a varible tho. Quote
jds137 Posted May 12, 2009 Posted May 12, 2009 Re: [MCCODES V2[ Announcements mod only visible to staff I like this mod quite a bit. As always, you come through. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.