Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • This worked for me as well. I hope Alex or one of the other code slingers for the plugin can get this patch worked into the next update.

    I just had a similar problem tonight when trying take action if there were approved comments for a post. Solved it like this:

    <? php
    
    $comments_array = get_comments('post_id=' . $id . ',status=approve');
    $comments_approved  = count($comments_array);
    ?>
    
    <?php if (0 != $comments_approved){ ?> <code><em>blah blah</em></code><?php } ?>
    Forum: Plugins
    In reply to: Anyfont Plugin Help
    Thread Starter montanamax

    (@montanamax)

    I deleted everything related to the plugin and installed the new version (6.3) from scratch – by hand, as my development server isn’t open to the internet for the plugin manager to do the install.

    When 6.3 activated, it created the fonts and font-cache directories, but did not create a styles.ini file – but it did delete the styles.default file from the anyfont plugin directory. Maybe something to do with permissions caused that to fail, but the fonts and font-cache directories are owned by the www-data account and group, and have 777 permissions (everybody read and write). Anyway, I extracted that file from the installation file and manually inserted it into the fonts directory and changed the permissions to 777.

    I then uploaded a font, created a style, and told it to take over post titles. The code did rewrite the html to make the post title an image pointing to the images/style directory, but no image file was created in the fonts-cache directory and the browser defaulted to displaying the text in the alt tag instead of the font and color image I was hoping for.

    Then I decided to go out on a limb and install the plugin on my public facing server so I could let the plugin manager to the install process. And it all worked beautifully!!!

    So I’d still like to figure out what’s going weird in the manual install process – I’m suspecting it has to do with permissions – but since the plugin works smoothly on my public facing server I’m a very happy camper right now!!

    Thanks!

    Great content – nice layout. Makes me want to pack a bag and hit the road. Did you custom build the theme?

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