zingaburga / XThreads-MyBB-Plugin

A powerful MyBB plugin which provides a flexible environment for administrators to perform various modifications.
http://mybbhacks.zingaburga.com/showthread.php?tid=288
24 stars 6 forks source link

New option - xthreads works in chosed templates #8

Closed avril-gh closed 11 years ago

avril-gh commented 11 years ago

I would like to suggest option where we can chose templates for which xthreads works, because currently they work for all templates.

It can be one setting globally, meant everything would work for templates X,Y,Z but nothing would be output to templates 1,2,3. (even tho variables can be still inserted to all templates)

Personally it would help me to work and design things while on live site, and on template that only i can see, without altering template that users see at the same time,

Now, when i implement some option in 'work in progress template' that is not available yet to users, they may get output from xthread variables into 'live site templates' as well where it not even had to be (yet).

zingaburga commented 11 years ago

I think you should probably approach this in a different way. If you're doing WIP templates you really should either: 1) do this off site (eg on a localhost box) 2) use a different template set, attached to a theme only you can use 3) possibly use template prefix conditions to dynamically override templates 4) use template conditionals to selectively hide things

Points 3 & 4 are somewhat ugly, so I suggest trying to strive for 1/2.

Nevertheless, the logic required for this is too complex for this to be implemented.