Recent Topics

including a title tag in your read more link

Started by on Aug 21, 2005 – Contents updated: Aug 21, 2005

Aug 21, 2005 22:20    

This comes from a thread in the general b2evolution questions forum. Since it's a hack I figured I'd put it over here. BTW this is untested. I'm pretty sure it'll work, but I'm also pretty sure the earth is flat and the sun goes around it.

In b2evocore/_class_item.php find:

Code

{ // We are offering to read more
        $output = $content_parts[0];
        $output .= $before_more .
                    '<a href="'.$this->gen_permalink( 'pid', $more_file ).'#more'.$this->ID.'">'.
                    $more_link_text.'</a>' .
                    $after_more;
      }
Change it to:

Code

{ // We are offering to read more
        $output = $content_parts[0];
        $output .= $before_more.'<a href="'.$this->gen_permalink( 'pid', $more_file ).'#more'.$this->ID.'" ';
        $output .= 'title="Read full text of '.$this->title.'">'.$more_link_text.'</a>'.$after_more;
      }

I've had hardships sometimes building strings that way, and I never know if I should be using $this-> or $Item->get or whatever else might work.

Aug 21, 2005 23:31

Glad to hear that, and the idea of a lego PC box is freakin awesome! Got a Lincoln Log printer in the future?


Form is loading...

Social CMS software – This forum is powered by b2evolution CMS, a complete engine for your website.