We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Moderator CP
Topic Started: Mar 8 2014, 09:45 PM (574 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Board Address: PRIVATE
Board Software: ZB
Description: I would like a code that adds a tab at the the top where admin CP is, but only moderators can access it. I would like it to have a place where moderators can post announcements, and the other moderators can see it. I would also like it to have a place where all the reported posts and pm's are.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

So the Report CP but with a forum? Why not just make a forum for Moderators? Then you can technically "grab" that forum and put it in the Report CP as well if you wanted to.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
No, When you enter the Admin CP you see a box where you can put in an announcement and all the other admins can see it. I want a tab up there that has that and the report CP built in
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

TDreamW101
Mar 8 2014, 09:57 PM
No, When you enter the Admin CP you see a box where you can put in an announcement and all the other admins can see it. I want a tab up there that has that and the report CP built in
That would require them to have access to the Admin CP. Unless you want to place an announcement table in the Report CP.

Edit: Also, please clarify who would be posting the announcements.
Edited by DaPizzaMan, Mar 8 2014, 10:00 PM.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Any moderator/Global Moderator can post the announcements and other moderators and Global Moderators can see it.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

How is this?
Admin CP > Board Template > Below the Board:
Code:
 
<script type="text/javascript">
$(function () {

if (location.href.indexOf('/report/') !== -1) {
jQuery.fn.reverse = [].reverse; // Iterate in reverse order
var topicID = '###',
numAnnouncements = 5,
announcementTable = '<table id="moderator_announcements"><thead><tr><th><a href="' + main_url + 'topic/' + topicID + '/#new">Announcements</a></th></tr></thead><tbody></tbody></table><br>';

$('table[style]').after(announcementTable);

$.get(main_url + 'topic/' + topicID + '/#new?force_ads', function (posts) {
$('td.c_post', posts).reverse().each(function (index) {
if (index < numAnnouncements) $('#moderator_announcements tbody').append('<tr><td>' + $(this).html() + '</td></tr>');
else return;
});
});
}
});
</script>
Create a forum for moderators, with just one topic for them to post in. Then get the topic ID (".../topic/###/" in the URL), and replace the value of the topicID variable. Finally, adjust the numAnnouncements variable to get a certain number of announcements posted in that topic.

So to help you understand, basically the moderators can post in a certain topic and those posts will display as announcements in the Report CP.
Edited by DaPizzaMan, Mar 8 2014, 11:40 PM.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Works like a charm, thanks so much! You can close this now
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

I'm glad you like it.
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic