Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Xthreads attachments on site.com/index.php
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #1
Xthreads attachments on site.com/index.php
Hello, I have added "latest threads" on my homepage: (  no in /forum)

But xattachments (thumbs of Xthreads) don't work.

I have edited index.php in this way, but nothing:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Latest forum discussions2
if($mybb->settings['portal_showdiscussions'] != 0 && $mybb->settings['portal_showdiscussionsnum']) {
  $altbg = alt_trow();
  $threadlist = '';
  $piccount=4;
  $query = $db->query("
  SELECT a.updatetime, a.uploadtime, a.attachname, a.filename, a.thumbs, t.*
  FROM ".TABLE_PREFIX."xtattachments a
  LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=a.tid)
  WHERE t.visible=1 AND a.thumbs!=' ' AND t.showinportal='1' AND t.closed NOT LIKE 'moved|%' AND t.fid IN ('128')
  GROUP BY a.tid
  ORDER BY t.dateline DESC
  LIMIT 0, $piccount
");


I have this path error:

How can I resolve?

Thank you in advance

(This post was last modified: 11-11-2013 03:48 AM by nier3.)
11-07-2013 03:21 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Xthreads attachments on site.com/index.php - nier3 - 11-07-2013 03:21 AM

 Standard Tools
Forum Jump: