Eugene
Forum Replies Created
-
Forum: Plugins
In reply to: [YOP Poll] Allow users to change their voteI made some changes to do as you suggested and not delete the logs. The only problem is the poll_id and answer_id need to be set to 0, otherwise the vote stats aren’t updated. In that case the logs will hang around forever. Not necessarily a bad thing but I may elect to just delete the log entries as I had written in my first post. It’s a small community and for logged in users only so we don’t really need the historical data.
Yes, here is a sample of some rows that show up as past events:
event_id post_id event_slug event_owner event_status event_name event_start_time event_end_time event_all_day event_start_date event_end_date post_content event_rsvp event_rsvp_date event_rsvp_time event_rsvp_spaces event_spaces event_private location_id recurrence_id event_category_id event_attributes event_date_created event_date_modified recurrence recurrence_interval recurrence_freq recurrence_byday recurrence_byweekno recurrence_days blog_id group_id 21 72 saturday-brick 1 1 Saturday Brick 00:00:00 00:00:00 1 2014-05-10 2014-05-10 Test Training Schedule?Kinetic Half - OR 3 Hour Z2 Ride, 1 hr run Race Pace 0 NULL 00:00:00 NULL 0 0 0 NULL NULL a:0:{} 2014-05-02 14:20:24 NULL 0 NULL NULL NULL NULL 0 NULL NULL 22 73 off-3 1 1 OFF 00:00:00 00:00:00 1 2014-05-11 2014-05-11 Test Training Schedule?Kinetic Sprint - -Or OFF 0 NULL 00:00:00 NULL 0 0 0 NULL NULL a:0:{} 2014-05-02 14:20:25 NULL 0 NULL NULL NULL NULL 0 NULL NULL 23 74 monday-strength-workout-3 1 NULL Monday Strength Workout 00:00:00 00:00:00 1 2014-06-16 2014-06-16 Test Training Schedule?Boot Camp # 18 0 NULL 00:00:00 NULL 0 0 0 NULL NULL a:0:{} 2014-05-02 14:20:25 NULL 0 NULL NULL NULL NULL 0 NULL NULL 24 75 monday-run-3 1 NULL Monday Run 00:00:00 00:00:00 1 2014-06-16 2014-06-16 Test Training Schedule?Run 30' Z2 or LRP 0 NULL 00:00:00 NULL 0 0 0 NULL NULL a:0:{} 2014-05-02 14:20:25 NULL 0 NULL NULL NULL NULL 0 NULL NULL
And their corresponding wp_post records:
ID post_author post_date post_date_gmt post_content post_title post_excerpt post_status comment_status ping_status post_password post_name to_ping pinged post_modified post_modified_gmt post_content_filtered post_parent guid menu_order post_type post_mime_type comment_count 72 1 2014-05-02 14:20:24 2014-05-02 18:20:24 Test Training Schedule?Kinetic Half - OR 3 Hour Z2 Ride, 1 hr run Race Pace Saturday Brick publish closed closed saturday-brick 2014-05-02 14:20:24 2014-05-02 18:20:24 0 https://mysite.com/events/saturday-brick/ 0 event 0 73 1 2014-05-02 14:20:25 2014-05-02 18:20:25 Test Training Schedule?Kinetic Sprint - -Or OFF OFF publish closed closed off-3 2014-05-02 14:20:25 2014-05-02 18:20:25 0 https://mysite.com/events/off-3/ 0 event 0 74 1 2014-06-01 00:00:00 2014-06-01 04:00:00 Test Training Schedule?Boot Camp # 18 Monday Strength Workout future closed closed monday-strength-workout-3 2014-05-02 14:20:25 2014-05-02 18:20:25 0 https://mysite.com/events/monday-strength-workout-3/ 0 event 0 75 1 2014-06-01 00:00:00 2014-06-01 04:00:00 Test Training Schedule?Run 30' Z2 or LRP Monday Run future closed closed monday-run-3 2014-05-02 14:20:25 2014-05-02 18:20:25 0 https://mysite.com/events/monday-run-3/ 0 event 0
I was able to reproduce it on our test server. Can you provide me with an email and I can send you credentials to take a look. Here is the code I used to create the events:
foreach ($events as $event) { $em_event = new EM_Event(); $em_event->post_content = $event->post_content; $em_event->event_name = $event->post_title; $em_event->event_start_time = $event->event_start_time; $em_event->event_end_time = $event->event_end_time; $em_event->event_all_day = $event->event_all_day; $em_event->event_start_date = $event->event_start_date; $em_event->event_end_date = $event->event_end_date; $em_event->location_id = 0; $result = $em_event->save(); if ( true === $result ) { wp_set_post_terms( $em_event->post_id, $event->term_ids_str, 'event-categories' ); add_post_meta( $em_event->post_id, $datetime_id ); $update_array = array( 'ID' => $em_event->post_id, 'post_date' => $event->post_date, 'post_date_gmt' => $event->post_date_gmt, 'post_status' => $event->post_status, 'comment_status' => $event->comment_status, 'ping_status' => $event->ping_status ); wp_update_post( $update_array ); } }// End foreach event
It’s on my local development environment. I’ll try to put it on an accessible server and update this post.
Thanks for the response.
Actually, the EM_Event class is all I might need. I don’t need to add custom event information, only create an EM Event. Would something like this work? (I don’t have access to test right now.)
$em_event = new EM_Event(); $em_event->post_title = 'My New Post'; $em_event->post_content_filtered = 'My post content'; ... $em_event->save();
Forum: Plugins
In reply to: [YOP Poll] Poll Admin Menu Not DisplayingIt was user error. Even though the user I was logged in as was a Super Admin, the role for that particular site was subscriber. I changed it to Administrator and all is well.
Forum: Plugins
In reply to: [YOP Poll] Poll Admin Menu Not DisplayingThe issues is on a local development environment.
I set up our test server the same way so I could show you and guess what … it works as expected.
There is not much different on my local environment (I’m even running it on a VM with the same server OS), but obviously this is an environment-specific issue.
I’ll post back anything I find.
Forum: Plugins
In reply to: [YOP Poll] Poll Admin Menu Not DisplayingThanks for the response,
I activated the plugin in a sub-blog, I did not network activate it. It does not show up in the sub-blog admin menu.
The database shows the yop_poll tables, for example wp_2_yop_polls.
I also saw the notice asking for donation and ratings, but I dismissed it already. So I think the plugin is definitely activated, there is just no menu item to create and manage polls.
Thanks,
EugeneForum: Networking WordPress
In reply to: Multi Site Super-Admin Login IssueWhen I changed my main site domain to be domain.com instead of https://www.domain.com it resolved the issue. So the main site would be domain.com and the second site would be SiteB.domain.com.
Forum: Networking WordPress
In reply to: Multi Site Super-Admin Login IssueI just set up multisite and am having the same issue. I can’t log into the second site I set up with the super admin user.
I’m not exactly sure if I set it up correctly so here’s some background:
- I installed WP on SiteA.mydomain.com
- I enabled multisite
- I created the second subdomain, but by default it defined it as SiteB.SiteA.mydomain.com
- After I created it, I edited the settings so that it’s domain is SiteB.mydomain.com
- I created a DNS entry for SiteB (I’m not using wildcard DNS)
I can access SiteB.mydomain.com fine, but when I try to login to wp-admin in SiteB using the super admin user, it goes back to the login page.
The above posts looked promising. The problem is, I don’t have a Network Admin > Settings > Domains in my dashboard. I only have Network Admin > Settings > Network Settings and Network Setup.
I’m running version 3.4.1.
Any help would be appreciated!