Thread Rating:
  • 10 Votes - 4.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThreads Example Applications
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #21
RE: XThreads Example Applications
(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
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #22
RE: XThreads Example Applications
(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.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
04-24-2012 02:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #23
RE: XThreads Example Applications
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.

My Blog
04-24-2012 02:53 PM
Find all posts by this user Quote this message in a reply
adisp007 Offline
Junior Member
**
Posts: 26
Joined: Apr 2012
Post: #24
RE: XThreads Example Applications
(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

Best Regards,

Adi Sucipta Pratama
04-25-2012 05:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: XThreads Example Applications
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.

My Blog
04-25-2012 09:14 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #26
RE: XThreads Example Applications
(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.

           

Because I'm a total zero in coding, I can't make it nicely. That's why I really want MyBB has the feature.

04-26-2012 06:49 AM
Find all posts by this user Quote this message in a reply
adisp007 Offline
Junior Member
**
Posts: 26
Joined: Apr 2012
Post: #27
RE: XThreads Example Applications
^@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

Best Regards,

Adi Sucipta Pratama
04-26-2012 12:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #28
RE: XThreads Example Applications
@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

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
04-26-2012 01:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: XThreads Example Applications
(04-26-2012 12:27 PM)adisp007 Wrote:  Will You release it?

Try this in your test board (attached).


Attached File(s)
.7z  xt_tpl.7z (Size: 4.15 KB / Downloads: 600)

04-27-2012 07:21 AM
Find all posts by this user Quote this message in a reply
WhiteEagle Offline
Member
***
Posts: 62
Joined: Sep 2011
Post: #30
RE: XThreads Example Applications
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

I fold for team 52482. Do you fold?
MyBB powered sites: Leet Link FoodRatings
08-02-2012 06:51 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: