View Full Version : little problem
fabian1
03-23-2007, 11:44 AM
hello esyndicat team and the other :good: ,
i have put a <base target="_blank"> in head tag so all pages open in new wondows but i want to open theses links :
« Previous : First : Page 2 Page 1 : Last : Next »
in same windows.
So my question is where to put target="_self" to do this %)
Fabian
Dave Baker
03-23-2007, 09:09 PM
Hello fabian1,
***Open includes/util.php and find the function***
function navigation($aParams)
***In this function find pieces of code***
$out .= '<strong>';
$out .= "<a href=\"{$url1}\">« {$gDirLang['previous']}</a> : ";
$out .= "<a href=\"{$url2}\">{$gDirLang['first']}</a> : ";
$out .= '</strong>';
}
else
{
$out .= "<strong>« {$gDirLang['previous']} : {$gDirLang['first']} : </strong>";
}
foreach ($pages as $page)
{
if ($current_page == $page)
{
$out .= "<strong>{$gDirLang['page']} {$page}</strong> ";
}
else
{
if ($aParams['aType'] == 4)
{
$url = $mod_rewrite ? str_replace('index%1.html', (1 == $page) ? '' : 'index'.$page.'.html', $aParams['aTemplate']) : $aParams['aTemplate'].'&page='.$page;
$out .= "<a href=\"{$url}\">{$gDirLang['page']} {$page}</a> ";
}
elseif ($aParams['aType'] == 3)
{
$url = $mod_rewrite ? str_replace('%1', (1 == $page) ? '' : $page, $aParams['aTemplate']) : str_replace('%1.html', (1 == $page) ? '.php' : '.php?page='.$page, $aParams['aTemplate']);
$out .= "<a href=\"{$url}\">{$gDirLang['page']} {$page}</a> ";
}
elseif ($aParams['aType'] == 2)
{
$url = (1 == $page) ? str_replace('index%1.html', '', $aParams['aTemplate']) : str_replace('%1', $page, $aParams['aTemplate']);
$out .= "<a href=\"{$url}\">{$gDirLang['page']} {$page}</a> ";
}
elseif ($aParams['aType'] == 1)
{
$delim = ('.php' == strtolower(substr($aParams['aTemplate'], -4))) ? '?' : '&';
$out .= "<a href=\"{$aParams['aTemplate']}{$delim}page={$page}\">{$gDirLang['page']} {$page}</a> ";
}
}
}
and
$out .= ": <a href=\"".$url1."\">".$gDirLang['last']."</a> ";
$out .= ": <a href=\"".$url2."\">".$gDirLang['next']." »</a>";
$out .= '</strong>';
fabian1
03-28-2007, 11:08 AM
thanks Dave it works well ;-)
Dave Baker
03-29-2007, 05:48 PM
You're welcome fabian1 :) !
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.