Additional Settings For Custom Profile Fields [1.2]
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #76
RE: Additional Settings For Custom Profile Fields
I mean that if I have a plugin that makes a simple report and I do a query on the field value then it is better to look for a specific value rather than using wildcards? Like the % symbol in the " AND t.closed NOT LIKE 'moved|%' " that we use in many queries is not an efficient way to query. It is hard to avoid it in those queries because of the way the MYBB Table is made, but if we can avoid making our data require such a wildcard then the query is faster on the db.

So for example, "did you know that 37% of members use a custom cue?" If I have an input field for a profile field and I want to query on only one value from that profile field set then we are querying by text, so I want to have an input for custom cue. That is for query purposes. Then, when that input "custom cue" in the "type of cue" profile field is selected then ANOTHER custom profile field opens and they can put the data in a textarea.

Now, I know how to open a hidden div by "watching" for the on change event in an input, but as I only want that hidden div to open if they click on only one option from the 1st list then I need to know the id of the field they have clicked on - the input id for that item in the profile field list of inputs.

For example - in the what is your favourite game layout you shared - what if there was a sixth value - other game - and when that was clicked they could fill in a textarea with the Name of the favourite game? That textarea would actually be ANOTHER profilefield, but only visible if the 6th option of the favourite games was clicked.

I am trying to find the example.


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 08-12-2012 11:56 PM by leefish.)
08-12-2012 11:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Additional Settings For Custom Profile Fields - leefish - 08-12-2012 11:19 PM

 Standard Tools
Forum Jump: