MyBB Hacks

Full Version: X-Threads Garage?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
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)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:
<?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.

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.
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
[Image: testhp.jpg]
Can you give me some tutorials so i can make the garage section/forum because i cant find it.
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).
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.
What you need to do is:
1. Install XThreads.
2. Apply the modification needed in the #2 posts of this thread.
Where is the XThread Settings? can you show me all the steps in screenshots please?
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
Pages: 1 2 3 4 5 6 7 8 9
Reference URL's