Hi all, Can anyone see what is wrong with the code below?

if ( $this->get( 'AuthorURI' ) ) { $value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value ); } elseif ( ! $value ) { $value = __( 'Anonymous' ) }
I keep getting an error message: Parse error:syntax error, unexpected variable "$s" in Please some Hero

  if ( $this->get( 'AuthorURI' ) ) 
  {
   $value = sprintf( '<a href="%1 ' . $s . '">%2' . $s . '</a>', $this->display( 'AuthorURI', true, $translate ), $value ); 
  } 
  elseif ( ! $value ) 
  { 
    $value = __( 'Anonymous' ) 
  }

try this ( sorry, not really familiar with php ). If you can show more lines of your code that will help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.