Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

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 :)

Posted

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

Posted

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.

Posted

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.

  • 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.

×
×
  • Create New...