I want my vbulletin forum to have the same function as dp on the new thread page: Then after clicking in the box: Here is the current code for the title box: <input type="text" class="bginput" name="subject" value="$subject" size="60" maxlength="$vboptions[titlemaxchars]" tabindex="1" /> Code (markup): I found one code on vbulletin.org that works for this, but if you do a thread preview, the title goes back to the [Something descriptive here will yield more responses]
Try this code ..it works.. <input type="text" class="bginput" name="subject" value="$subject" size="60" maxlength="$vboptions[titlemaxchars]" tabindex="1" onblur="if(this.value=='')this.value=' [Something descriptive here will yield more responses]';" onfocus="if(this.value==' [Something descriptive here will yield more responses]')this.value='';"/> Code (markup):
Thanks. That does work, but [Something descriptive here will yield more responses] doesn't show in the field automatically. When you click in the title field and then click somewhere else on the page, THEN it shows up. Edit: Also, the code provided acts like a title. So that means when a member does'nt type in a thread title, then [Something descriptive here will yield more responses] becomes the title. DP doesn't do that
Alright, I just copied the code from dp directly (view source) and it works better, but it still reverts the thread title back to [Something descriptive here will yield more responses] when you click preview, and it still acts like a thread title, meaning you can post a new thread without entering a title because [Something descriptive here will yield more responses] becomes the title. This is really annoying!