Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 10:08 pm EST

Geeklog Forums

opening links in new windows


cray

Anonymous
Is there any way to have links that I post in my Links block or any from my RSS feeds to open in a new window?
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807

cray

Anonymous
I did it and it works, but only if you are on the links page.
I'm trying to do the same thing to the links that are in my blocks...the links block as well as my RSS blocks.

Thnks
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
Did you read the entire thread? It also tells how to do it for the What's New block.

All you have to do is find wherever the links are being created in HTML, and add target="_blank" to them.
 Quote

cray

Anonymous
Yeah, I read the whole link. Looked where you said don't know which of the 41 hrefs to add target-"_blank" to.

 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
The good news: you don't have to add a tag to every link in your link page.

Go to : layout/yourtheme/links/linkdetails.thtml
look for: {link_url}
add target"_blank" after it and before the >

All links in your link page will open up in a new window.

Hope it helps,

inSPIREmin

www.inSPIREministries.com

www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
sad
You know these "keep people on your site with content, not using lame tricks" and "it's the users decision to open a new window" ideas?

geKow


just to please Dirk, but I guess he just ignores the topic meanwhile Wink
 Quote

cray

Anonymous
what's your point.

 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
indescribable
My content caters to a wide age range. I have a lot of us 40 somethings and older that don't have the first clue how to "open in a new window" on their own and get lost if they can't easily click back to my site. Those that express on opinion, see the open in a new window automation as "value added." Neutral
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

geKow

Forum User
Full Member
Registered: 01/12/03
Posts: 445
He, don't tell me >40 can't open new windows on their own Wink

My point is, using that is nearly as bad style as pop up windows, but I know that people don't bother that. *sigh*

geKow (*1963)
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
A pop-up is a pain in the ...

When I click on a link and it opens up in a window, where I can click as deep as I like, then close it with one click to go back to look at more links ... that is a convenience.
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

Status: offline

inspiremin

Forum User
Regular Poster
Registered: 01/07/04
Posts: 111
*** I have more fun arguing on forums***

It gives an old geezer like me a reason to live. Wink
www.Scripturetoolkit.com www.inSPIREministries.com
 Quote

cray

Anonymous
so anyway, can someone help me with what code I should look for in my lib-common.php doc that needs to be modified with target="_blank". As I posted earlier I found 41 hrefs and don't know which one to modify.
I was able to make the change to my "web resources" page as per Turias post but would like to have the links in any or all of my blocks to open in a new window instead of redirct my users elsewhere.

I appreciate the help, I don't do this very much and don't want to wreck my site.

 Quote

Status: offline

casper

Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
On line 4310 enter target="_blank" after < a and before href.


Hope this helps, it works fine for me Big Grin
Anf thanks to the posters, couldent done it whitout you Wink
 Quote

All times are EST. The time is now 10:08 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