Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 5th January 2018, 10:08
hart's Avatar
hart hart is offline
Senior Member
 
Join Date: Sep 2010
P2P
Posts: 51
Default TSUE 2.2 Plugin Latest Coments
Install instructions
ioncube decode
1- upload files
2- create template for styles
3- create language
4- execute sql file using phpmyadmin
5- open plugin manager > latest comments and edit the options
6- add plugin to pages
Attached Files
File Type: rar tsue-latest-comments.rar (2.7 KB, 70 views)
Reply With Quote
The Following User Says Thank You to hart For This Useful Post:
MasterMan (6th January 2018)
  #2  
Old 5th January 2018, 10:24
TraceR's Avatar
TraceR TraceR is offline
BittyTorrent
 
Join Date: Mar 2015
Posts: 135
Default
why its encoded ..
PHP Code:
<?php function tsue_latest_comments() {     global $TSUE;     // Don't edit this     $query = "SELECT * FROM tsue_plugins WHERE tsue_plugins.filename =  'tsue_latest_comments.php'";     $list = $TSUE['TSUE_Database']->query($query);     while ($row = $list->fetch_assoc()) {         $info = unserialize($row['pluginOptions']);         $limit = $info['config']['plugin_tsue_latest_comments_limit'];     }     $query = "SELECT tsue_torrents.name, tsue_comments.comment_id, tsue_comments.content_type, tsue_comments.content_id, tsue_comments.memberid, tsue_comments.membername, tsue_comments.post_date, tsue_comments.message, tsue_comments.message_state FROM tsue_torrents Inner Join tsue_comments ON tsue_comments.content_id = tsue_torrents.tid WHERE tsue_comments.content_type =  'torrent_comments' and tsue_comments.message_state =  'visible' ORDER BY tsue_comments.comment_id DESC limit 0,$limit";     $list = $TSUE['TSUE_Database']->query($query);     $latest_comments = '';     while ($Comment = $list->fetch_assoc()) {         $timestamp = $Comment['post_date'];         $_alt = $Comment['name'];         $Comment['post_date'] = convert_relative_time($timestamp, $useTimeago = true); // convert_time($timestamp, $format = '');         $_memberid = $Comment['memberid'];         $_avatar = get_member_avatar($_memberid, $gender = '', $size = 's');         eval("\$clickable_member_avatar = "" . $TSUE['TSUE_Template']->LoadTemplate('clickable_member_avatar') . "";");         eval("\$comments = "" . $TSUE['TSUE_Template']->LoadTemplate('latest_comments_row') . "";");         $latest_comments.= $comments;     }     eval("\$latest_comments = "" . $TSUE['TSUE_Template']->LoadTemplate('latest_comments') . "";");     return $latest_comments; } ?><?php function tsue_latest_comments() {     global $TSUE;     // Don't edit this     $query = "SELECT * FROM tsue_plugins WHERE tsue_plugins.filename =  'tsue_latest_comments.php'";     $list = $TSUE['TSUE_Database']->query($query);     while ($row = $list->fetch_assoc()) {         $info = unserialize($row['pluginOptions']);         $limit = $info['config']['plugin_tsue_latest_comments_limit'];     }     $query = "SELECT tsue_torrents.name, tsue_comments.comment_id, tsue_comments.content_type, tsue_comments.content_id, tsue_comments.memberid, tsue_comments.membername, tsue_comments.post_date, tsue_comments.message, tsue_comments.message_state FROM tsue_torrents Inner Join tsue_comments ON tsue_comments.content_id = tsue_torrents.tid WHERE tsue_comments.content_type =  'torrent_comments' and tsue_comments.message_state =  'visible' ORDER BY tsue_comments.comment_id DESC limit 0,$limit";     $list = $TSUE['TSUE_Database']->query($query);     $latest_comments = '';     while ($Comment = $list->fetch_assoc()) {         $timestamp = $Comment['post_date'];         $_alt = $Comment['name'];         $Comment['post_date'] = convert_relative_time($timestamp, $useTimeago = true); // convert_time($timestamp, $format = '');         $_memberid = $Comment['memberid'];         $_avatar = get_member_avatar($_memberid, $gender = '', $size = 's');         eval("\$clickable_member_avatar = "" . $TSUE['TSUE_Template']->LoadTemplate('clickable_member_avatar') . "";");         eval("\$comments = "" . $TSUE['TSUE_Template']->LoadTemplate('latest_comments_row') . "";");         $latest_comments.= $comments;     }     eval("\$latest_comments = "" . $TSUE['TSUE_Template']->LoadTemplate('latest_comments') . "";");     return $latest_comments; }
Reply With Quote
The Following User Says Thank You to TraceR For This Useful Post:
hart (5th January 2018)
Reply

Tags
22 , coments , latest , plugin , tsue

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:38. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.