Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • This plugin can no longer work.
    The YouTube api has been updated, and the functions which this plugin relies on are no longer supported. The plugin developer hasn’t updated it for years, so he’s unlikely to add the new functions.

    This plugin is dead, and should probably be removed from WordPress.

    Forum: Plugins
    In reply to: [RPost] no posts, no error
    Thread Starter radagast

    (@radagast)

    Hey I got it.
    watched the code execute, found that the last.fm plugin was causing a jQuery error with certain parameters, which meant that your plugin was able to set the display=’none’, but unable to set the fadeIn() on the same element.
    Is there a reason you use
    document.getElementById(‘randarticle_’+id).style.display=’none’;
    to hide the element when
    jQuery(“#randarticle_”+id+””).hide();
    would be more consistent?

    anyway, thanks for the suggestion, fixed for me now.

    Forum: Plugins
    In reply to: [RPost] no posts, no error
    Thread Starter radagast

    (@radagast)

    it’s https://andrewswebsite.net/ (in the pop-out sidebar). 3 posts, auto-update YES, style 2

    the problem is that the posts are inserted with display:none.
    <div style=”display: none; overflow: hidden;” id=”randarticle_0″>

    thanks!

    Forum: Fixing WordPress
    In reply to: Pasting from Word?

    i think i’ve got it sorted with a few javascript regular expressions.
    this thread is getting to be a great resource collection though…

    Forum: Fixing WordPress
    In reply to: Pasting from Word?

    i’ve got the same problem as jmehta – i’m supporting someone else’s blog, and they haven’t even HEARD of notepad!

    maybe i can get him to install an offline editing app…
    or maybe i’ll find a javscript “clean up word html” script and run it on all posts…

    or how about this:

    <?php if (current_user_can(‘publish_posts’)) { ?>
    whatever whatever whatever
    <?php } ?>

    here’s a better explanation:
    https://boren.nu/archives/2005/12/01/whats-new-in-20-roles-and-capabilities/

    i’ve done something.

    in wp-admin/edit-form-advanced.php around line 100, change

    <div id="categorychecklist">
    <?php dropdown_categories(get_settings('default_category')); ?>

    to


    <?php if ( isset($_GET['postToCat']) ) { $postToCategory = $_GET['postToCat']; } else { $postToCategory = get_settings('default_category'); } ?>
    <div id="categorychecklist">
    <?php dropdown_categories($postToCategory); ?>

    then wherever you want the link in your template (i’ve got it in archive.php inside the post=”metadata” paragraph), add a line like
    Add a <a href="/wp-admin/post.php?postToCat=<?php $category=current(get_the_category()); echo $category->cat_ID; ?>">new post</a> in this category

    WARNINGS:

    • this is an unsupported hack to the core wordpress files. next time you upgrade wordpress you’ll have to be careful that it doesn’t break.
    • there really should be extra error checking in function get_nested_categories in admin-functions.php, because it is now possible to make a post to no category at all.
    • this code only expects one category, so if you have a post assigned to more than one it won’t select them both.

    I’d like the same thing myself – i have a few categories with different people posting in each one, so it would be easy (and a bit more foolproof) if their own category had a link to the “write a post” page with their category selected.

    attempting a hack now…

    andrew

Viewing 8 replies - 1 through 8 (of 8 total)