Welcome to Geeklog, Anonymous Sunday, December 29 2024 @ 11:04 am EST
Geeklog Forums
Links _blank
Status: offline
trampoline
Forum User
Full Member
Registered: 02/24/06
Posts: 392
I would like all links that are external to a site weather in stories or in the links section to open in a new window is there a global pref for this now.
Where would I change it ?
Where would I change it ?
13
9
Quote
Status: offline
trampoline
Forum User
Full Member
Registered: 02/24/06
Posts: 392
Quote by: Laugh
There is no global pref for this and there is no easy way to do this site wide.
EEK..
any template I can alter ?
8
10
Quote
Status: offline
Laugh
Site Admin
Admin
Registered: 09/27/05
Posts: 1470
Location:Canada
For the links plugin I believe you can alter the linksdetail.thtml template file. You an add the target tag there.
As far as the rest is concerned it all depends, ie for stores you would have to go back and edit them manually since those are hard coded in the story itself.
One of the Geeklog Core Developers.
As far as the rest is concerned it all depends, ie for stores you would have to go back and edit them manually since those are hard coded in the story itself.
One of the Geeklog Core Developers.
10
13
Quote
Status: offline
Ook
Forum User
Chatty
Registered: 07/26/06
Posts: 39
In linkdetails.thtml
I tried changing
<strong><a href="{link_url}" title="{link_actual_url}">{link_name}</a></strong> ({link_hits}) {link_edit}<br />
{link_description}
</li>
to
<strong><a href="{link_url}" target="_blank" title="{link_actual_url}">{link_name}</a></strong> ({link_hits}) {link_edit}<br />
{link_description}
</li>
Didn't cause any problems but it is not opening links in a new page.
"A conclusion is the place where you got tired of thinking."--Steven Wright
I tried changing
Text Formatted Code
<li><strong><a href="{link_url}" title="{link_actual_url}">{link_name}</a></strong> ({link_hits}) {link_edit}<br />
{link_description}
</li>
to
Text Formatted Code
<li><strong><a href="{link_url}" target="_blank" title="{link_actual_url}">{link_name}</a></strong> ({link_hits}) {link_edit}<br />
{link_description}
</li>
Didn't cause any problems but it is not opening links in a new page.
"A conclusion is the place where you got tired of thinking."--Steven Wright
13
14
Quote
Status: offline
trampoline
Forum User
Full Member
Registered: 02/24/06
Posts: 392
how about the rss feed in a portal block ?
that really should go to a new window....
any hope there ?
that really should go to a new window....
any hope there ?
8
9
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
I would presume you need to find this line in COM_rdfImport() in lib-common.php and add target="_blank" to it.
. $title . '</a>';
$content = '<a href="' . $feed->articles[$i]['link'] . '" target="_blank">'
. $title . '</a>';
And then you have to maintain this hack with every GL update.
Text Formatted Code
$content = '<a href="' . $feed->articles[$i]['link'] . '">'. $title . '</a>';
$content = '<a href="' . $feed->articles[$i]['link'] . '" target="_blank">'
. $title . '</a>';
And then you have to maintain this hack with every GL update.
11
7
Quote
Status: offline
trampoline
Forum User
Full Member
Registered: 02/24/06
Posts: 392
Quote by: jmucchiello
I would presume you need to find this line in COM_rdfImport() in lib-common.php and add target="_blank" to it.
$content = '<a href="' . $feed->articles[$i]['link'] . '">'
. $title . '</a>';
Where would I add that ?
12
8
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
You missed my stealth edit.
9
10
Quote
Status: offline
trampoline
Forum User
Full Member
Registered: 02/24/06
Posts: 392
Quote by: jmucchiello
You missed my stealth edit.
Got it thanks...
10
10
Quote
All times are EST. The time is now 11:04 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