vForums Support > Programming & Coding :: Code Requests & Support :: > Change Description field.

Change Description field. - Posted By ashkir (ashkir) on 12th Apr 09 at 12:10pm
I would love a code to change the word 'Description' to be something else or even a drop down. An RPG I am working on allows time jumps and I would like to use the description field to be the time the thread is taking place in. A dropdown seems to be a lot consisting of years 1925 to 2080; but, I think it would just be easier to just change the word.

Any codes around to do this? I would use a switch-it, but what if somebody posts the word description? Etc, and I wouldn't like it to interfere. I'd love it to be able to work with the new posting system. (Cannot wait for it to be rolled out!)

Re: Change Description field. - Posted By Marc (cr0w) on 14th Apr 09 at 3:49am
This won't work with the new system (I'll yell at Ross for removing the ID {Tongue Out} ), but this should work for the current one:

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Change "Description" */
  4.  
  5. var newName = "Time Frame:";
  6.  
  7. if(location.href.match(/action\/post/))
  8. {
  9.     document.getElementById("description_title").firstChild.firstChild.innerHTML = newName;
  10. }
  11. //-->
  12. </script>
 

Global Footer

Re: Change Description field. - Posted By Michael (wrighty) on 14th Apr 09 at 9:34am
Why not get by name & do parentNode then? {Wink} {Tongue Out}  

Re: Change Description field. - Posted By ashkir (ashkir) on 9th Aug 09 at 7:28am
Can I get this updated to work with v2? :3

Re: Change Description field. - Posted By Michael (wrighty) on 10th Aug 09 at 10:38pm
<script><!--

/* Change "Description" */

var newName = "Time Frame:";

if(location.href.match(/action\/post/)){
document.getElementById("description_title").innerHTML = newName;
}
// --></script>

Re: Change Description field. - Posted By ashkir (ashkir) on 10th Aug 09 at 11:06pm
<p>Works beautifully! Thanks!<span class="Apple-tab-span" style="white-space:pre"> </span></p><p><br></p>

Re: Change Description field. - Posted By dog199200 (dog199200) on 10th Aug 09 at 11:22pm
{Tongue Out} whats with the html {Tongue Out}

Re: Change Description field. - Posted By ashkir (ashkir) on 11th Aug 09 at 1:31am
I don't know. It just appeared when I press post. And when I press edit it is blank.