![]() |
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! :) |
:) Reserved!
|
Quote:
|
Quote:
Thanx AMG, i like the concept, i think i will have a use for this. :cool: |
Quote:
Anyway, I like the idea and will try it out when I have time :) |
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. ;) |
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.
|
Quote:
Edit headinclude - at very end Code:
<script language="Javascript"> Code:
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" /></td> Code:
<td><input type="text" class="bginput" name="subject" value="$vboptions[stenciltitle]" size="40" maxlength="$vboptions[titlemaxchars]" tabindex="1" onFocus="doClear(this)"/></td> |
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?
|
Quote:
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> |
A nice alteration would be to instead have this a per forum option in the Edit Forum section so you could have different options for each forum.
Thanks for the mod. |
cool. however I have a request :)
I want to have a feature to insert their username into the thread. eg. I would set up a thread title like this [username]'s mod application and then it would come out like: Hornstar6969's mod applicaiton This would be really good then :) |
Also here, thank you for fulfilling my request. :)
This addon is awsome, really needed something like that! :banana: EDIT: Like some other people here already mentioned....it would be great if you could create different stencils for different forums, instead of a "global" one...but anyway nice addon, will use it. |
I'm glad you like it. I'm going to meet your requests about having it on a forum per forum basis. I'll add it maybe today, if I have the time! :)
|
Would it be possible to have the possibility of having a poll added too? I have a review section in my site and as such there's a poll that goes with it, so the option to post the poll at the same time would be excellent too.
|
Version updated - 1.2
|
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:
Great hack, very nice feature |
Quote:
|
this is way useful ;)
|
Quote:
|
Allready done with the new version? You are very fast^^:)
Yes, now it?s perfect for my needs, big thanks again! :up: |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
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.
|
Quote:
PHP Code:
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> |
Version updated - 1.3
|
has anyone tried this with 3.5x?
|
Quote:
|
Thanks for the update. :)
This is actually really really good and would be a benefit to vbulletin as standard code, but none the less, I'm glad I will now have it installed on my site. Thanks. |
Will this work on vb 3.5.3 ?
|
Quote:
|
Hi there, this is really nice! :)
Would it be possible to add stencils to new events? I have the eventforums hack installed and adding a new thread in a linked forum shows no stencil. |
i absolutely appreciate this hack... i will be adding the extras you put in too... one of my friends has a aimoo board and she literally types her questions for each interview... while this is great and custom for each poet, ----the kid has no time to do that... this hack answered my need.. and while i wont be copying my friend's interview program, this is highly useful for my new members who will be asked a series of questions to break the ice...
so.... thanks a whole bunch!! |
This has a lot of potential... good stuff.
|
i noticed you updated the hack after a few people were talking about making the text grayed out and then disappear when someone clicks in the box...
is that feature default now?...if so I don't want to install this. If it's an option (which it should be :))...that would be great. My plans for this involve two forums...one would require the poster just to edit the info that's already there, while the other could use the 'disappear on click' form... is there a setting in the forum ACP to pick which you want?...if not, could you add that please? |
Quote:
|
Quote:
|
Quote:
|
All times are GMT. The time now is 04:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|