Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 how to get the value of a threadfield
Hamster24 Offline
Member
***
Posts: 69
Joined: Sep 2014
Post: #1
how to get the value of a threadfield
i have a list box which have set values
a user selects those and when the thread is published.
The value is changed to its Displayed Output which i entered in the Formatting map list.
But in one location in the post bit i only want to show the original value of the field and not the changed displayed output how can i do that?
i.e. as an eg.
List Box Value
Hello
Hi
Sup
Displayed Out Put
<ahref="hello "> HELLO HOW ARE YU< /a>
<ahref="hello "> Hi HOW ARE YU< /a>
<ahref="hello "> Sup HOW ARE YU< /a>

now every time i use {$GLOBALS['threadfields']['key']} it displays it as <ahref="hello "> HELLO HOW ARE YU< /a> whereas at only one location i want it to display text HELLO which was in the value list.
{$GLOBALS['threadfields']['key']['value']} didn't worked for me
(This post was last modified: 05-06-2015 04:49 PM by Hamster24.)
05-06-2015 04:47 PM
Find all posts by this user Quote this message in a reply
Hamster24 Offline
Member
***
Posts: 69
Joined: Sep 2014
Post: #2
RE: how to get the value of a threadfield
zinga how can this be done?
05-07-2015 06:09 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: how to get the value of a threadfield
Don't use that displayed output.  Edit your templates to include the "how are you" text where you want it.

My Blog
05-09-2015 07:22 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: