Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:40 am EST
Geeklog Forums
How can Links open in a new window?
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
What do you mean? You want to open another site wrapped by your geeklog header/footer/blocks? You can't really do this since Geeklog doesn't use frames.
Although, you might be able to make a static page that holds an iframe to do what you want...
Although, you might be able to make a static page that holds an iframe to do what you want...
9
8
Quote
Status: offline
cityny
Forum User
Newbie
Registered: 01/26/04
Posts: 14
Quote by Turias: What do you mean? You want to open another site wrapped by your geeklog header/footer/blocks? You can't really do this since Geeklog doesn't use frames.
Although, you might be able to make a static page that holds an iframe to do what you want...
Although, you might be able to make a static page that holds an iframe to do what you want...
No, I want the Links Submitted to open in a totally new blank window - just like a regular target="_blank" tag but I've put this in and it still doesn't work.
10
11
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
Status: offline
cityny
Forum User
Newbie
Registered: 01/26/04
Posts: 14
Quote by Turias: http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=29112
Hi, that's the exact link that I referenced in my first post. That method didn't work for me. It's driving me crazy.
I appreciate your help!!
hamish
7
10
Quote
Status: offline
cityny
Forum User
Newbie
Registered: 01/26/04
Posts: 14
Quote by Turias: Well, that's how you do it.
It would be more helpful if you showed us how you tried to do it so we can point out your error instead of just telling us that it didn't work.
It would be more helpful if you showed us how you tried to do it so we can point out your error instead of just telling us that it didn't work.
Okay, the page is two frames - the top being a menu header, the bottom being geeklog.
On the geeklog home page, there is Links in the bottom right block - the ones where by default there is a link to the Geeklog project.
Ok, in my theme folder I have the file links/linkdetails.thtml
It is in the tag I have added target="_blank"
Does this help. Hope so.
Thanks again
H
6
9
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
As I said in the other thread, linkdetails only affects links in the links.php section of the site. The block is built in lib-common, so if you want to fix the block, you'll have to add target="_blank" to lib_common, too.
8
9
Quote
Status: offline
cityny
Forum User
Newbie
Registered: 01/26/04
Posts: 14
Quote by Turias: As I said in the other thread, linkdetails only affects links in the links.php section of the site. The block is built in lib-common, so if you want to fix the block, you'll have to add target="_blank" to lib_common, too.
Thanks - do you know where exactly to add it to? There doesn't seem to be any regular (html style) tage - I'm very new to PHP.
thanks
H
7
10
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
Add target in both of these:
{
$newlinks [] = '<a href="' . $lcount . '" title="'
. $A['title'] . '">' . substr( $A['title'], 0, 16 )
. '...</a>' . LB;
}
else
{
$newlinks[] = '<a href="' . $lcount . '">'
. substr( $A['title'], 0, $itemlen ) . '</a>' . LB;
}
Text Formatted Code
{
$newlinks [] = '<a href="' . $lcount . '" title="'
. $A['title'] . '">' . substr( $A['title'], 0, 16 )
. '...</a>' . LB;
}
else
{
$newlinks[] = '<a href="' . $lcount . '">'
. substr( $A['title'], 0, $itemlen ) . '</a>' . LB;
}
10
9
Quote
Status: offline
cityny
Forum User
Newbie
Registered: 01/26/04
Posts: 14
Quote by Turias: Add target in both of these:
{
$newlinks [] = '<a href="' . $lcount . '" title="'
. $A['title'] . '">' . substr( $A['title'], 0, 16 )
. '...</a>' . LB;
}
else
{
$newlinks[] = '<a href="' . $lcount . '">'
. substr( $A['title'], 0, $itemlen ) . '</a>' . LB;
}
Text Formatted Code
{
$newlinks [] = '<a href="' . $lcount . '" title="'
. $A['title'] . '">' . substr( $A['title'], 0, 16 )
. '...</a>' . LB;
}
else
{
$newlinks[] = '<a href="' . $lcount . '">'
. substr( $A['title'], 0, $itemlen ) . '</a>' . LB;
}
You're the best - thank you so much.
H
10
6
Quote
All times are EST. The time is now 01:40 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