Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 X-Threads Garage?
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #61
RE: X-Threads Garage?
Nah, I give you that link because I learn much from it, Tortoise.
If Yumi/ZiNgA didn't post that post, I'm more than 100% sure till now I don't know how to display XThreads images from our plugins Biggrin

11-15-2011 05:19 AM
Find all posts by this user Quote this message in a reply
Tortoise Offline
Junior Member
**
Posts: 6
Joined: Nov 2011
Post: #62
RE: X-Threads Garage?
(11-15-2011 05:19 AM)RateU Wrote:  Nah, I give you that link because I learn much from it, Tortoise.
If Yumi/ZiNgA didn't post that post, I'm more than 100% sure till now I don't know how to display XThreads images from our plugins Biggrin

Well, I tried to modify the block that sent me and use it to publish on the Portal most recent transactions in the market and it worked very well. Thanks¡¡

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
<?php
if(!defined('IN_PORTAL')) die();

$block_xtlatest_market_fid = 75;// XThreads Market Forum ID
$block_xtlatest_market_limit = 3;// Number of transaction(s) should be displayed.
$block_xtlatest_market_thumb = '120x90';// Thumbnail size should be displayed (trdfimg custom thread fields).

if(function_exists('xthreads_gettfcache')){
	$xtlatest_market_read = xthreads_gettfcache($block_xtlatest_market_fid);
	if($xtlatest_market_read && $xtlatest_market_read['trdfimg']){
		$query = $db->query('
			SELECT t.tid, t.subject, a.updatetime, a.md5hash, a.uploadtime, a.aid, a.attachname, a.filename
			FROM '.TABLE_PREFIX.'threads t
			LEFT JOIN '.TABLE_PREFIX.'xtattachments a ON (a.tid=t.tid)
			WHERE t.fid='.intval($block_xtlatest_market_fid).' AND a.field="trdfimg" AND t.visible=1 AND t.closed NOT LIKE "moved|%"
			ORDER BY t.dateline DESC
			LIMIT 0,'.intval($block_xtlatest_market_limit).'
		');
		if($db->num_rows($query)){
			while($mnxtmarket = $db->fetch_array($query)){
				$xtlatest_market_market .= '<a href="'.get_thread_link(intval($mnxtmarket['tid'])).'"><img src="'.xthreads_get_xta_url($mnxtmarket,$block_xtlatest_market_thumb).'" alt="'.htmlspecialchars_uni($mnxtmarket['subject']).'" title="'.htmlspecialchars_uni($mnxtmarket['subject']).'" style="margin: 3px; padding: 3px; border: 1px solid #ADCBE7;" /></a>';
			}
			echo '<div style="text-align: center;">'.$xtlatest_market_market.'</div>';
		}else{
			echo '<div style="text-align: center;"><em>No hay ventas para ser mostradas</em></div>';
		}
	}else{
		echo '<div style="text-align: center;"><em>No hay opciones suficientes para ejecutar XThreads</em></div>';
	}
}else{
	echo '<div style="text-align: center;"><em>Este bloque necesita XThreads instalado para ejecutarse</em></div>';
}
?>


Best Regards.

11-17-2011 05:40 AM
Find all posts by this user Quote this message in a reply
Zevil Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #63
RE: X-Threads Garage?
Guys is this one working on the MyBB 1.6.5? because i tried it and i cant see the garage section, i followed all the tutorial from the #2 post.
(This post was last modified: 01-15-2012 07:38 AM by Zevil.)
01-15-2012 07:38 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #64
RE: X-Threads Garage?
I don't know what do you mean by "cant see the garage section".
This demo runs on MyBB 1.6.5:
http://xtest.byethost7.com/forumdisplay.php?fid=8

01-15-2012 08:06 AM
Find all posts by this user Quote this message in a reply
Zevil Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #65
RE: X-Threads Garage?
[Image: testhp.jpg]
Can you give me some tutorials so i can make the garage section/forum because i cant find it.
01-15-2012 07:31 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #66
RE: X-Threads Garage?
I'm really sorry, again, I don't know what do you mean by the "I cant find it"?

The custom garage forumdisplay templates isn't applied to your garage forum?
Or your garage forum isn't displayed in the forumlist?

If your garage templates isn't applied to your garage forum, maybe there is a plugin conflict.
You can read the XThreads release threads for more info about it.
Or, maybe you can check whether you've assigned the right template prefix for that forum.

If your garage forum is not displayed in your forumlist, maybe you can check this setting:
(09-09-2010 08:35 AM)RateU Wrote:  Edit/create a forum. XThreads settings:
  • Hide Forum: Yes
    We need to put this forum url manually in our templates (e.g: header template).

01-16-2012 01:55 AM
Find all posts by this user Quote this message in a reply
Zevil Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #67
RE: X-Threads Garage?
Can you teach me step by step what i have to do please? i mean what i should download, install, settings, and other things, please.
01-16-2012 04:29 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #68
RE: X-Threads Garage?
What you need to do is:
1. Install XThreads.
2. Apply the modification needed in the #2 posts of this thread.

01-16-2012 04:52 AM
Find all posts by this user Quote this message in a reply
Zevil Offline
Junior Member
**
Posts: 5
Joined: Jan 2012
Post: #69
RE: X-Threads Garage?
Where is the XThread Settings? can you show me all the steps in screenshots please?
01-16-2012 05:45 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #70
RE: X-Threads Garage?
For XThreads forum settings, you can view the attachment in this post:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=1153&pid=97

For XThreads Custom Thread Fields setting, you can find it when creating or editing a custom thread fields.

There is some screenshots in this post for how creating a custom thread fields (a bit different, because it is for the previous XThreads version, but the step should be the same):
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=291&pid=31

01-16-2012 06:16 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: