DLE Thanks Module 1.5

DLE Thanks Module 1.5

DLE Thanks Module 1.5
Version DLE: 8.3-9.3
The module allows you to organize a system of thanks on the site.
What is so interesting about this module?
– Module is connected to a single file pattern, without requiring changes to the basic script engine
– Use AJAX
– The author has no opportunity to thank yourself
– Guests have the opportunity to express gratitude
– Caching list poblagorarivshih
– The list thanks to the spoiler
– Thanks to the number of times the news
– A list of thanks and gratitude count is displayed for visitors
– Removed repeated thanks
Changes in 1.4:
– For each news you can turn on / off opportunity to thank

Changes in 1.5:
– Changed the AJAX functionality to work on a version of DLE 9.2
– When minimized / deploying the spoiler with a list of acknowledgments is changing the picture + / –

Before Click:

DLE Thanks Module 1.5

After Click:

DLE Thanks Module 1.5

Installation:
1. Upload all files
2. Run: install.php (yoursite.com/install.php)
3. Open: /templates/fullstory.tpl :
Add:

{include file=”engine/modules/thanks.php”}

4. Open: /engine/modules/profile.php
Find:

$tpl->set( ‘{icq}’, stripslashes( $row[‘icq’] ) );

Add below:

$r_thx_num = ($row[‘thx_num’]) ? “Total Earned Thanks: “.stripslashes($row[‘thx_num’]) : “”;
$tpl->set(‘{thx_num}’, $r_thx_num);

5. Open: /templates/userinfo.tpl :
Add:

{thx_num}

6. Open: /engine/modules/show.full.php
Find:

‘{news-id}’ => $row[‘id’]

Replace:

‘{news-id}’ => $row[‘id’], ‘{xfields}’ => $row[‘xfields’]

7. Open: /engine/modules/show.short.php
Find:

‘{news-id}’ => $row[‘id’]

Replace:

‘{news-id}’ => $row[‘id’], ‘{xfields}’ => $row[‘xfields’]

8. Remove install.php and Clean up SmartCache

Works with DLE 9.2, 9.3

Translated by TH Limon
Download: dle-thanks-1.5.rar

订阅评论
提醒
guest的头像

0 评论
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x