5. Poprawienie otwierania linków w nowym oknie (Komendy itp)
Dam wersję dla obu wersji, Advanced oraz normalnej.
Advanced Shoutbox 1.22
Otwieramy /yshout/yshout.php oraz zamieniamy to:
// Commands
echo '<a href="javascript:goTo(\'help\')" onclick="NewWindow(getURL(\'help\'),\'help\',\'620\',\'440\',\'no\',\'center\');return false" onfocus="this.blur()"><img src="'.$settings['images_url'].'/info.png" alt="',$txt['yshout_commands'],'" /></a> ';
// History
echo '<a href="javascript:goTo(\'history\')" onclick="NewWindow(getURL(\'history\'),\'history\',\'620\',\'440\',\'yes\',\'center\');return false" onfocus="this.blur()"><img src="'.$settings['images_url'].'/date.png" alt="',$txt['yshout_history'],'" /></a> ';na to:
// Commands
echo '<a href="javascript:goTo(\'help\')" onclick="window.open(getURL(\'help\'),\'help\',\'width=620,height=440\',\'resizable=no\',\'center\');return false" onfocus="this.blur()"><img src="'.$settings['images_url'].'/info.png" alt="',$txt['yshout_commands'],'" /></a> ';
// History
echo '<a href="javascript:goTo(\'history\')" onclick="window.open(getURL(\'history\'),\'history\',\'width=620,height=440\',\'resizable=yes\',\'center\');return false" onfocus="this.blur()"><img src="'.$settings['images_url'].'/date.png" alt="',$txt['yshout_history'],'" /></a> ';oraz to:
// Extended History
if(isMod())
{
echo '<a href="javascript:goTo(\'history&n=+100000\')" onclick="NewWindow(getURL(\'history&n=+100000\'),\'exthistory\',\'620\',\'440\',\'yes\',\'center\');return false" onfocus="this.blur()"><img src="'.$settings['images_url'].'/calendar.png" alt="',$txt['yshout_exthistory'],'" /></a> ';na to:
// Extended History
if(isMod())
{
echo '<a href="javascript:goTo(\'history&n=+100000\')" onclick="window.open(getURL(\'history&n=+100000\'),\'exthistory\',\'width=620,height=440\',\'resizable=yes\',\'center\');return false" onfocus="this.blur()"><img src="'.$settings['images_url'].'/calendar.png" alt="',$txt['yshout_exthistory'],'" /></a> ';
Okay, tyle dla Advanced Shoutbox, zapisujemy i gotowe.
Shoutbox 1.22
Otwieramy /yshout/yshout.php oraz zamieniamy to:
echo '[<a href="javascript:goTo(\'history\')">',$txt['yshout_history'],'</a>] ';
echo '[<a href="javascript:goTo(\'help\')">',$txt['yshout_commands'],'</a>]';na to
echo '[<a href="javascript:goTo(\'history\')" onclick="NewWindow(getURL(\'history\'),\'history\',\'620\',\'440\',\'yes\',\'center\');return false" onfocus="this.blur()">',$txt['yshout_history'],'</a>] ';
echo '[<a href="javascript:goTo(\'help\')" onclick="window.open(getURL(\'help\'),\'help\',\'width=620,height=440\',\'resizable=no\',\'center\');return false" onfocus="this.blur()">',$txt['yshout_commands'],'</a>]';
I cieszymy się działającymi okienkami dla SB 1.22.
Pozdrawiam - Wojtek.