(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
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
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.
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:
Find:
PHP Code:
function xthreads_global() {
|
Add after:
Thanks zinga, I'll try it out tomorrow