Thank you for answers. I succeeded. If someone is interested , here are changes I did:
localization\frFR.php line 617: add
- Code: Select all
// quest link to wowhead FR
$lang['questlinks'][] = array(
'name'=>'Wowhead FR',
'url1'=>'http://fr.wowhead.com/?quests&filter=na=',
'url2'=>';minle=',
'url3'=>';maxle='
);
localization\frFR.php line 643: add
- Code: Select all
//item link to wowhead FR
$lang['itemlinks']['WoWHead FR'] = 'http://fr.wowhead.com/?item=';
addons\questlist\realm\index.php (Line 79) replace
- Code: Select all
foreach( $roster->locale->act['questlinks'] as $link )
{
$linktip .= '<a href="' . $link['url1'] . urlencode(utf8_decode($qrow['quest_name'])) . '" target="_blank">' . $link['name'] . '</a><br />';
}
by
- Code: Select all
foreach( $roster->locale->act['questlinks'] as $link )
{
switch($link['name']){
case "Wowhead FR":
$linktip .= '<a href="' . $link['url1'] . rawurlencode($qrow['quest_name']) . '" target="_blank">' . $link['name'] . '</a><br />';
break;
default:
$linktip .= '<a href="' . $link['url1'] . urlencode(utf8_decode($qrow['quest_name'])) . '" target="_blank">' . $link['name'] . '</a><br />';
}
}
addons\questlist\realm\index.php (Line 148) replace
- Code: Select all
foreach( $roster->locale->act['questlinks'] as $link )
{
$linktip .= '<a href="' . $link['url1'] . urlencode(utf8_decode($qnrow['quest_name'])) . '" target="_blank">' . $link['name'] . '</a><br />';
}
by
- Code: Select all
foreach( $roster->locale->act['questlinks'] as $link )
{
switch($link['name']){
case "Wowhead FR":
$linktip .= '<a href="' . $link['url1'] . rawurlencode($qnrow['quest_name']) . '" target="_blank">' . $link['name'] . '</a><br />';
break;
default:
$linktip .= '<a href="' . $link['url1'] . urlencode(utf8_decode($qnrow['quest_name'])) . '" target="_blank">' . $link['name'] . '</a><br />';
}
}
addons\info\inc\char.lib.php (Line 317) replace
- Code: Select all
foreach( $roster->locale->act['questlinks'] as $link )
{
$roster->tpl->assign_block_vars('zone.quest.links',array(
'NAME' => $link['name'],
'LINK' => $link['url1'] . urlencode(utf8_decode($quest_name)) . (isset($link['url2']) ? $link['url2'] . $quest_level : '') . (isset($link['url3']) ? $link['url3'] . $quest_level : ''),
)
);
}
by
- Code: Select all
foreach( $roster->locale->act['questlinks'] as $link )
{
switch($link['name']){
case "Wowhead FR":
$roster->tpl->assign_block_vars('zone.quest.links',array(
'NAME' => $link['name'],
'LINK' => $link['url1'] . rawurlencode($quest_name) . (isset($link['url2']) ? $link['url2'] . $quest_level : '') . (isset($link['url3']) ? $link['url3'] . $quest_level : ''),
)
);
break;
default:
$roster->tpl->assign_block_vars('zone.quest.links',array(
'NAME' => $link['name'],
'LINK' => $link['url1'] . urlencode(utf8_decode($quest_name)) . (isset($link['url2']) ? $link['url2'] . $quest_level : '') . (isset($link['url3']) ? $link['url3'] . $quest_level : ''),
)
);
}
}