Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Custom Thread Fields Dependencies
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #3
RE: Custom Thread Fields Dependencies
Hi, I used this modification in my own site, and I am very pleased with it, but i noticed that my "optional" fields were visible on page load. I am not sure if I am doing something wrong, but I fixed it by adding a script onload. This is the code snippet at the top of my new thread template:  

Code:
1
2
3
4
5
6
7
<script>
window.onload = init;
function init() {
$('xt_tb1').hide();
$('xt_tb2').hide();
}
</script>


The ones I want to appear on change are hidden on load. Thanks a lot for the tutorial.



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 12-22-2013 08:40 PM by leefish.)
12-22-2013 08:33 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
Custom Thread Fields Dependencies - RateU - 12-06-2012, 05:06 AM
RE: Custom Thread Fields Dependencies - leefish - 12-22-2013 08:33 PM

 Standard Tools
Forum Jump: