Events Made Easy › Forums › How do I … › Simplify 'Insert New Event' admin panel
Tagged: Admin panel, anpassen, reduce, simplify, vereinfachen
- This topic has 7 replies, 4 voices, and was last updated 11 years, 10 months ago by Franky.
-
AuthorPosts
-
Thu 9 Sep 2010 at 01:23 #42075AnonymousInactive
What is the best way to go about eliminating options from the ‘Insert New Event’ panel? For example, I really only want to show Name, Date, Time, Details, and the category dropdown to the admin. They won’t use anything else and it’s cluttering up the page.
Thu 9 Sep 2010 at 07:34 #44674FrankyKeymasterWell, for now it’s not possible without editing the source code …
Tue 5 Oct 2010 at 04:17 #44675AnonymousInactiveI’m comfortable with that (I love breakin’ stuff). Can this be done with CSS (hiding stuff), or do I have to take code out of the .php file that generates the admin options (I’m guessing events_manager.php)?
Tue 5 Oct 2010 at 04:55 #44676AnonymousInactiveOh I figured it out (after breaking lots of stuff and then unbreaking it)
added these to the events_manager.css:
/* Hiding Stuff in the Admin Panel */
div#div_event_page_title_format.postbox {
display: none;}
div#div_event_single_event_format.postbox {
display: none;}
div#div_event_contactperson_email_body.postbox {
display: none;}
div#div_event_respondent_email_body.postbox {
display: none;}
div#div_event_single_event_format.postbox {
display: none;}
div#div_location_name.stuffbox {
display: none;}
div#div_event_attributes.postbox {
display: none;}Tue 5 Oct 2010 at 07:42 #44677FrankyKeymasterThis is great info, I’ll add this to the doc 🙂
Btw: since events_manager.css gets overwritten on updates, you’ll beter use “myown.css”, see the current FAQ section http://www.e-dynamics.be/wordpress/#faq
Sat 21 May 2011 at 05:34 #44678AnonymousInactiveCan you offer more information on where to put this css where it won’t get overwritten on update?
Based on http://www.e-dynamics.be/wordpress/?cat=30 I created eme.css in my wordpress theme’s directory, and put Oneprcnt’s code in there, but it’s not hiding the postboxes.
Thanks!
Tue 15 Jan 2013 at 09:18 #44679AnonymousInactiveWell, joining an old thread is not very fashionable. But I like EME so much and searched a while for an answer to my question in this forum and the documentation and didn’t find it as detailed as I think it could be.
So I would like to share my solution, and maybe Franky will add it (maybe even improved?) to the documentation or FAQ.
Many thx for your work on EME, Franky!
To simplify the admin panel, save this code as eme.css and upload it to your theme’s folder.
/* SIMPLIFY THE ADMIN PANEL */
/* this reduces the EME admin-panel to basic features
save this file as 'eme.css' and upload it to your theme-folder */
/* if you want to make some functions in the admin-panel visible again, comment them out with putting them between brackets and stars */
/* BEGIN of editing admin-panel*/
div#div_event_page_title_format.postbox {
display: none;}
div#div_event_single_event_format.postbox {
display: none;}
div#div_event_contactperson_email_body.postbox {
display: none;}
div#div_event_respondent_email_body.postbox {
display: none;}
div#div_event_single_event_format.postbox {
display: none;}
div#div_location_name.stuffbox {
display: none;}
div#div_event_attributes.postbox {
display: none;}
div#div_event_registration_pending_email_body.postbox {
display: none;}
div#div_event_registration_recorded_ok_html.postbox {
display: none;}
/* div#div_event_image.postbox {
display: none;} */
div#urldiv.stuffbox {
display: none;}
/* END of editing admin-panel*/
/* main events_manager.css section */
table#eme-bookings-table tfoot td.booking-result {
font-weight: bold;
background:#6D6D6D url(../../../wp-admin/images/menu-bits.gif) repeat-x scroll left top;
color: #eee;
}
table#eme-bookings-table tfoot th {
text-align: right;
padding-right: 1em;
}
table.eme-rsvp-form {
width: 80%;
}
table.eme-rsvp-form th {
text-align: right;
width: 35%;
}
table.eme-rsvp-form td {
padding-left: 1em;
text-align: left;
}
div.eme-rsvp-message {
margin-bottom: 1em;
background-color: #FDDD73;
padding: 5px;
border: 2px solid #FF9100;
}
a.bookingdelbutton {
background: url("../../../wp-admin/images/xit.gif") no-repeat;
font-size: 11px;
text-indent: -9999px;
height: 10px;
width: 10px;
overflow:hidden;
position:absolute;
}
a.bookingdelbutton:hover {
background: url("../../../wp-admin/images/xit.gif") no-repeat -10px;
}
/* Printable stuff */
body#printable {
font-family: Geneva, Helvetica, Arial, sans-serif;
text-align: center;
}
body#printable #container {
margin: 0 auto;
width: 780px;
text-align: left;
}
table#bookings-table {
width: 600px;
border-spacing: 0px;
}
table#bookings-table td {
padding: 5px 0;
}
table#bookings-table td.seats-number {
text-align: right;
padding-right: 20px;
}
table#bookings-table th {
text-align: left;
margin-left: 5px;
}
table#bookings-table tr#booked-seats td{
border-top: 2px solid #999;
}
table#bookings-table td.total-label {
text-align: right;
}
table#bookings-table tr#booked-seats td.seats-number, table#bookings-table tr#available-seats td.seats-number {
font-weight: bold;
}
p#recurrence_warning {
border: 2px solid #FD0000;
background: #FF7146;
color: #fff;
font-weight: bold;
padding: 5px;
}
input#event_url {
width: 100%
}
div#icon-events{
background:url('images/calendar-32.png') no-repeat center;
}
table#eme-location-data th {
text-align: right;
width: 50px;
}
#eme_global_map {
line-height: 100%;
}
.eme-location-map {
background: green;
width: 400px;
height: 300px;
line-height: 100%;
}
.eme-location-balloon {
font-size: 95%;
line-height: 100%;
margin-bottom: 1em;
}
/* this one influences the map appearance in the admin backend when editing events */
div#eme-admin-map-not-found {
width: 400px;
font-size: 140%;
text-align: center;
margin-top: 100px;
display: hide;
}
div#eme-admin-location-map {
background: green;
width: 400px;
height: 300px;
display: hide;
margin-right: 8px;
}
/* for google maps to work ok in IE, we need at least 690px as max-width for the images */
#eme_global_map img,
.eme-location-map img {
max-width: none !important;
background: none !important;
}
.eme_events_list, #eme_locations_list {
clear:both;
}
#eme_locations_list li {
cursor:default;
}
table.eme-calendar-table td {
padding: 2px 4px;
text-align: center;
}
table.eme-calendar-table tr.days-names {
font-weight: bold;
}
table.eme-calendar-table td.eventless-pre, table.eme-calendar-table td.eventless-post {
color: #ccc;
}
table.eme-calendar-table td.eventful a, table.eme-calendar-table td.eventful-today a {
font-weight: bold;
color: #FD7E29;
}
table.eme-calendar-table td.eventless-today {
background-color: #CFCFCF;
}
table.eme-calendar-table thead {
font-size: 120%;
font-weight: bold;
}
/*
.eme-calendar-table {
background-color:#fff;
}
*/
table.fullcalendar {
table-layout:fixed;
border-collapse:collapse;
width:100%;
}
#content table.fullcalendar td {
border:1px solid #000;
}
table.fullcalendar td {
padding:0 !important;
border:1px solid #000;
text-align:left;
vertical-align:top;
}
table.fullcalendar a.prev-month {
float:left;
padding-left:.7em;
text-decoration:none;
}
table.fullcalendar a.next-month {
float:right;
padding-right:.7em;
text-decoration:none;
}
table.fullcalendar td.month_name {
text-align:center;
vertical-align:middle;
}
table.fullcalendar tr.days-names td {
height:1.4em;
text-align:center;
vertical-align:middle;
}
table.fullcalendar tbody td {
height:4em;
text-align:left;
overflow:hidden;
}
table.fullcalendar ul {
margin:7px 0 0 5px;
}
table.fullcalendar ul li {
margin:7px 0 0 0;
font-size:.7em;
line-height:normal;
}
table.fullcalendar td.eventless-today, table.fullcalendar td.eventful-today {
background-color:#eee;
}
#events-pagination-top {
margin-bottom:1em;
}
#locations-pagination-top,#locations-pagination-bottom,#events-pagination-top,#events-pagination-bottom {
text-align: center;
}
#locations-pagination-top a,#locations-pagination-bottom a,#events-pagination-top a,#events-pagination-bottom a {
margin: 0 20px 0 20px;
text-decoration: none;
padding: 3px 0;
}
.eme_nav_left {
float: left;
}
.eme_nav_right {
float: right;
}
/* eliminate the vertical space between the "Your Street Address" text entry box and the "Get Directions" submit button in cases where the button wraps below the text box in the map location balloon */
#saddr {
margin-bottom:0;
}
/* for the honeypot, render it invisible */
#honeypot_check { display: none; }Mon 4 Feb 2013 at 17:40 #44680FrankyKeymasterI added this entry to the FAQ section on the doc site, thanks!
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.