Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Stencil Details »»
Thread Stencil
Version: 1.3, by sebbe sebbe is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.2 Rating:
Released: 10-27-2006 Last Update: 10-28-2006 Installs: 173
DB Changes Uses Plugins
 
No support by the author.

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!

Download Now

File Type: xml thread_stencil_1.3.xml (3.3 KB, 717 views)

Screenshots

File Type: gif admincp.gif (13.4 KB, 0 views)
File Type: gif thread.gif (36.8 KB, 0 views)
File Type: gif thread2.gif (15.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-28-2006, 12:48 AM
AMG021 AMG021 is offline
 
Join Date: Sep 2006
Location: Not From This Planet
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved!
Reply With Quote
  #3  
Old 10-28-2006, 12:58 AM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AMG021
Reserved!
Uhm, why exactly did you reserve that post?
Reply With Quote
  #4  
Old 10-28-2006, 01:04 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 10-28-2006, 01:22 AM
zappsan's Avatar
zappsan zappsan is offline
 
Join Date: Sep 2004
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100
For future use.

Thanx AMG, i like the concept, i think i will have a use for this.
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
Reply With Quote
  #6  
Old 10-28-2006, 01:57 AM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 10-28-2006, 02:02 AM
voteforbird's Avatar
voteforbird voteforbird is offline
 
Join Date: Jul 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-28-2006, 03:29 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 10-28-2006, 04:28 AM
voteforbird's Avatar
voteforbird voteforbird is offline
 
Join Date: Jul 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 10-28-2006, 06:10 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04774 seconds
  • Memory Usage 2,333KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete