1. Hack Update News [DLE 10.4 - 10.5]

Hack Update News [DLE 10.4 - 10.5]

  |   5
Hack Update NewsHack Update NewsWith this hack, you can upgrade (apnut) news in one click!
All requests occur at Ajax.

Author: SX2 (http://sx2.name)
Version DLE: 10.4 and higher
Encryption: UTF-8

Installation:


1. Upload the file : up_news.php to folder /engine/ajax/
2. Go to file /engine/classes/js/dle_js.js open and insert this code where u want:
function up_news(n,o,i){return DLEconfirm("<h2>Are you sure you want to update news <font color='green'>"+i+"</font> ?</h2>",dle_confirm,function(){ShowLoading(""),$.post(dle_root+"engine/ajax/up_news.php",{id:n,action:o,title:i},function(n){DLEconfirm(n,dle_confirm,function(){location.reload(!0)}),HideLoading("")})}),!1}

3. Open: /engine/modules/show.short.php, show.full.php and show.custom.php find:
$news_date = $row['date'];

above the insert
		if ($is_logged AND $member_id['user_group'] == 1) {
            $tpl->set('[up]', "");
            $tpl->set('[/up]', "");
            $tpl->set('{up_news}', "<button class=\"bbcodes\" onclick=\"up_news('{$row['id']}', 'up', '{$db->safesql($row['title'])}'); return false;\"><span>Update</span></button>");
        } else {
            $tpl->set_block("'\\[up\\](.*?)\\[/up\\]'si", "");
		}

4. Open: /templates/Your Template/shortstory.tpl (fullstory.tpl, and also through the bush) and in a convenient location insert:
[up]{up_news}[/up]


That's all!

Hack Update NewsHack Update News
Hack Update NewsHack Update News
Hack Update NewsHack Update News


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

0

Comments 5

kevinhd
kevinhd
V.I.P.
Commented By kevinhd on August 11, 2015 (4:40 pm)
Parse error: syntax error, unexpected 'bbcodes' (T_STRING) in /home/lpawtuti/public_html/engine/modules/show.short.php on line 205
N/A 19Forum topics : 6Forum replies : 10Forum likes : 0
nellyville
Commented By nellyville on August 11, 2015 (4:49 pm)
Quote: kevinhd
Parse error: syntax error, unexpected 'bbcodes' (T_STRING) in /home/lpawtuti/public_html/engine/modules/show.short.php on line 205

What version of DLE you have? i tested on DLE 10.4.
31 42Forum topics : 9Forum replies : 34Forum likes : 1

Check my website http://www.Jocuriarena.com
kevinhd
kevinhd
V.I.P.
Commented By kevinhd on August 12, 2015 (7:17 am)
I have 10.4 Version
N/A 19Forum topics : 6Forum replies : 10Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on August 12, 2015 (11:35 am)
there is error in code in step #3...I have fixed the correct code there, try again.
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
onchannel
onchannel
V.I.P.
Commented By onchannel on February 17, 2016 (3:30 am)
not working on my dle 10.4 :( it only shows me [up]{up_news}[/up].
N/A 84Forum topics : 8Forum replies : 14Forum likes : 0

full movies
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.