Forum Replies Created

Viewing 1 replies (of 1 total)
  • I’ve made a small modification to the files “functions.php” and “useroptions.php” to make it possible to actually CHOOSE weither a link should be opened in a new window or not.

    functions.php, search vor line
    echo '<li><a href="'.$qla[$key].'">'.$qlt[$key].'</a></li>';
    replace with
    echo '<li><a href="'.$qla[$key].'"'.(($qlw[$key]==1)?' target="_blank"':'').'>'.$qlt[$key].'</a></li>';

    useroptions.php (if not changed), search for
    $qla[1] = 'http://www.wordpress.org/';
    insert after

    // Target for Quicklunch Button
      // 1 = Open link in a new window
      // 0 = Open link in same window
      // Anything else defaults to Open link in same window
      $qlw[0] = 0;
      $qlw[1] = 1;

    if you changed the default Quicklaunch-links, edit the new paragraph (shown above) to match the Quicklaunch-rules (for each Quicklaunch-link, you need a $qlw[numer] = 0 or 1, like you need a text for each. It follows the same rules).

Viewing 1 replies (of 1 total)