MyBB Hacks

Full Version: Xthreads listbox aliases
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
Is it possible to have aliases of values taken as input from XThreads Listbox, for example :-
The inputs are
Val 1
Val 2
Val 3

And I can access those inputs using key value pair and the user formatted map list allows to store different display values as input.

But I want to access those formatted values and the alias I am using in map list.
Is it possible ?
I'm sorry, but I can't fully understand what you mean.
(01-02-2018 12:01 AM)RateU Wrote: [ -> ]I'm sorry, but I can't fully understand what you mean.
Hi RateU,
I will take the reference of this :-
http://mybbhacks.zingaburga.com/showthread.php?tid=1594

In the value list, we have both 1 and List #1

Code:
1{|}List #1
2{|}List #2
3{|}List #3

I can access the value {$GLOBALS['threadfields']['key']} which will show List #1.
If I want to show both List #1 and 1, what variable can be used for showing unformatted value i.e. 1 in this case.

(01-02-2018 12:52 AM)Verilog Wrote: [ -> ]what variable can be used for showing unformatted value i.e. 1 in this case.

You can grab the raw value by using {$GLOBALS['threadfields_x']['key']['raw_value']}
You can sanitize it using Template Conditional if needed.
Awesome Smile
This works fine, thanks RateU
You're welcome.
Reference URL's