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
  #22  
Old 10-28-2006, 12:57 PM
rasun rasun is offline
 
Join Date: Aug 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Allready done with the new version? You are very fast^^

Yes, now it?s perfect for my needs, big thanks again!

:up:
Reply With Quote
  #23  
Old 10-28-2006, 01:44 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SeQual
Very nice hack, suggestions.

Per forum basis (as already been suggested ) and the ability to set per forum to have the predefined text stay on click or not.

Would be useful if you want to give extra information in the message field of how and what is allowed to post. When you click in the message field the text is gone and you can write your message.

Same what voteforbird suggested I believe

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

Great hack, very nice feature
Read this post: https://vborg.vbsupport.ru/showpost....62&postcount=8 and https://vborg.vbsupport.ru/showpost....0&postcount=10
Reply With Quote
  #24  
Old 10-28-2006, 06:11 PM
voteforbird's Avatar
voteforbird voteforbird is offline
 
Join Date: Jul 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We don't mean graying the field altogether, but rather just the stencil text. When real text is added, it would be black. Also, it's be neat if the stencil would come up again if no text is added to the field.
Reply With Quote
  #25  
Old 10-28-2006, 06:33 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by voteforbird
We don't mean graying the field altogether, but rather just the stencil text. When real text is added, it would be black.
Thats what the second edit does. Gray stencil text. When you click, the text clears, and any text typed turns to black. Hopefully the mod author adds it so no template edits are required
Reply With Quote
  #26  
Old 10-28-2006, 07:00 PM
voteforbird's Avatar
voteforbird voteforbird is offline
 
Join Date: Jul 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ntfu2
Thats what the second edit does. Gray stencil text. When you click, the text clears, and any text typed turns to black. Hopefully the mod author adds it so no template edits are required
Oh, my bad. Also, when I upgraded to 1.2 that stopped working.
Reply With Quote
  #27  
Old 10-28-2006, 07:07 PM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thing about the text coloring stuff, I have never written a line of javascript before. It seems that Ntfu2's piece of code worked there, I may try to implement.
Reply With Quote
  #28  
Old 10-28-2006, 07:12 PM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by voteforbird
Oh, my bad. Also, when I upgraded to 1.2 that stopped working.
Yepp, it's because this variable does no longer exist
PHP Code:
$vboptions[stenciltitle
Instead you should use this line if you want it to work like before
Code:
<td><input type="text" class="bginput" style="color: #ccc;" name="subject" value="$foruminfo[stenciltitle]" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" onclick="doClear(this)" element onFocus="this.style.color = '#000000';"/></td>
Reply With Quote
  #29  
Old 10-28-2006, 11:07 PM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version updated - 1.3
Reply With Quote
  #30  
Old 10-29-2006, 02:02 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

has anyone tried this with 3.5x?
Reply With Quote
  #31  
Old 10-29-2006, 02:15 AM
sebbe's Avatar
sebbe sebbe is offline
 
Join Date: Feb 2006
Location: .se
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djwins
has anyone tried this with 3.5x?
As it says in the first post, works on both 3.5 & 3.6.
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 02:04 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.05149 seconds
  • Memory Usage 2,343KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (6)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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