Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 threadfield wont show
duhol Offline
Junior Member
**
Posts: 34
Joined: Mar 2011
Post: #1
threadfield wont show
Hi
I put code to index.php. Now how to put threadfield into tamplates (forum is based on XThreads Youtube Gallery)?

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Latest trailers


$xxx_trailers = 10;

	$altbg = alt_trow();
	
	$threadlist = '';
	$query = $db->query("
		SELECT t.*, u.username
		FROM ".TABLE_PREFIX."threads t

		LEFT JOIN ".TABLE_PREFIX."threadfields_data td ON  (td.tid=t.tid)



		LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=t.uid)
		WHERE t.fid IN (".$xxx_trailers.") AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
		ORDER BY t.dateline DESC 
		LIMIT 0, 12"
	);

	while($thread = $db->fetch_array($query))
	{

		$thread['threadlink'] = get_thread_link($thread['tid']);

		$thread['forumlink'] = get_forum_link($thread['fid']);


if(my_strlen($thread['subject']) > 25)
		{
			$thread['subject'] = my_substr($thread['subject'], 0, 25) . "...";
		}


		$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));

		$forumcache = $cache->read("forums");

		$thread['forumlink'] = "<a href=\"".get_forum_link($thread['fid'])."\">".$forumcache[$thread['fid']]['name']."</a>";

		eval("\$xxx_trailers_threadlist .= \"".$templates->get("xxx_index_trailers_latestthreads_thread")."\";");
		$altbg = alt_trow();
	}
	if($xxx_trailers_threadlist)
	{ 
		// Show the table only if there are threads
		eval("\$xxx_trailers_latestthreads = \"".$templates->get("xxx_index_trailers_latestthreads")."\";");

		eval("\$indexbox = \"".$templates->get("xxx_index_box")."\";");

	}


My forum: http://www.filmtoks.pl
Left, down column named "zwiastuny". I want thumbail for each movie. How to make it?

THX

(This post was last modified: 04-13-2011 09:20 PM by duhol.)
04-13-2011 09:17 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
threadfield wont show - duhol - 04-13-2011 09:17 PM
RE: threadfield wont show - ZiNgA BuRgA - 04-13-2011, 09:38 PM
RE: threadfield wont show - duhol - 04-13-2011, 09:57 PM
RE: threadfield wont show - RateU - 04-14-2011, 01:41 AM
RE: threadfield wont show - duhol - 04-14-2011, 03:06 AM
RE: threadfield wont show - RateU - 04-14-2011, 03:26 AM
RE: threadfield wont show - duhol - 04-14-2011, 05:43 AM
RE: threadfield wont show - RateU - 04-15-2011, 07:21 AM

 Standard Tools
Forum Jump: