Results 1 to 3 of 3
-
30th Dec 2011, 11:00 AM #1OPMemberWebsite's:
justbeenpaidz.blogspot.comi 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 .= "» " . $link . "<br />"; } $db->free(); create_cache( "top_news", $top_news, $config['skin'] ); }
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: 5if you want senuke xcr latest full version with lifetime updates just pm
-
30th Dec 2011, 02:27 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inReplace 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'] == 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 .= "<li>" . $link . "</li>";
}
$db->free();
create_cache( "top_news", $top_news, $config['skin'] );
}
-
30th Dec 2011, 04:12 PM #3OPMemberWebsite's:
justbeenpaidz.blogspot.comthank you very much its working
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
-
6 numbers limit in account number??
By hkcaptain in forum PayzaReplies: 0Last Post: 5th Sep 2012, 10:24 AM -
Getting error when posting (some numbers)
By wtfcrane in forum vBulletinReplies: 10Last Post: 19th Feb 2012, 12:11 PM -
Help Page numbers WordPress
By xfactormaster in forum WordpressReplies: 2Last Post: 16th Feb 2012, 06:05 AM -
Private Numbers | Reasons
By prateek in forum General DiscussionReplies: 37Last Post: 13th Feb 2012, 12:44 PM -
[WordPress] WP Page Numbers plugin not working
By newuploader in forum Web Application/Script SupportReplies: 9Last Post: 15th Nov 2011, 02:07 PM
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...