vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [Something descriptive here will yield more responses] (https://vborg.vbsupport.ru/showthread.php?t=119189)

BamaStangGuy 06-20-2006 07:50 PM

[Something descriptive here will yield more responses]
 
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:
Code:

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

                        <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

Quote:

Originally Posted by amykhar
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

Code:

                <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>

Quote:

Originally Posted by CP1
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

Quote:

Originally Posted by bashy
I just double checked and its all there lol
Heres the code and a part of my newthread template

Code:

                <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
Code:

                <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

Quote:

Originally Posted by dethfire (Post 1605228)
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!


All times are GMT. The time now is 08:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01300 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete