Forums

[resolved] [Plugin: Thumbnail For Excerpts] Issues with default image (3 posts)

  1. zkorwin
    Member
    Posted 2 years ago #

    I've set the "createth" value to yes, but still no default image when no image is present in the post.

    Does anyone know how to make it work or even have it working?

  2. zkorwin
    Member
    Posted 2 years ago #

    I was thinking that it puts a default image in when no image is present which is not the case. I fixed it so it can do that however. Put this code:

    if($pos===false){
    echo("<img src=\"http://www.yoursite.com/yourimage.jpg\" class=imgtfe hspace=5 align=left width=100 height=58 border=0>");
    }

    Before this:

    if($pos!==false){
    		$content=substr($content,$pos,stripos($content,">",$pos));
    		$pos = stripos($content,"src=")+4;
    		$stopchar=" ";

    Where you would just replace the attributes with ones that you need.

  3. radukn
    Member
    Posted 2 years ago #

    Solved since 2.0.

Topic Closed

This topic has been closed to new replies.

About this Topic