Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 04:43 am 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?
9
5
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.
<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.
8
6
Quote
Chris
Anonymous
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
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
6
6
Quote
All times are EDT. The time is now 04:43 am.
- 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