Support » Plugin: Posts per Cat [Unmaintained] » [Plugin: Posts per Cat] Problems with activating CSS

  • Hi Aleksandar,

    Your plugin is great !!

    I can’t activate the css (in WP plugins/Editor) when i select your plugin, the files .ccs are “not activated”).
    When i edit the source code of my page, i find this

    <link rel="stylesheet" href="wp-content/plugins/posts-per-cat/ppc.css" type="text/css" media="screen" /><link rel="stylesheet" href="wp-content/plugins/posts-per-cat/ppc-list.css" type="text/css" media="screen" />
    When i click on “wp-content/plugins/posts-per-cat/ppc.css”, i have a file not found message ! I verified that all files are in directory “wp-content/plugins/posts-per-cat”

    See here
    Sorry for my poor english…

    Congratulations for your job !

Viewing 2 replies - 1 through 2 (of 2 total)
  • I found in wp-postspercat.php in the firsts lines

    define( 'POSTS_PER_CAT_DIR', PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)) );

    i just it changed to

    define( 'POSTS_PER_CAT_DIR', '/' . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)) );

    And now, it’s ok and i can say again “What a wonderful job you did”

    Thank you !!!!

    Sorry for too late reply, no time to check WP forums this days.

    This CSS PATH issue in version 0.0.14 is related to blogs placed in subdomains, I think. Workaround is to replace line 60 in wp-postspercat.php file (that looks like):

    echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_DIR.'/ppc.css" type="text/css" media="screen" />';

    with

    echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_URL.'ppc.css" type="text/css" media="screen" />';

    and also line 64

    echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_DIR.'/ppc-list.css" type="text/css" media="screen" />';

    with

    echo '<link rel="stylesheet" href="'.POSTS_PER_CAT_URL.'ppc-list.css" type="text/css" media="screen" />';

    In next release this will be fixed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Posts per Cat] Problems with activating CSS’ is closed to new replies.