MyBB Hacks

Full Version: XThreads Example Applications
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
(04-23-2012 08:11 PM)adisp007 Wrote: [ -> ]I wonder is there any way to grouping templates in Global Template?
Unfortunately, we can't do that.
I really want MyBB has the feature.
(04-24-2012 04:43 AM)RateU Wrote: [ -> ]
(04-23-2012 08:11 PM)adisp007 Wrote: [ -> ]I wonder is there any way to grouping templates in Global Template?
Unfortunately, we can't do that.
I really want MyBB has the feature.

What about a plugin? Maybe there is a hook. Something that will automatically group depending on some prefix or something.
If all your themes are assigned to a single template group, you could just use the grouping there.
Though creating groups is another matter.
Automatically sorting by prefix is difficult - it would probably require you to manually specify prefixes.
(04-24-2012 02:53 PM)ZiNgA BuRgA Wrote: [ -> ]If all your themes are assigned to a single template group, you could just use the grouping there.
...

I see.

My Theme 1 ===\
My Theme 2 ===-> My Single Template ===-> Template Group ===-> template
My Theme 3 ===/

So,I can make XThreads template in that Template Group? Shocked
For example in Showthread Templates group:
showthread
blog_showthread
link_showthread
XThreads plugin can still detect those template prefix? Yipi

But,I can only use 1 template type for all of my themes. xD
Ah,nevermind.
It's also more easier to manage,though. He

(04-24-2012 04:43 AM)RateU Wrote: [ -> ]...
I really want MyBB has the feature.

Yeah,I think it will be useful for plugin developers,too.
So they can make template group for their plugin template.
I see in MySupport plugin.It has template group in template for specified theme (not in Global Template). Smile

If not,at least provide default template group (same with template group for specified theme) in Global Template. Biggrin
From memory MyBB just groups by what the name starts with, so showthread_* templates get chucked under Show Thread.
Unfortunately XThreads doesn't really have a way to detect template prefixes that you set because they're evaluated dynamically.

Plugins can add their own groups of course, but when you create custom templates, there's no method of doing it.
(04-24-2012 02:04 PM)Sama34 Wrote: [ -> ]What about a plugin? Maybe there is a hook. Something that will automatically group depending on some prefix or something.
If talking about a plugin, I have an ugly plugin (for my personal use only) to create a template groups. But it is not grouped automatically. I need to create (new template) or assign (an existing template) manually into a group. Actually, it's only a "shortcut" to templates in Global Templates.

[attachment=795] [attachment=796] [attachment=797]

Because I'm a total zero in coding, I can't make it nicely. That's why I really want MyBB has the feature.
^@RateU
Wooow,cool. Surprised Great
Will You release it? Jap

If not MyBB,maybe @Yumi doesn't mind to add it as built-in feature in XThreads plugin.
For example with text menu: XThreads Templates
Wink2
@RateU, I think the coding doesn't matter too much as long as the plugin works fro the one using it Smile

It doesn't looks bad at all RateU! Biggrin
(04-26-2012 12:27 PM)adisp007 Wrote: [ -> ]Will You release it?

Try this in your test board (attached).
I wonder if Xthreads could be used to make a recipe book? I can adapt the reviews for the restaurant reviews, but I don't know if I could adapt anything to make that. Both would be needed if I was to make FoodRatings with MyBB... Wink
Pages: 1 2 3 4 5
Reference URL's