Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   TSUE 2.2 Plugin Latest Coments (http://www.bvlist.com/showthread.php?t=11422)

hart 5th January 2018 10:08

TSUE 2.2 Plugin Latest Coments
 
1 Attachment(s)
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

TraceR 5th January 2018 10:24

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; }



All times are GMT +2. The time now is 19:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.