nmu1
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Response in a Bootstrap modalMy hack is opening up includes/js/scripts.js inside the plugin and:
Comment these lines out at about line 137
$responseOutput.append(data.message).slideDown('fast'); $responseOutput.attr('role', 'alert');Add these lines in their place (create the bootstrap modal on your page template first and change the ID in the below lines accordingly)
$('#response .modal-body').html('<div class="alert alert-info"><p>'+data.message+'</p></div>'); $('#response').modal('show');Forum: Networking WordPress
In reply to: Changed URL to subdomain site, lost siteSo… was the host’s fault. Even though I explained to them several times what I needed, they still didn’t get the configuration right…
Forum: Networking WordPress
In reply to: Changed URL to subdomain site, lost siteOK, so I setup a new site at site2.site1.com and mapped that to site2.com (without the http://www., which I’m looking into). The site is up, which is the important thing. I’ll see why http://www.site2.com doesn’t work. Thanks for your help.
Forum: Networking WordPress
In reply to: Changed URL to subdomain site, lost siteYes, that’s what I mean. Sorry. I go to site2.com and the browser shows me ‘It works’.
Forum: Networking WordPress
In reply to: Changed URL to subdomain site, lost siteOK, now we have tried to switch to site2.com. But we just get ‘It works’. The redirect happens (from new.site2.com to site2.com), but there is no site. If I were to map back to new.site2.com, then everything would work fine.
Forum: Networking WordPress
In reply to: Changed URL to subdomain site, lost siteSite1 and Site2 point to the same IP address. Currently the second site’s primary domain is at new.site2.com. If I go to http://www.site2.com it just says ‘It works’ which I assume is put there by the host.
Forum: Networking WordPress
In reply to: Changed URL to subdomain site, lost siteThanks, you are right. I forgot to add that I mapped domains… gad. I notice that there is a section inside the admin area where I can add active domains. Gonna look at that, and gonna check out this book! Thanks a lot for the advice.
Forum: Fixing WordPress
In reply to: Using URLs and AJAX to pre-select a category on edit-postYeah you’re right, I thought I could do it via AJAX but in the end the user can just uncheck the box (or check multiple). I’ll leave it blank as it is now. Thanks for your time and help!
Forum: Fixing WordPress
In reply to: Using URLs and AJAX to pre-select a category on edit-postOK here’s what I’m trying in functions.php:
add_action(‘wp_ajax_admin_init’,’my_select_event’);
function my_select_event($post_id){ if(isset($_GET['tag_ID'])){ $my_tag = intval($_GET['tag_ID']); } $term_array = get_term_by('id', $my_tag, 'tribe_events_cat'); $term_name = $term_array->term_id; wp_set_object_terms($post_id, $term_name, 'tribe_events_cat', false); wp_update_post($post_id); }I originally had it so that wp_set_object_terms just used that
$_GET['tag_ID'],and then I just got a checkbox with that number as a label, nothing checked. So I think I’m about halfway there, I just need to know how to manipulate that tag ID so that I can get the correct category selected. Can you help?