Forum Replies Created

Viewing 15 replies - 31 through 45 (of 52 total)
  • Thread Starter callmeforsox

    (@sunscream)

    Nevermind. After many hours of frustration, I figured out the paged comments plugin was causing the error. Line 67 of paged-comments.php should be changed to:

    if (is_attachment()) {
        $template = get_attachment_template();
    } else if (is_single()) {
        $template = get_single_template();
    } else if (is_page()) {
        $template = get_page_template();
    }

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    Not sure what you mean by separate categories. Not sure about pagination, shouldn’t be too hard to add couple lines of code for it.

    This works with 2.1. I’ve been using it with it without any problems. Server runs suphp.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    @macromail

    Might have to redo a new loop for cat=3

    @beku76

    Not sure if previous link and next link are defined through the loop. Right now only works as posts generated in the loop. If that makes sense at all. There probably is a way to hack it to work. Might want to look more into php using a for i loop.

    @soswiss

    <?php
    $posts = get_posts(‘numberposts=6&offset=9&order=DESC’);
    foreach($posts as $post) :
    setup_postdata($post);
    $post_link = tb_post_thumb(true,$post->post_title);
    if ( !empty($post_link) ) {
    echo $post_link; }
    endforeach;
    ?>

    If you want to do it that way, use false instead of true.

    @jonnyargh
    Can you paste your loop code?

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    For those of you having problems with deleting files, can you test this out? On line 102 in post-thumbs.php there should be $thumb->outputFile($save_dir."/".$rename_to, "");. After that line put in chmod($save_dir."/".$rename_to,0666);

    @theiconoclast31
    What does it look like when you set the resize to 75×75 in the options panel? And if you tick crop exact in the options panel? On your site it looks like the image is cropping to the size. What does the full image look like?

    @wagawaga
    I’m not sure how that plugin would work with my plugin. When I have some time, I might be able to check it out. Do you have a link?

    @elana10
    <div class="post-image"><?php echo tb_post_thumb(true, 'alt text'); ?></div> Does that also give a default image? This only works when used in The Loop.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    @wagawaga
    Video regex if you are using the extreme video plugin like me would be: [gv data=”(.*?)”][\gv]
    You may want to look up how to do regex if you have something else.

    Video default image is the URL to where the image is.

    Folder name, append, prepend text is where the thumbnail is saved to.

    Example
    folder name: thumbs
    append: thumb
    Script will make a thumbnail out of example.jpg, save it into thumbs folder and rename example.jpg to example_thumb.jpg

    @fevermore
    This can only be used in The Loop because it scans the post for an image. There might be a way to make a new loop to get the next and previous posts and generate your own code.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    @Macromail
    I’m not sure what the problem with that is. It does not do anything when posting an article. It will only do something when it’s called. Might view source to see what’s going on or maybe it’s a php error.

    @emanoelmelo
    Sorry you had this problem. I think it’s attributed to a sticky bit in the script. If you can open up the script and search for sticky bit there should be a line like

    if (!is_dir($save_dir)) mkdir($save_dir,01775);

    change 01775 to 0777

    I’m not sure if this will work since my host doesn’t have this problem, but I think I’ve experienced it before.

    @feverinlove
    This plugin will create thumbs for any post as long as the function is called in the loop.

    Thread Starter callmeforsox

    (@sunscream)

    Nevermind, I just took the longer route and used get_linksbyname

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    As of right now, it can only play with images on the local server.

    I have never used netserver, but try creating a php script and put echo $_SERVER['DOCUMENT_ROOT']; in it and run it to see if that will give you the base path.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    For your html/php, try this:

    <div class="post-image"><?php echo tb_post_thumb(true); ?></div>

    I think all that matters is it should be used in The Loop.

    Edit: Oh yea, I see you already found that out. I made it so you have to echo yourself.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    Oops, sorry. Please, download again. The fix seemed to have not uploaded correctly. Right click, save as just in case it’s still cached. Settings should still be saved.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    I have uploaded a fixed version. Please tell me if you still get the same error.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    For anyone using this, it has been updated. You can now specify a regular expression to check if a post has a video file (actually I guess anything) and use a different default image for that. Just make sure you use the right regex like for wp-extreme video it will need to find [gv data=… Also, fixed some coding issues for crop / resize and added an option to crop an image after resizing. Remember to escape your regex on double quotes.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    For linking, instead of just echo $post_link, you could do this.

    if ( !empty($post_link) ) {
    ?><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>" class="highlight"><?php echo $post_link; ?></a><?php }
    endforeach;

    You could use an unordered list for putting them on top of each other and use css to format it however you want.

    Forum: Plugins
    In reply to: New plugin: Post Thumbs
    Thread Starter callmeforsox

    (@sunscream)

    @Macromail

    I think that problem may be related to the base path you have to set. I would suggest making a small file called test.php and upload it to your root folder on your server. In test.php, write

    <?php echo $_SERVER['DOCUMENT_ROOT']; ?>

    Navigate to that file in a browser and it will echo the base path you should use (hopefully). Did you set the base path to “/home/.dodge/user/domain.com”?

    @wordpresschina

    I’m not sure which part you are having problems on, but this is what I have put in for my sidebar.

    <?php
    $posts = get_posts('numberposts=6&offset=9&order=DESC');
    foreach($posts as $post) :
    setup_postdata($post);
    $post_link = tb_post_thumb(true,$post->post_title);
    if ( !empty($post_link) ) {
    echo $post_link; }
    endforeach;
    ?>

    Thread Starter callmeforsox

    (@sunscream)

    I think I’ll have to give that transparent gif idea a go.

Viewing 15 replies - 31 through 45 (of 52 total)