Guys
Im also trying to do this... I want webaddress fields to open in new window so located the code in comprofiler.class.php and changed as below
[code:1]CASE 'webaddress':
IF($oValue==null) $oReturn="";
ELSEIF($ueConfig==1) {
$oReturn=array();
$oReturn = explode("|*|",$oValue);
if (count($oReturn) < 2) $oReturn[1]=$oReturn[0];
//$oReturn="<a href=\"http://".htmlspecialchars($oReturn[0])."\" target=\"_blank\">".htmlspecialchars($oReturn[1])."</a>"; JJA_MOD new version below
$oReturn="<a href=\"http://".htmlspecialchars($oReturn[0])."\" title=\"hello\" target=\"_self\">".htmlspecialchars($oReturn[1])."</a>";
} ELSE {
$oReturn=$oValue;
}
break;[/code:1]
as you can see ive changed _blank to _self and even added a title="hello"
But none of these changes are affecting my site when I look at results in userlist the links dont have a title and dont open in same window.
Either im going crazy or my site isnt using this new version... Ive deleted the file off the remote ftp and site stops so its defo looking at this file.
Anyone think of why its not affecting the links?
thanks in advance
jonathan
************
SOLED
************
Doh I was editing code that was only there for backwards compatibility in comprofiler.class.php
Found new code in cb.core.php line 1925
//return '<a href="http://' . htmlspecialchars( $oReturn[0] ) . '" target="_blank">' . htmlspecialchars( $oReturn[1] ) . '</a>';
return '<a href="http://' . htmlspecialchars( $oReturn[0] ) . '" target="_self">' . htmlspecialchars( $oReturn[1] ) . '</a>';
Only took me a whole day to work it out
Post edited by: wrongjon, at: 2009/01/22 19:08