MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(03-01-2011 05:31 AM)RateU Wrote: [ -> ]Yumi, I want to ask something.
Is there any reason why XThreads not enabling conditional globally (in template) if a user install XThreads but doesn't have Template Conditional or PHP In Template plugin installed?
I think (my personal opinion), XThreads and conditional is an amazing combo Biggrin
But I don't know much about performance if this is the reason.
Well, we originally had PHP in Templates, so I've decided to keep the two systems separate so we don't have duplicate functionality (although the conditional code used in both is somewhat a duplicate).
I guess performance is another thing - conditionals in XThreads adds very little overhead whereas conditionals in templates is a bit more.

You're right that they do make sense together, but as we already are able to separate the functionality of the two, I think giving users this option makes things more flexible.
Hope that's what you wanted.
Yeah, I understand your reason, Yumi.
Thanks, for the explanation Smile
I love this plugin.
Where does XThreads gets the templates for a certain forum? I can't seem to find where they get loaded. For some reason XThreads stopped working on my forum after I have upgraded today, I can't confirm that it was working yesterday though but I suspect it was.

However, I need to know where the templates get loaded, e.g. rf_forumdisplay_threadlist
So, anything like PREFIXforumdisplay_threadlist but if I search for forumdisplay_threadlist it won't show me anything similar to that.

Maybe here in xthreads_global_forumbits_tpl() however some of the templates do not get cached, like the one I referred above, which is obvious since that's just for forumbits but I really can't seem to understand where rf_forumdisplay_threadlist gets loaded and once I figure it out I can start debugging it and looking for what's causing it not to display - note that it doesn't display the forum display templates neither the showthread ones, only the original templates of the theme.
(03-06-2011 05:31 AM)RateU Wrote: [ -> ]For the templates not loaded (if you are using Google SEO):
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=747&pid=70

Thanks RateU but what exactly can I do? Zinga doesn't provide the fix, I believe he has fixed it on Shemo's website but didn't provide a fix.
I'm sorry, unfortunately, I don't know too, Pirata.
Temporary fix (1.42 will have a better fix):
inc/plugins/xthreads.php:

Find and delete:

PHP Code:
xthreads_preglobal();


Find:

PHP Code:
function xthreads_global() {

Add after:

PHP Code:
xthreads_preglobal();

Thanks zinga, I'll try it out tomorrow Smile
Updated to v1.42:
  • fix bug where the default forum sort option would sometimes revert to "Board Default" in the ACP (thanks to jim7777 for finding)
  • fix bug allowing users to not set a value even if denied by permissions (thanks to RateU for reporting)
  • resolved conflict with Google SEO custom URLs (thanks to Shemo for reporting)
Reference URL's