با این هک میتونید کاری کنید که تمامی صفحات سایتتون در قسمت صفحات سایت به نمایش دربیان.
آموزش نصب
فایل Engine/Modules/show.short.php رو باز کنید و به دنبال کد زیر بگردید:
به جای کدی که پیدا کردید , کد زیر رو قرار بدید:
لطفا * موجود در تگ {*pages} را حذف کنید.
//----------------------------------
// Pages
//----------------------------------
if($config['news_number']){
if($count_all > $config['news_number']){
$enpages_count = @ceil($count_all/$config['news_number']);
$pages = "";
$cstart = ($cstart / $config['news_number']) + 1;
if ($enpages_count <= 10 ) {
for($j=1; $j<=$enpages_count; $j++){
if($j != $cstart) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=".$j."&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/".$j."/\">$j</a> ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=$j&$user_query\">$j</a> ";
} else {
$pages .= "<span>$j</span> ";
}
}
} else {
$start =1;
$end = 10;
$nav_prefix = "... ";
if ($cstart > 0) {
if ($cstart > 5) {
$start = $cstart - 4;
$end = $start + 8;
if ($end >= $enpages_count) {
$start = $enpages_count - 9;
$end = $enpages_count - 1;
$nav_prefix = "";
} else $nav_prefix = "... ";
}
}
if ($start >= 2) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=1&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/1/\">1</a> ... ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=1&$user_query\">1</a> ... ";
}
for($j=$start; $j<=$end; $j++){
if($j != $cstart) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=".$j."&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/".$j."/\">$j</a> ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=$j&$user_query\">$j</a> ";
} else {
$pages .= "<span>$j</span> ";
}
}
if ($cstart != $enpages_count) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart={$enpages_count}&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= $nav_prefix."<a {$go_page}href=\"".$url_page."/page/{$enpages_count}/\">{$enpages_count}</a>";
else
$pages .= $nav_prefix."<a {$go_page}href=\"$PHP_SELF?cstart={$enpages_count}&$user_query\">{$enpages_count}</a>";
} else $pages .= "<span>{$enpages_count}</span> ";
}
}
$tpl->set('{pages}', $pages);
}
// Pages
//----------------------------------
if($config['news_number']){
if($count_all > $config['news_number']){
$enpages_count = @ceil($count_all/$config['news_number']);
$pages = "";
$cstart = ($cstart / $config['news_number']) + 1;
if ($enpages_count <= 10 ) {
for($j=1; $j<=$enpages_count; $j++){
if($j != $cstart) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=".$j."&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/".$j."/\">$j</a> ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=$j&$user_query\">$j</a> ";
} else {
$pages .= "<span>$j</span> ";
}
}
} else {
$start =1;
$end = 10;
$nav_prefix = "... ";
if ($cstart > 0) {
if ($cstart > 5) {
$start = $cstart - 4;
$end = $start + 8;
if ($end >= $enpages_count) {
$start = $enpages_count - 9;
$end = $enpages_count - 1;
$nav_prefix = "";
} else $nav_prefix = "... ";
}
}
if ($start >= 2) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=1&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/1/\">1</a> ... ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=1&$user_query\">1</a> ... ";
}
for($j=$start; $j<=$end; $j++){
if($j != $cstart) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=".$j."&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/".$j."/\">$j</a> ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=$j&$user_query\">$j</a> ";
} else {
$pages .= "<span>$j</span> ";
}
}
if ($cstart != $enpages_count) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart={$enpages_count}&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= $nav_prefix."<a {$go_page}href=\"".$url_page."/page/{$enpages_count}/\">{$enpages_count}</a>";
else
$pages .= $nav_prefix."<a {$go_page}href=\"$PHP_SELF?cstart={$enpages_count}&$user_query\">{$enpages_count}</a>";
} else $pages .= "<span>{$enpages_count}</span> ";
}
}
$tpl->set('{pages}', $pages);
}
به جای کدی که پیدا کردید , کد زیر رو قرار بدید:
//----------------------------------
// Pages
//----------------------------------
if($config['news_number']){
if($count_all > $config['news_number']){
$enpages_count = @ceil($count_all/$config['news_number']);
$pages = "";
$cstart = ($cstart / $config['news_number']) + 1;
for($j=1; $j<=$enpages_count; $j++){
if($j != $cstart) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=".$j."&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/".$j."/\">$j</a> ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=$j&$user_query\">$j</a> ";
} else {
$pages .= "<span>$j</span> ";
}
}
}
$tpl->set('{*pages}', $pages);
}
// Pages
//----------------------------------
if($config['news_number']){
if($count_all > $config['news_number']){
$enpages_count = @ceil($count_all/$config['news_number']);
$pages = "";
$cstart = ($cstart / $config['news_number']) + 1;
for($j=1; $j<=$enpages_count; $j++){
if($j != $cstart) {
if ($config['ajax']) $go_page = "onclick=\"DlePage('cstart=".$j."&".$user_query."'); return false;\" "; else $go_page = "";
if ($config['allow_alt_url'] == "yes")
$pages .= "<a {$go_page}href=\"".$url_page."/page/".$j."/\">$j</a> ";
else
$pages .= "<a {$go_page}href=\"$PHP_SELF?cstart=$j&$user_query\">$j</a> ";
} else {
$pages .= "<span>$j</span> ";
}
}
}
$tpl->set('{*pages}', $pages);
}
لطفا * موجود در تگ {*pages} را حذف کنید.
تصاویر