Support » Fixing WordPress » anyone using Post Thumb Revisited ?

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

    bump bump 🙂 same curiosity here! sometimes i need to have the thumb with no link, some other times i want to give a custom link for specific images…

    Is it OK to Hard Coding it?

    Oke what I do is :

    Open:
    lib/post-thumb-classes.php

    Find:

    // Starts output using no javascript library
    		else {
    			if ($this->showpost || !$this->has_image)
    				$this->html = $this->n.'<a href="'.$this->post_url.'"';
    			elseif ($this->showlink)
    				$this->html = $this->n.'<a href="'.$this->default_link.'"';
    	                else
    				$this->html = $this->n.'<a href="'.$this->the_image.'"';
    
    	                $this->html .= ' title="'.htmlspecialchars($this->title).'"';
    			if ($this->myclasshref !='') $this->html .= ' class="'.$this->myclasshref.'"';
    			$this->html .= '>';
    
    			$this->html .= $this->nt.'<img src="'.$this->thumb_url.'" alt="'.htmlspecialchars($this->alt_text).'"';
    		        $this->html .= $this->myclassimg;
    		        $this->html .= $this->align;
    	                $this->html .= ' />'.$this->n.'</a>';

    Replace with:

    // Starts output using no javascript library
    		else {
    			if ($this->showpost || !$this->has_image)
    				$this->html = $this->n.'';
    			elseif ($this->showlink)
    				$this->html = $this->n.'<a href="'.$this->default_link.'"';
    	                else
    				$this->html = $this->n.'<a href="'.$this->the_image.'"';
    
    	                $this->html .= '';
    			if ($this->myclasshref !='') $this->html .= '';
    			$this->html .= '';
    
    			$this->html .= $this->nt.'<img src="'.$this->thumb_url.'" alt="'.htmlspecialchars($this->alt_text).'"';
    		        $this->html .= $this->myclassimg;
    		        $this->html .= $this->align;
    	                $this->html .= ' />'.$this->n.'';

    The thing I do is removing “<a href=” at the first statement, where it was using the “link=p” in my the_thumb() code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘anyone using Post Thumb Revisited ?’ is closed to new replies.