Results 1 to 4 of 4
-
6th Dec 2011, 11:18 AM #1OPMemberWebsite's:
justbeenpaidz.blogspot.comhelp me alphabet
i m using hack of alphabet but i have little prob in this hack abcdefgh...... all these are working but numbers (digit) is not working which is 0-9
if i put <a href="/cat/09"><span>0-9</span></a> than its not working i want to work this way
also if i put code like this <a href="/cat/1"><span>1</span></a> than working very wel and so on i put like one by one but i want just 0-9 when some one click on it all showing news which starts from numbers plz tel me how i solve this
help me plz thx.fahadzaman66 Reviewed by fahadzaman66 on . help me alphabet i m using hack of alphabet but i have little prob in this hack abcdefgh...... all these are working but numbers (digit) is not working which is 0-9 if i put <a href="/cat/09"><span>0-9</span></a> than its not working i want to work this way also if i put code like this <a href="/cat/1"><span>1</span></a> than working very wel and so on i put like one by one but i want just 0-9 when some one click on it all showing news which starts from numbers plz tel me how i solve this help me plz Rating: 5if you want senuke xcr latest full version with lifetime updates just pm
-
6th Dec 2011, 06:55 PM #2Member
open index.php
Find:
PHP Code:$tpl->set_block ( "'{banner_(.*?)}'si", "" );
PHP Code:$catalog_en = explode(" ", "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0-9");
foreach($catalog_en as $k=>$v){
if( $config['allow_alt_url'] == "yes" ) $catalog_en[$k] = "<a href=\"/catalog/{$v}\" title=\"News Begin: {$v}\">{$v}</a>";
else $catalog_en[$k] = "<a href=\"{$config['http_home_url']}index.php?catalog={$v}\" title=\"News Begin: {$v}\">{$v}</a>";
}
$catalog_en = implode(" | ", $catalog_en);
$tpl->set ( '{catalog_en}', $catalog_en );
Remove this code :
PHP Code:symbol = '$catalog' AND
PHP Code:$user_query = "catalog=" . urlencode ( $catalog );
PHP Code:if($catalog=='0-9') $stop_list .= "title regexp '^[0-9\'\"]+' AND ";
else{
$catalog = substr(convert_unicode($catalog),0,1);
if($catalog!='е' AND $catalog!='и') $stop_list .= "title LIKE '$catalog%' AND ";
elseif($catalog=='е') $stop_list .= "(title LIKE 'Е%' OR title LIKE 'Ё%') AND ";
}
demo this hack : http://wuploadstation.net
-
6th Dec 2011, 07:26 PM #3Member
Here is another way.
1. Make file "letters.tpl" in your template directory
2. Place this code into "letters.tpl"
PHP Code:<a href="/cat/a">A</a> <a href="/cat/b">B</a> <a href="/cat/c">C</a> <a href="/cat/d">D</a> <a href="/cat/e">E</a> <a href="/cat/f">F</a> <a href="/cat/g">G</a>
<a href="/cat/h">H</a> <a href="/cat/i">I</a> <a href="/cat/j">J</a> <a href="/cat/k">K</a> <a href="/cat/l">L</a> <a href="/cat/m">M</a>
<a href="/cat/n">N</a> <a href="/cat/o">O</a> <a href="/cat/p">P</a> <a href="/cat/q">Q</a> <a href="/cat/r">R</a> <a href="/cat/s">S</a>
<a href="/cat/t">T</a> <a href="/cat/u">U</a> <a href="/cat/v">V</a> <a href="/cat/w">W</a> <a href="/cat/x">X</a> <a href="/cat/y">Y</a> <a href="/cat/z">Z</a> <span>|</span>
<a href="/cat/1">1</a> <a href="/cat/2">2</a> <a href="/cat/3">3</a> <a href="/cat/4">4</a> <a href="/cat/5">5</a> <a href="/cat/6">6</a>
<a href="/cat/7">7</a> <a href="/cat/8">8</a> <a href="/cat/9">9</a> <a href="/cat/0">0</a>
Find:
PHP Code:} elseif ($catalog != "") {
PHP Code:} elseif ($catalog != "" and $_GET['n']) {
// ################ Alphabet hack #################
if ($cstart) {
$cstart = $cstart - 1;
$cstart = $cstart * $config['news_number'];
}
$newsmodule = true;
$url_page = $config['http_home_url'] . "cat/" . urlencode ( $catalog );
$user_query = "cat=" . urlencode ( $catalog );
$news_sort_by = ($config['catalog_sort']) ? $config['catalog_sort'] : "date";
$news_direction_by = ($config['catalog_msort']) ? $config['catalog_msort'] : "DESC";
if (isset ( $_SESSION['dle_sort_catalog'] )) $news_sort_by = $_SESSION['dle_sort_catalog'];
if (isset ( $_SESSION['dle_direction_catalog'] )) $news_direction_by = $_SESSION['dle_direction_catalog'];
$sql_select = "SELECT id, autor, date, short_story, SUBSTRING(full_story, 1, 15) as full_story, xfields, title, category, alt_name, comm_num, allow_comm, allow_rate, rating, vote_num, news_read, approve, flag, editdate, editor, reason, view_edit, tags FROM " . PREFIX . "_post WHERE {$stop_list}title LIKE '$catalog%' AND approve" . $where_date . " ORDER BY " . $news_sort_by . " " . $news_direction_by . " LIMIT " . $cstart . "," . $config['news_number'];
$sql_count = "SELECT COUNT(*) as count FROM " . PREFIX . "_post WHERE {$stop_list}title LIKE '$catalog%' AND approve" . $where_date;
} elseif ($catalog != "" and !$_GET['n']) {
Find:
PHP Code:RewriteRule ^catalog/([^/]*)(/?)+$ index.php?catalog=$1 [L]
RewriteRule ^catalog/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$2 [L]
PHP Code:# Alphabet hack
RewriteRule ^cat/([^/]*)(/?)+$ index.php?catalog=$1&n=1 [L]
RewriteRule ^cat/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$2&n=1 [L]
PHP Code:{include file="letters.tpl"}
-
7th Dec 2011, 03:00 AM #4OPMemberWebsite's:
justbeenpaidz.blogspot.comi fix my prob thx
if you want senuke xcr latest full version with lifetime updates just pm
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Which alphabet is
By Shahrukh in forum General DiscussionReplies: 8Last Post: 26th Apr 2012, 11:17 PM -
3 Alphabet Domain ( WRZ )
By TLK in forum Completed TransactionsReplies: 13Last Post: 3rd Dec 2011, 01:45 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...