Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is quite likely caused by the settings in php.ini being too restrictive. See https://www.ads-software.com/support/topic/68684?replies=6

    You have to turn off the fancy non-HTML editor to embed a media file; this is a Users, Your Profile setting in WP. Upload the file to WP, and enter something like this in your post:
    <coolplayer width="320" height="160" autoplay="false" loop="false">/wp-content/uploads/2006/05/mymovie.mov</coolplayer>

    Downloading the RPC files from coolcode.cn and dumping them in your coolplayer plugin directory and editing coolplayer.js to point there instead of coolcode.cn will almost certainly help performance.

    I have now told you everything I know about CoolPlayer, taken from the English bits of this site: https://www.wordpresscn.com/357 ??

    Forum: Plugins
    In reply to: Category Icon Plugin

    I wanted this to display icons for all of the categories an entry belongs to, so I added a clause that simply loops through them, when the value of $icon_cat = “all”. (I also wanted the icons to link to the appropriate category “page”; which is a hack that won’t necessarily port to other sites’ configurations, so that’s left as an exercise for the reader. {smile})


    function icon_picker($text)
    {
    global $icon_path, $icon_url, $icon_align, $icon_ext, $icon_cat;
    $content = '';
    $cat_names = array();
    $cats = get_the_category('');
    if($icon_cat == "all")
    {
    foreach($cats as $category)
    {
    $cat_to_use = stripslashes($category->cat_name);
    if(file_exists($icon_path . $cat_to_use . $icon_ext))
    {
    $filename = $icon_url . $cat_to_use . $icon_ext;
    $content .= "<img class='caticon' src='" . $icon_dir . $filename . "'";
    $content .= " align='" . $icon_align;
    $content .= "' alt='" . $cat_to_use . " icon' hspace='5' />n";
    }
    }
    $text = $content . $text;
    } else {
    foreach ($cats as $category)
    {
    $cat_names[] = stripslashes($category->cat_name);
    }
    if($icon_cat == "first")
    {
    $cat_to_use = $cat_names[0];
    } else {
    $size = sizeof($cat_names);
    $cat_to_use = $cat_names[$size - 1];
    }
    if(file_exists($icon_path . $cat_to_use . $icon_ext))
    {
    $filename = $icon_url . $cat_to_use . $icon_ext;
    $content .= "<img class='caticon' src='" . $icon_dir . $filename . "'";
    $content .= " align='" . $icon_align;
    $content .= "' alt='" . $cat_to_use . " Icon' />n";
    $text = $content . $text;
    }
    }
    return $text;
    }

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