Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:40 am EST

Geeklog Forums

How can Links open in a new window?


Status: offline

cityny

Forum User
Newbie
Registered: 01/26/04
Posts: 14
artistic
I have tried the _blank tag as previously described in the forums, but I need the link to open as the geeklog is in a frame.

Can anyone walk me through each step of the process? I'd really appreciate it.

Thanks!
H Big Grin
 Quote

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...
 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...


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.
 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


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
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
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.
 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.


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
     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.
 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
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Add target in both of these:

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;
                    }


 
 Quote

Status: offline

cityny

Forum User
Newbie
Registered: 01/26/04
Posts: 14
Quote by Turias: Add target in both of these:

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
 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