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

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

    Default i want to put numbers or bullets

    hi
    i have module 3news and i have some porb with my module i want to modify module and put numbers or bullets here is screenshot

    i want to show numbers not ? this i want to replace this ? to numbers how i do that here is code
    Code: 
    <?php
    if(!defined('DATALIFEENGINE'))
    {
      die("Hacking attempt!");
    }
    
    $linklength = 200; // number of characters of news to show
    $limittop = 25; // number of news in top block
    $limitlast = 25; // number of news in last block
    $limitran = 25; // number of news in random block
    
    $showviews = false; // Show number of views at preffix of news link
    
    $top_news = dle_cache( "top_news", $config['skin'] );
    $last_news = dle_cache( "last_news", $config['skin'] );
    
    if (!$top_news) {
    
        $this_month = date( 'Y-m-d H:i:s', $_TIME );
        $db->query("SELECT id, title, date, alt_name, category, news_read, flag  FROM " . PREFIX . "_post WHERE approve='1' ORDER BY news_read DESC LIMIT 0,{$limittop}");
    
        while ( $row = $db->get_row() ) {
            
            $row['date'] = strtotime( $row['date'] );
            $row['category'] = intval( $row['category'] );
            $row['news_read'] = intval( $row['news_read'] );
            
            if( $config['allow_alt_url'] == "yes" ) {
                
                if( $row['flag'] and $config['seo_type'] ) {
                    
                    if( $row['category'] and $config['seo_type'] == 2 ) {
                        
                        $full_link = $config['http_home_url'] . get_url( $row['category'] ) . "/" . $row['id'] . "-" . $row['alt_name'] . ".html";
                    
                    } else {
                        
                        $full_link = $config['http_home_url'] . $row['id'] . "-" . $row['alt_name'] . ".html";
                    
                    }
                
                } else {
                    
                    $full_link = $config['http_home_url'] . date( 'Y/m/d/', $row['date'] ) . $row['alt_name'] . ".html";
                }
            
            } else {
                
                $full_link = $config['http_home_url'] . "index.php?newsid=" . $row['id'];
            
            }
            
            if( strlen( $row['title'] ) > $linklength ) $title = substr( $row['title'], 0, $linklength ) . " ...";
            else $title = $row['title'];
            
            $go_page = ($config['ajax']) ? "onclick=\"DlePage('newsid=" . $row['id'] . "'); return false;\" " : "";
            if( $config['allow_comments_wysiwyg'] == "yes" ) $go_page = '';
            
            if ( $showviews )
            {
                $link = "<a {$go_page}href=\"" . $full_link . "\">[" .$row['news_read']. "] " . stripslashes( $title ) . "</a>";
            }
            else
            {
                $link = "<a {$go_page}href=\"" . $full_link . "\">" . stripslashes( $title ) . "</a>";
            }
            
            $top_news .= "&raquo; " . $link . "<br />";
        }
        $db->free();
        create_cache( "top_news", $top_news, $config['skin'] );
    }
    and also i have 1 more prob is that my facebook connect pro module is not working i dont know why i have everything fine but still some prob please help me thx
    fahadzaman66 Reviewed by fahadzaman66 on . i want to put numbers or bullets hi i have module 3news and i have some porb with my module i want to modify module and put numbers or bullets here is screenshot i want to show numbers not ? this i want to replace this ? to numbers how i do that here is code <?php if(!defined('DATALIFEENGINE')) { die("Hacking attempt!"); } Rating: 5
    if you want senuke xcr latest full version with lifetime updates just pm

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Replace the code with this one:

    PHP Code: 
    <?php
    if(!defined('DATALIFEENGINE'))
    {
      die(
    "Hacking attempt!");
    }

    $linklength 200// number of characters of news to show
    $limittop 25// number of news in top block
    $limitlast 25// number of news in last block
    $limitran 25// number of news in random block

    $showviews false// Show number of views at preffix of news link

    $top_news dle_cache"top_news"$config['skin'] );
    $last_news dle_cache"last_news"$config['skin'] );

    if (!
    $top_news) {

        
    $this_month date'Y-m-d H:i:s'$_TIME );
        
    $db->query("SELECT id, title, date, alt_name, category, news_read, flag  FROM " PREFIX "_post WHERE approve='1' ORDER BY news_read DESC LIMIT 0,{$limittop}");

        while ( 
    $row $db->get_row() ) {
            
            
    $row['date'] = strtotime$row['date'] );
            
    $row['category'] = intval$row['category'] );
            
    $row['news_read'] = intval$row['news_read'] );
            
            if( 
    $config['allow_alt_url'] == "yes" ) {
                
                if( 
    $row['flag'] and $config['seo_type'] ) {
                    
                    if( 
    $row['category'] and $config['seo_type'] == ) {
                        
                        
    $full_link $config['http_home_url'] . get_url$row['category'] ) . "/" $row['id'] . "-" $row['alt_name'] . ".html";
                    
                    } else {
                        
                        
    $full_link $config['http_home_url'] . $row['id'] . "-" $row['alt_name'] . ".html";
                    
                    }
                
                } else {
                    
                    
    $full_link $config['http_home_url'] . date'Y/m/d/'$row['date'] ) . $row['alt_name'] . ".html";
                }
            
            } else {
                
                
    $full_link $config['http_home_url'] . "index.php?newsid=" $row['id'];
            
            }
            
            if( 
    strlen$row['title'] ) > $linklength $title substr$row['title'], 0$linklength ) . " ...";
            else 
    $title $row['title'];
            
            
    $go_page = ($config['ajax']) ? "onclick=\"DlePage('newsid=" $row['id'] . "'); return false;\" " "";
            if( 
    $config['allow_comments_wysiwyg'] == "yes" $go_page '';
            
            if ( 
    $showviews )
            {
                
    $link "<a {$go_page}href=\"" $full_link "\">[" .$row['news_read']. "] " stripslashes$title ) . "</a>";
            }
            else
            {
                
    $link "<a {$go_page}href=\"" $full_link "\">" stripslashes$title ) . "</a>";
            }
            
            
    $top_news .= "<li>" $link "</li>";
        }
        
    $db->free();
        
    create_cache"top_news"$top_news$config['skin'] );
    }
    It would work for you just fine. The above one will show bullets which looks better with your website skin then normal numbers which can be added by integer increase

  4.     
    #3
    Member
    Website's:
    justbeenpaidz.blogspot.com
    thank you very much its working
    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. 6 numbers limit in account number??
    By hkcaptain in forum Payza
    Replies: 0
    Last Post: 5th Sep 2012, 10:24 AM
  2. Getting error when posting (some numbers)
    By wtfcrane in forum vBulletin
    Replies: 10
    Last Post: 19th Feb 2012, 12:11 PM
  3. Help Page numbers WordPress
    By xfactormaster in forum Wordpress
    Replies: 2
    Last Post: 16th Feb 2012, 06:05 AM
  4. Private Numbers | Reasons
    By prateek in forum General Discussion
    Replies: 37
    Last Post: 13th Feb 2012, 12:44 PM
  5. [WordPress] WP Page Numbers plugin not working
    By newuploader in forum Web Application/Script Support
    Replies: 9
    Last Post: 15th Nov 2011, 02:07 PM

Tags for this Thread

BE SOCIAL