vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Change Description field. - View Topic
Topic Rating: *****
Printable View
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 36
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Change Description field. (12th Apr 09 at 12:10pm UTC)
Resolved
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!)
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Change Description field. (14th Apr 09 at 3:49am UTC)
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

rroll.to— Shorten a link, rickroll your friends.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Change Description field. (14th Apr 09 at 9:34am UTC)
Why not get by name & do parentNode then? {Wink} {Tongue Out}  
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 36
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Change Description field. (9th Aug 09 at 7:28am UTC)
Can I get this updated to work with v2? :3
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Change Description field. (10th Aug 09 at 10:38pm UTC)
<script><!--

/* Change "Description" */

var newName = "Time Frame:";

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

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 36
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Change Description field. (10th Aug 09 at 11:06pm UTC)
<p>Works beautifully! Thanks!<span class="Apple-tab-span" style="white-space:pre"></span></p><p><br></p>
dog199200
Guest
Re: Change Description field. (10th Aug 09 at 11:22pm UTC)
{Tongue Out} whats with the html {Tongue Out}
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 36
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Change Description field. (11th Aug 09 at 1:31am UTC)
I don't know. It just appeared when I press post. And when I press edit it is blank.
 Printable View

All times are GMT+0 :: The current time is 3:49am
Page generated in 0.5337 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums