Yuri Victor
Forum Replies Created
-
Forum: Plugins
In reply to: [Liveblog] [Plugin: Liveblog] Feature request: editing past entriesYes. A workflow for copy editors would be beneficial:
1) Edit.
2) And save as “pending review,” so an editor can review a post before publishing.
Editors become even more crucial during live coverage.
At The Washington Post we use our own in-house liveblogging plugin (example).
We switched from the auto-update (similar to ScribbleLive) to ‘x new updates’ (similar to Twitter) on all our liveblogs within the past month. One of the problems we encountered with the auto-updates was that users were losing their place when new updates would push down what they were reading, which was especially a problem if a user was watching a video update (example) and an even bigger problem when people would post several images into a liveblog update pushing the page down even farther (example).
The Twitter style is, in my opinion, more user-friendly.
Forum: Plugins
In reply to: [Liveblog] [Plugin: Liveblog] Massive bug, I think@johnkoetsier The change to comments is an update in WordPress 3.5.
Looks like the liveblog plugin has been made backwards compatible for 3.4.1 on github and the push will be available here on WordPress soon.
Forum: Plugins
In reply to: [Liveblog] [Plugin: Liveblog] Massive bug, I thinkOn 3.4.1., the posts disappear because they haven’t been approved yet.
This is fixed in 3.5 and an update for backwards compatibility is coming soon.
Forum: Plugins
In reply to: [Liveblog] [Plugin: Liveblog] Massive bug, I thinkOn trunk, I’m not experiencing this issue.
The liveblog entries are pulled based on the post ID which doesn’t change if the main entry is edited.
Forum: Plugins
In reply to: [Liveblog] Normal Users dont see liveblog partWas having the same problem with posts not appearing on a clean install of WordPress 3.4.1.
Pulled in the nightly build and everything is working swimmingly.
Forum: Plugins
In reply to: [Liveblog] Error message on liveblog postsWhat version of WordPress are you using?
wp_is_mobile() is a fairly new function, so if you’re using anything older than WordPress 3.4 then it would cause an error.
Forum: Plugins
In reply to: [Live Blogging] Live Blogging: Limit length of liveblog / paginate liveblog@itcafeonline No problem. Give me a week. I’ll throw it up on github.
Forum: Plugins
In reply to: [Live Blogging] Live Blogging: Limit length of liveblog / paginate liveblogHow to paginate with the live-blogging plug-in:
This will give you 10 posts before comments with a button that says “Load more posts.” When clicked it loads 10 more posts above the button.
live-blogging.php
In
function live_blogging_shortcode
right before$post = $parent_post;
add this:$s .= '<div id="more-entries"></div><!-- /#more-entries -->'; $s .= '<button id="load-more-entries">Load more posts</button>';
Also, change the posts_per_page in
WP_Query
to 10 or whatever you want to use, just make sure you keep it consistent in the next function belowAdd this to the bottom of live-blogging.php
add_action('wp_ajax_load_more_entries', 'wp_load_more'); add_action('wp_ajax_nopriv_load_more_entries', 'wp_load_more'); function wp_load_more(){ $paged = $_GET['page_no']; $id = $_GET['id']; $posts_per_page = get_option('posts_per_page'); $q = query_posts(array( 'paged' => $paged , 'post_type' => 'liveblog_entry' , 'post_status' => 'publish' , 'liveblog' => $id , 'posts_per_page' => 10 )); while ( have_posts() ) : the_post(); echo '<div id="liveblog-entry-' . $q->post->ID . '">' . live_blogging_get_entry($q->post) . '</div>'; endwhile; exit; }
live-blogging.js
In
function live_blogging_poll
add this:jQuery(document).ready(function($) { var count = 2; $('#load-more-entries').click(function(){ loadEntries(count); count++; }); function loadEntries(pageNumber){ $('a#inifiniteLoader').show('fast'); $.ajax({ url: live_blogging.ajaxurl , cache: false , type: 'get' , data: { action: 'load_more_entries' , page_no: pageNumber , id: id } , success: function(html){ $("#more-entries").append(html); } }); return false; } });
@midwestkel I’m not using Meteor. I use the polling option.
Forum: Plugins
In reply to: [Live Blogging] Live Blogging: Limit length of liveblog / paginate liveblogThis would be a nice option to have.
How much traffic are you getting? Using polling, I ran a test with 250,000 unique visitors over three hours and saw less than a 10 percent server load.
Recommendations:
1) Use nginx.
2) Use caching for anything that isn’t live.
3) Change the jQuery post request to a get request.
function live_blogging_poll(id) { jQuery.ajax({ url: live_blogging.ajaxurl, cache: false, type: 'get', data: { action: 'live_blogging_poll', liveblog_id: id }, success: function(entries) { for (entry in entries) { live_blogging_handle_entry(entries[entry]); } }, error: function(xhr,textStatus){ console.log(textStatus); }, datatype: 'json' }); setTimeout(function(){live_blogging_poll(id)}, 60000) }
Forum: Plugins
In reply to: [Live Blogging] [Live Blogging]If you don’t plan on auto-updating old entry changes:
In live-blogging.js
if(0 == jQuery(div_id).length) { ... } else { ... }
Remove the else statement above.