Activity Stream
48,167 MEMBERS
61150 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    justbeenpaidz.blogspot.com

    Default 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 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: 5
    if you want senuke xcr latest full version with lifetime updates just pm

  2.   Sponsored Links

  3.     
    #2
    Member
    open index.php

    Find:
    PHP Code: 
    $tpl->set_block "'{banner_(.*?)}'si""" ); 
    Add Below:
    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 ); 
    open engine/engine.php

    Remove this code :
    PHP Code: 
    symbol '$catalog' AND 
    Find:
    PHP Code: 
    $user_query "catalog=" urlencode $catalog ); 
    Add below:
    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 ";
                } 
    Now in use tags {catalog_en} at main.tpl to display the alphabet , or use custom url /catalog/0-9/,...
    demo this hack : http://wuploadstation.net
    Yahoo: Keosoft90 | ICQ : 570-630-903| MSN : keosoft90@hotmail.com | AIM : Keosoft90
    KWWH

  4.     
    #3
    Member
    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> &nbsp;&nbsp; <span>|</span> &nbsp;&nbsp;
    <
    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
    .3 Open file "engine/engine.php"

    Find:
    PHP Code: 
    } elseif ($catalog != "") { 
    Replace with this one:
    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']) { 
    4. Open "./htaссess"

    Find:
    PHP Code: 
    RewriteRule ^catalog/([^/]*)(/?)+$ index.php?catalog=$[L]
    RewriteRule ^catalog/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$[L
    Add below:
    PHP Code: 
    # Alphabet hack
    RewriteRule ^cat/([^/]*)(/?)+$ index.php?catalog=$1&n=[L]
    RewriteRule ^cat/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$2&n=[L
    5. Open "templates/YOUR TAMPLATE/main.tpl" And add this wherever you want
    PHP Code: 
    {include file="letters.tpl"
    You can see it on my site!

  5.     
    #4
    Member
    Website's:
    justbeenpaidz.blogspot.com
    i fix my prob thx
    if you want senuke xcr latest full version with lifetime updates just pm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Which alphabet is
    By Shahrukh in forum General Discussion
    Replies: 8
    Last Post: 26th Apr 2012, 11:17 PM
  2. 3 Alphabet Domain ( WRZ )
    By TLK in forum Completed Transactions
    Replies: 13
    Last Post: 3rd Dec 2011, 01:45 PM

Tags for this Thread

BE SOCIAL