PDA

View Full Version : [Something descriptive here will yield more responses]


BamaStangGuy
06-20-2006, 07:50 PM
I would like to have this [Something descriptive here will yield more responses] added on newthread.php inside the Title: tag like they have over at Digital Point forums. How do I go about doing this

Iain M
06-21-2006, 10:34 AM
I tested this on 3.6 Beta 1 cos that's what i'm running on my localhost, but it should work on 3.5.x

Admic CP -> Styles & Templates -> Style Manager -> Edit Templates -> New Posting Templates -> newthread

FIND:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>

REPLACE WITH:
<td><input type="text" class="bginput" name="subject" value="[Something descriptive here will yield more responses]" onfocus="if(this.value=='[Something descriptive here will yield more responses]')this.value='';" onblur="if(this.value=='')this.value='[Something descriptive here will yield more responses]';" size="50" maxlength="85" tabindex="1" /></td>

BamaStangGuy
06-21-2006, 06:19 PM
Thanks a ton

Iain M
06-21-2006, 07:45 PM
np :)

bashy
06-22-2006, 03:09 PM
Hi, I just tried this and nothing seems to show...
I take it this is meant to show when you hover over the text input for the subject?

Iain M
06-22-2006, 07:44 PM
when you click new thread '[Something descriptive here will yield more responses]' will be in the Title box automatically, and when you click to enter your own title it will vannish, also if you click out of the title box without entering a title '[Something descriptive here will yield more responses]' will appear again.

CP1

bashy
06-22-2006, 07:48 PM
oh...interesting...it dont show for me lol

Cheers for the description though :)

Iain M
06-22-2006, 07:54 PM
lol, it should show :)

make sure you copy all of the code, I just tried it on my vB 3.5.4 board and it worked fine...

amykhar
06-22-2006, 07:56 PM
does it show if javascript is disabled?

Iain M
06-22-2006, 07:57 PM
does it show if javascript is disabled?

not sure... i'll just check that :)

EDIT: yes it worked fine for me with javascript disabled in FireFox

bashy
06-22-2006, 07:58 PM
I just double checked and its all there lol
Heres the code and a part of my newthread template

<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="[Something descriptive here will yield more responses]" onfocus="if(this.value=='[Something descriptive here will yield more responses]')this.value='';" onblur="if(this.value=='')this.value='[Something descriptive here will yield more responses]';" size="50" maxlength="85" tabindex="1" /></td>
<td>&nbsp;&nbsp;</td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>

lol, it should show :)

make sure you copy all of the code, I just tried it on my vB 3.5.4 board and it worked fine...

Iain M
06-22-2006, 08:05 PM
I just double checked and its all there lol
Heres the code and a part of my newthread template

<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="[Something descriptive here will yield more responses]" onfocus="if(this.value=='[Something descriptive here will yield more responses]')this.value='';" onblur="if(this.value=='')this.value='[Something descriptive here will yield more responses]';" size="50" maxlength="85" tabindex="1" /></td>
<td>&nbsp;&nbsp;</td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>

this is the code part from my newthread template, which shows for me
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="[Something descriptive here will yield more responses]" onfocus="if(this.value=='[Something descriptive here will yield more responses]')this.value='';" onblur="if(this.value=='')this.value='[Something descriptive here will yield more responses]';" size="50" maxlength="85" tabindex="1" /></td>
<td>&nbsp;&nbsp;</td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td> </tr>
</table>

although i dont see anythng different from what you've done :\


CP1

bashy
06-22-2006, 08:08 PM
I think its just one of them unexplained phenomeons, a bit like my spelling pmsl.....cheers anyway m8 :)

Iain M
06-23-2006, 10:05 AM
lol,

np :)

dethfire
08-23-2008, 04:38 PM
when you click preview the title reverts back to the javascript text, any ideas? this doesn't happen at DP though

brandonroy
04-20-2009, 05:23 PM
when you click preview the title reverts back to the javascript text, any ideas? this doesn't happen at DP though
Same thing with me. If someone knows how to do this correctly, please do tell!