vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Thread Stencil (https://vborg.vbsupport.ru/showthread.php?t=130162)

sebbe 10-27-2006 10:00 PM

Thread Stencil
 
1 Attachment(s)
Thread Stencil v. 1.3
First off I want to say this is my first vB hack ever, well actually the 2nd but the first one is not released. Please be kind, constructive criticism is welcome! :)

I hope this hack does not already exist, I searched but couldn't find anything similiar.

This hack was requested by rasun here https://vborg.vbsupport.ru/showthread.php?t=130137

Enough with the bs, what does this hack do?
This hack will let you predefine a Title and Message that will show up when a user creates a new thread. It will just fill the boxes so the users can edit them. In the Forum Manager you can edit each forums own stencil.
It can be used for making interviews, application forms etc. See screenshots for example of an interview.

Misc
Tested on vB 3.5.4 & vB 3.6.0

Version Updates
Version 1.2
* Set custom stencils in the forums of your choice.
* Enable / Disable stencils in each forum.
OBS! - This new version makes changes to the database, you might want to make a backup just to be safe.

Version 1.3
* New tags added for output of username & date, [username] & [date]. See screenshots for more info.

Installation instructions
Import the product .xml. Go into Forum Manager and choose "Edit Forum" where you want to apply a new stencil. Scroll to the bottom and you can find the settings there.

Upgrade instructions
Uninstall the old product from Product Manager. Install the new product .xml.

Please click install if you're using this hack! :)

AMG021 10-28-2006 12:48 AM

:) Reserved!

sebbe 10-28-2006 12:58 AM

Quote:

Originally Posted by AMG021
:) Reserved!

Uhm, why exactly did you reserve that post?

snakes1100 10-28-2006 01:04 AM

Quote:

Originally Posted by sebbe
Uhm, why exactly did you reserve that post?

For future use.

Thanx AMG, i like the concept, i think i will have a use for this. :cool:

zappsan 10-28-2006 01:22 AM

Quote:

Originally Posted by snakes1100
For future use.

Thanx AMG, i like the concept, i think i will have a use for this. :cool:

AMG wasn't the one who released this hack, look above...

Anyway, I like the idea and will try it out when I have time :)

Kirk Y 10-28-2006 01:57 AM

Great idea. This'd definitely come in handy on forums that use threads to create order forms or requests. Excellent idea, very useful.

One suggestion for a future update: create a stencil for each forum using forum permissions. ;)

voteforbird 10-28-2006 02:02 AM

Neat product. Suggestion: Have an option to make the stencil text gray and then clear onclick. This would work much better for my (and others'?) purposes.

Ntfu2 10-28-2006 03:29 AM

Quote:

Originally Posted by voteforbird
Neat product. Suggestion: Have an option to make the stencil text gray and then clear onclick. This would work much better for my (and others'?) purposes.


Edit headinclude - at very end
Code:

<script language="Javascript">
 <!--

 function doClear(theText)
{
    if (theText.value == theText.defaultValue)
 {
        theText.value = ""
    }
 }
 //-->
 </script>

Open newthread template find
Code:

<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td>
And change to (if using this hack)

Code:

<td><input type="text" class="bginput" name="subject" value="$vboptions[stenciltitle]" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" onFocus="doClear(this)"/></td>
demo http://top-vb.com

voteforbird 10-28-2006 04:28 AM

Thanks. How would I do this for the body as well as the title? Also, can it appear gray when the template is there only?

Ntfu2 10-28-2006 06:10 AM

Quote:

Originally Posted by voteforbird
Thanks. How would I do this for the body as well as the title? Also, can it appear gray when the template is there only?

Replace the newthread with this instead edit the CCC and 000000

Code:

<td><input type="text" class="bginput" style="color: #ccc;" name="subject" value="$vboptions[stenciltitle]" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" onclick="doClear(this)" element onFocus="this.style.color = '#000000';"/></td>
Cant help ya with the message area right now. But that will do it for the subject box


All times are GMT. The time now is 01:08 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.01104 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete