1. 3news modules

3news modules

  |   5
3news modules

3news module is one of the good module out there to display the the news and posts on your site different way from regular {topnews} and this module works pretty much the same way, the module is developed by dleviet.com

This module included:
- Top articles
- Newest articles in this month
- Random articles

- INSTALLATION

1. Copy file 3news.php to engine/modules folder

2. Open file index.php (from your root directory http://yoursite.com/index.php)

Find
$tpl->set ( '{speedbar}', $tpl->result['speedbar'] );

BELOW add:
$tpl->set ( '{top_news}', $top_news );$tpl->set ( '{last_news}', $last_news );$tpl->set ( '{rand_news}', $rand_news );

3. Open /engine/init.php
Find:
if ($config['allow_tags']) include_once ENGINE_DIR . '/modules/tagscloud.php';

BELOW add
require_once ROOT_DIR.'/engine/modules/3news.php';

4. Open file main.tpl in current template, add below tags
{top_news}{last_news}{rand_news}

5. Finish!

--------------------------
Some options in file 3news.php:

$linklength = 200; if the length of title more than 200 characters, then reduce number of characters on the left heading 200 characters
$limittop = 10; // number of news in top block
$limitlast = 10; // number of news in last block
$limitran = 10; // number of news in random block
$showviews = false; // Show number of views at preffix of news link

Datalife Engine tested versions: 8.5, 9.0, 9.2 and 9.3
Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+10

Comments 5

Gozan
Gozan
V.I.P.
Commented By Gozan on August 21, 2011 (10:22 am)
cool module :)
u the best Tben
33 132Forum topics : 20Forum replies : 88Forum likes : 7
tbenmcp
tbenmcp
DLE TEAM
Commented By tbenmcp on August 21, 2011 (6:05 pm)
Thank you Gozan,
20 150Forum topics : 11Forum replies : 248Forum likes : 32

"A True Friend is Someone Who Sees the Pain in Your Eyes while Everyone Else Believes the Smile on Your Face"
Let me Google for you!
noname
noname
Members
Commented By noname on August 21, 2011 (10:56 pm)
I have successfully installed on DLE 9.3 but how to display in the sidebar as in the picture
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
tbenmcp
tbenmcp
DLE TEAM
Commented By tbenmcp on August 22, 2011 (12:11 am)
in the picture I use tab to display each one on the test before uploaded, you can get any tab styles out there to customize it look to make it fit to your theme

Here is the one I use in screenshot but I just customize it's look differently
jQuery Tab Content
20 150Forum topics : 11Forum replies : 248Forum likes : 32

"A True Friend is Someone Who Sees the Pain in Your Eyes while Everyone Else Believes the Smile on Your Face"
Let me Google for you!
slash777
slash777
Members
Commented By slash777 on November 30, 2011 (4:53 am)
hello dear , thank you for the module , i've installed it succefuly , but i want it to cutomize to be like the one in the picture !!! can you help plz !!!
N/A 11Forum topics : 17Forum replies : 46Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.