Joo!BB - Making Community
Joo!BB - Joomla! Bulletin Board
Board Index
>
Support Forum
Links open new page??
Welcome, Guest

4 Replies

by steve on 01/16/2009 00:06
Post Links open new page??

When i add links in article when they are clicked on they open in new page, how can i get these to open in same window as i have articles linking each other and after time i have 50 pages opened, how to stop this please would be awesome for me


steve | Joined Board: 01/16/2009 00:00 | Last Visit: 08/10/2009 11:20
Joo!BB - Newie
Registered
Posts: 5
Offline Member is Offline
View all users posts


by jhetrick62 on 01/16/2009 03:08
Post Re: Links open new page??

That is a Joomla programming option. It's in the link set-up in the joomla menu definitions. If you had your forum open into a new window, probably that is carrying over would be my guess.


jhetrick62 | Joined Board: 10/16/2008 03:04 | Last Visit: 09/03/2010 19:10
Joo!BB - Master
Moderator
Posts: 407
Offline Member is Offline
View all users posts


by steve on 01/16/2009 04:57
Post Re: Links open new page??

Quote by Unknown:That is a Joomla programming option. It's in the link set-up in the joomla menu definitions. If you had your forum open into a new window, probably that is carrying over would be my guess.



ok i dont mean the menus i mean when ya post like a link within post. that refers to another forum post it always opens in new link and is annoying?? how i fix this as if i add [url][/url] to anything once published always opens in new screen


steve | Joined Board: 01/16/2009 00:00 | Last Visit: 08/10/2009 11:20
Joo!BB - Newie
Registered
Posts: 5
Offline Member is Offline
View all users posts


by viet4777 on 01/16/2009 10:33
Post Let's try

Change the 'url' as following in the com_joobb/system/joobbengine.php (line 148 )
Demo: http://vatlieu.us/forum/topic/10-discovery-keyword-trend-in-each-country-or-all-over-the-world-google-trends-for-keyword-research-.html
Code

			case 'url':

$host = str_replace('http://','',JURI::base());
$host = str_replace('/','',$host);
 
$url = $argument ? $argument : $innerString;
$pos = strpos($url, $host);
if ($pos > 0) $target = ''; else $target = ' target="_blank"';
$replacement = '' . $innerString . '';
break;


Quote by Unknown:Quote by Unknown:That is a Joomla programming option. It's in the link set-up in the joomla menu definitions. If you had your forum open into a new window, probably that is carrying over would be my guess.



ok i dont mean the menus i mean when ya post like a link within post. that refers to another forum post it always opens in new link and is annoying?? how i fix this as if i add [url][/url] to anything once published always opens in new screen


viet4777 | Joined Board: 11/26/2008 18:04 | Last Visit: 02/08/2009 17:05
Joo!BB - Newie
Registered
Posts: 7
Offline Member is Offline
View all users posts

Last Edit on 01/16/2009 10:34


by steve on 01/16/2009 22:06
Post Re: Links open new page??

[quote]Change the 'url' as following in the com_joobb/system/joobbengine.php (line 148 )
Demo: http://vatlieu.us/forum/topic/10-discovery-keyword-trend-in-each-country-or-all-over-the-world-google-trends-for-keyword-research-.html
Code

			case 'url':

$host = str_replace('http://','',JURI::base());
$host = str_replace('/','',$host);
 
$url = $argument ? $argument : $innerString;
$pos = strpos($url, $host);
if ($pos > 0) $target = ''; else $target = ' target="_blank"';
$replacement = '' . $innerString . '';
break;


[quote]

Thanks so much my code a littlte different as was on line 291 however with info you gave I was able to figure out and changed "target="_blank to this "target="_parent and works great...



steve | Joined Board: 01/16/2009 00:00 | Last Visit: 08/10/2009 11:20
Joo!BB - Newie
Registered
Posts: 5
Offline Member is Offline
View all users posts


4 Replies

Joo!BB - Joomla! Bulletin Board

Copyright © 2007 - 2012 Joo!BB Project - All rights reserved.