wuh
Forum Replies Created
-
Forum: Plugins
In reply to: [Disqus Comment System] High server load and dsq_sync_forum problemI should also mention that I have experienced the same issue as others – our cron variable in wp_options contained 65012 references to dsq_sync_forum which was crashing our site (mysql out of memory errors and high cpu load).
I believe that something broke with the current Disqus plugin version and WordPress 4.5 – it was only after we upgraded that we started to see this problem. The earliest scheduled reference to dsq_sync_forum in the cron variable correlates exactly with the date we upgraded WordPress.
Furthermore, I had begun to see Disqus errors when debugging at the site front-end, Disqus was complaining of a syntax error (‘unexpected < symbol’) when it was trying to automatically sync comments (cf_action).
This seems like an issue Disqus need to address. For now, the fix seems to be to disable automatic syncing in your Disqus settings. Curiously enough, our comments still seem to be kept in sync and I believe this is because dsq_request_handler() is run on WP init.
I hope somebody from Disqus will add to this thread.
Forum: Plugins
In reply to: [Disqus Comment System] High server load and dsq_sync_forum problemIt should be noted that you will need to make sure the cron job points to the proper location of import-comments.php on your server:
0 5 * * * /usr/bin/php -q ~/www/wp-content/plugins/disqus-comment-system/scripts/import-comments.php > /dev/null
Not every site will be at ~/www/… so check you get this right!
Forum: Plugins
In reply to: [Diary & Availability Calendar] Possible add onThat’s a really big change, I wouldn’t do it for this, I think there are probably better plugins out there for that kind of thing.
Forum: Plugins
In reply to: [Diary & Availability Calendar] Removing time – showing just dateYou’d just need to mark which days are unavailable yourself through the plugin’s settings page. Those days will appear as unavailable at the front-end. You’d probably then want to remove the “Some slots taken, see below” line from the legend. If you’re comfortable editing PHP, change line 304 in diary-and-availability-calendar.php from:
$legend .= ' <div id="daac-legend"> <div class="legend-item"> <span class="available">_</span>Available all day </div> <div class="legend-item"> <span class="bookings">_</span>Some slots taken, see below </div> <div class="legend-item"> <span class="unavailable">_</span>Unavailable </div> </div> ';
to:
$legend .= ' <div id="daac-legend"> <div class="legend-item"> <span class="available">_</span>Available all day </div> <!--<div class="legend-item"> <span class="bookings">_</span>Some slots taken, see below </div>--> <div class="legend-item"> <span class="unavailable">_</span>Unavailable </div> </div> ';
Hope that helps
Hi, I’m afraid that’s not possible at the moment, there’s just one global calendar.
Super
Thanks atok2! Could I take a look at those files too? Maybe in a later version I could make this a feature.
Hi Christine, please try updating to the latest version, 1.0.3. Let me know if the problem goes away.
This is fixed in the latest version, 1.0.3, please update
I will try to add this as a feature in the next version
I believe I answered this via e-mail? Let me know how you get on.
Is javascript enabled in your browser?
Forum: Plugins
In reply to: Formatting output correctlyFor some reason, no matter how long I’ve been searching, I always find the answer moments after posting…
The function is wpautop()
Hope it helps someone!
Forum: Plugins
In reply to: Enable WYSIWYG editor in pluginWell, with the help of another post I’ve managed to solve the problem, everything works bar the media upload buttons (any suggestions?):
In your plugin you need to enqueue the following within the admin_print_scripts action:
wp_enqueue_script('post'); if ( user_can_richedit() ) wp_enqueue_script('editor'); add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('word-count');
On the page writing your textarea to the page, replace it with the following:
<div id="poststuff"> <div id="postdivrich"> <h3><label for="content">Your Label</label></h3> <?php the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2); ?> </div> </div>
The parameters for the_editor are:
$content – content to echo into the textarea
$id – id to give the textarea element
$prev_id – not sure what this is, I used an empty string
$media_buttons – set to false because they don’t work in my implementation
$tab_index – not sure again, but default value worksI hope this is of some use ??
NOTE: If you do not specify ‘content’ as your textarea ID, it will not get initialised correctly!
Forum: Plugins
In reply to: Knowing which page_id a plugin is called from$post->post_content is what I needed, thanks for your pseudo-help