MyBB Hacks

Full Version: Using XThreads Custom Thread Fields For Plugin Settings
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
Hi,
with mybb + xthread (original), this topic = no problem
but
with mybb+xthread (little modification of the core) = get little problem.
if Custom Thread Fields,  Editable by Administrator. on thread edit don't appear field display to portal
but, if editable by everyone thats appear

and i think, no problem on xtdispportal plugin (because, choosen thread appear on portal if edit by everyone).
which parts are maybe influential?

thanks Cool
(01-14-2013 01:34 AM)RateU Wrote: [ -> ]Unfortunately, it is not designed for displaying images.

so how do i pull a string from Xthreads and use the string value in the template to render the image?
how can i pull it to the portal announcements please
Is it possible to display xthreads fields using this example, I added this code in the plugin file run phase but it didn't work for me. I used this example from other plugins posted here

Code:
			$threadfields = array();
			foreach($threadfieldscache as $k => &$v) {
				xthreads_get_xta_cache($v,$tids);
				$threadfields[$k] =& $thread['xthreads_'.$k];
				xthreads_sanitize_disp($threadfields[$k],$v,(!xthreads_empty($thread['username']) ? $thread['username'] : $thread['threadusername']));
			}

There is nothing wrong with the code you posted above.
It might be something I am missing in that case ?
I have changed xtdportal to xtldfeat in this file
(01-20-2018 11:47 PM)RateU Wrote: [ -> ]These aren't available on your plugin:
$threadfieldscache
$tids
$thread

So your code doesn't know what data should be processed.

Some more examples as your references:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=292&pid=1335
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=732&pid=1109
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=1315&pid=1102

Thanks a lot RateU for pointing out the issue, I referred to your examples and now it is working Smile
Great
It is very worthy for trying to learn how XThreads works (I'm still learning too).
Believe me, if you already know how to do that, with some creativity, there is nothing can stop you Biggrin
If there is an unresolved problem, we can try to bother Yumi Biggrin
Pages: 1 2 3 4 5 6
Reference URL's