Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 My Feature Ideas
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #31
RE: My Feature Ideas
(01-29-2011 11:11 AM)ZiNgA BuRgA Wrote:  I've thought about that one before, but:
  • MyBB's editor is "broken" (like many parts of MyBB itself) - its OOP model is crap and you cannot have more than one instance of it on a page; in other words, this will screw up the normal post editor if I put it there

Yes, Yumi. When XThreads had the Custom type of custom thread fields in some previous version, I use it to "steal" the message id from the default textarea. Unfortunately, it means that the default textarea lost the feature (if I use it together wit the custom thread fields). So, I give up with it Biggrin

01-31-2011 09:38 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #32
RE: My Feature Ideas
Yumi, I have an idea (maybe for XThreads 2.0 ? Biggrin).
Is it possible that we have something like this in the value lists (for Listbox, Option Buttons and Check Boxes), Yumi?

Code:
1{|}My Text 1
2{|}My Text 2
3{|}My Text 3

Similar to the Formatting Map List feature, but it is for input fields.
So, the output of our selectable custom thread fields on newthread and editpost is simliar to (example for Listbox):

HTML Code
<select name="xthreads_myfield">
	<option value="1">My Text 1</option>
	<option value="2">My Text 2</option>
	<option value="3">My Text 3</option>
</select>



  • We can set the Underlying Data Type setting to Integer, if Allow multiple values for this field setting is set to No.
  • If we want to change the 'display text' later, we don't need to update all threads with the new value.
    For example, we can change the value list like this:

    Code:
    1{|}Changed Text 1
    2{|}My Text 2
    3{|}Changed Text 3

    without needed to update all threads that use value 1 and 3.

  • If we have a special chars inside the value list, we don't need to 'worry' that MyBB (1.6.4) will 'reject' our variable.
    For example:

    Code:
    {$filters_set['myfield']['selected']['Games, Entertainment']}

    because we can use:

    Code:
    {$filters_set['myfield']['selected'][1]}

    if we don't have Template Conditional or PHP In Template plugin installed.


That is one of my idea, Yumi (I don't know whether it is applicable or not).

I'm really sorry for bumping this thread Biggrin

(This post was last modified: 10-25-2011 08:04 AM by RateU.)
10-25-2011 08:02 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #33
RE: My Feature Ideas
Nah, that makes a lot of sense and is easy to implement Smile

My Blog
10-25-2011 12:21 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #34
RE: My Feature Ideas
That really sounds very helpful if you ask me (I know nobody asked me, haha).

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
10-25-2011 02:40 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: #35
RE: My Feature Ideas
(10-25-2011 12:21 PM)ZiNgA BuRgA Wrote:  Nah, that makes a lot of sense and is easy to implement Smile

Thank you very much for considering it, Yumi Smile

(10-25-2011 02:40 PM)Sama34 Wrote:  That really sounds very helpful if you ask me (I know nobody asked me, haha).

Biggrin

10-26-2011 05:37 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #36
RE: My Feature Ideas
Yumi, I've downloaded from the github, and try it Yipi

I really like it. And really like the bonus (the <span> feature for listbox!) 50star.GIF

Thank you very much, Yumi! Love

10-27-2011 06:57 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #37
RE: My Feature Ideas
(10-25-2011 08:02 AM)RateU Wrote:  
  • If we have a special chars inside the value list, we don't need to 'worry' that MyBB (1.6.4) will 'reject' our variable.
    For example:

    Code:
    {$filters_set['myfield']['selected']['Games, Entertainment']}


It seems that it is MyBB bug?
http://dev.mybb.com/issues/1843

01-15-2012 06:45 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #38
RE: My Feature Ideas
Possibly...
I gave them the code, so I don't really want to admit it. Tongue

A change in the matching regex should fix it.  I had never really thought about special characters there TBH.

My Blog
01-15-2012 09:48 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #39
RE: My Feature Ideas
(01-15-2012 09:48 AM)ZiNgA BuRgA Wrote:  I had never really thought about special characters there TBH.

Yumi, I'm sorry for this stupid question. I would like to know whatever chars (commonly used as a text) I should prevent to be used in my filterable Value Lists?
I think I don't have this "issue" anymore because I use the dev XThreads version (XThreads can separate the key and the value), but I have not changed some filterable listbox custom fields yet.

01-16-2012 02:24 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #40
RE: My Feature Ideas
Well MyBB allows letters, numbers and the space & underscore characters.
See the check_template() function in admin/inc/functions.php for the full listing.

My Blog
01-16-2012 10:14 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: