Additional Settings For Custom Profile Fields [1.2]
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #78
RE: Additional Settings For Custom Profile Fields
I worked it out - thanks - now to get the field to hide when on change of the other buttons - or a toggle. I went with radio buttons as I only want one option chosen. I was a bit bewildered by the previous post as I did not really understand you at all. I finally discovered after some trial and error that in the display format I needed to have :

Code:
{VALUE$1} {VALUE$2} {VALUE$3} {VALUE$4} {VALUE$5}
{VALUE}


to show the output on the Profile (not user cp). No idea why that is. Frown
So, the final working code (scraffly right now)

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
{$customfields}{$xtpf_inp['fid10']}

<script type="text/javascript">
 var el = document.getElementById('fid10_4');
 if (el)
 el.onchange = function() 
 {document.getElementById('thing').style.display = "block";}
 else
 alert("element not found");
 </script>
<div id="thing" style="display:none;">
{$xtpf_inp['fid11']}
</div>


I still don't get what you mean re the query. Sorry.



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 08-13-2012 03:56 AM by leefish.)
08-13-2012 03:54 AM
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-13-2012 03:54 AM

 Standard Tools
Forum Jump: