Sofia
Forum Replies Created
-
Hi,
I have WP 3.5.1 with multisite installed. A admin or super admin can send messages to everyone and everyone can receive messages from admin/SuperAdmin.The problem is that non-admin users cannot send messages to admin or superadmin (they do not appear on recipient list).
the get_users function in “inc/send-page.php ” is not limiting the user list. How can I make it so that all users can send messages to admins?
Thanks,
SofiaForum: Plugins
In reply to: [The Events Calendar] Calendar Not Showing CorrectlyShwatta,
I am not sure if this will help at all but it can’t hurt to try…
If you are up for it, I suggest you play around with the code (make a backup first) (use a plain text editor). Check out views/gridview.php. You can try moving things around. For example, on my site I changed this block to div instead of span
<span class='tribe-events-calendar-buttons'> <a class='tribe-events-button-off' href='<?php echo tribe_get_listview_link(); ?>'><?php _e('Event List', 'tribe-events-calendar'); ?></a> <a class='tribe-events-button-on' href='<?php echo tribe_get_gridview_link(); ?>'><?php _e('Calendar', 'tribe-events-calendar'); ?></a> </span>and moved it below this line:
<div id="tribe-events-content" class="grid" data-title="<?php wp_title(); ?>">so my code looks like this:
<div id="tribe-events-content" class="grid" data-title="<?php wp_title(); ?>"> <div class='tribe-events-calendar-buttons'> <a class='tribe-events-button-off' href='<?php echo tribe_get_listview_link(); ?>'><?php _e('Event List', 'tribe-events-calendar'); ?></a> <a class='tribe-events-button-on' href='<?php echo tribe_get_gridview_link(); ?>'><?php _e('Calendar', 'tribe-events-calendar'); ?></a> </div> ...etc...And now my buttons for calendar or event view are above the previous and next month section.
Forum: Plugins
In reply to: [The Events Calendar] Calendar Not Showing CorrectlyHi Shwatta,
I do not know how to solve your issue, but I do know what to do with the table.php file. You need to put it in wp-content/plugins/the-events-calendar/views folder. You might want to rename the original file to something else so that you do not lose it incase you want to go back to that file.
Sofia
Forum: Plugins
In reply to: [Whisper Comment Reloaded] author vs user_loginThis is Sofia for the last time. I fixed it!! Once I retrieved the author’s login id and used that in the sql query in place of the author’s display id, everything works just as i want it!!
I added this
$author_login = get_the_author_meta('user_login');and I replaced
$wp_users = $wpdb->get_results("SELECT * FROM {$wpdb->users} WHERE user_login = '".<strong>$author</strong>."' ORDER BY ID");
with
$wp_users = $wpdb->get_results("SELECT * FROM {$wpdb->users} WHERE user_login = '".<blockquote>$author_login</blockquote>."' ORDER BY ID");PHP isn’t too hard 🙂