Welcome to Geeklog, Anonymous Thursday, July 18 2024 @ 06:42 pm EDT

Geeklog Forums

making links go to blank page


Status: offline

qwikstreet

Forum User
Junior
Registered: 08/15/02
Posts: 32
All my links on links.php and my rotating banners and my rdf feed always open in the window my site is. Is there somewhere in config.php that I can make everything open in a blank page?
 Quote

Status: offline

r_f_o_t

Forum User
Full Member
Registered: 07/30/03
Posts: 241
Location:Illinois
For the links.php, change <a href="{link_url}"> to
<a href="{link_url}" target="_blank"> in linkdetails.thtml, which is located in the links directory (folder) in each theme directory (folder).
Too many hands on my time.
 Quote

Chris

Anonymous
rockin
The links on your main index page will still go to the same window your site is in.

If you want, you can edit the lib-common.php file (or add it to lib-custom.php, preferably) and find the following (it's around line 4260):

// Trim the length if over 16 characters
$itemlen = strlen( $A['title'] );
if( $itemlen > 16 )
{
$newlinks [] = '<a href="' . $lcount . '" title="'
. $A['title'] . '" target="_blank">' . substr( $A['title'], 0, 16 )
. '...</a>' . LB;
}
else
{
$newlinks[] = '<a href="' . $lcount . '" target="_blank">'
. substr( $A['title'], 0, $itemlen ) . '</a>' . LB;
}

Note the target="_blank" I added to those two parts.

--
Chris
http://www.keeponfighting.net
 Quote

All times are EDT. The time is now 06:42 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content