Jump to content
MakeWebGames

[MCCODES V2[ Announcements mod only visible to staff


Uridium
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...