The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Stencil Details »» | |||||||||||||||||||||||||||||||||
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
Screenshots
Show Your Support
|
Comments |
#72
|
|||
|
|||
Hi,
adding to the response: Plugin & Products System -> Add New Plugin: Product: Thread Stencil Hook Loioncat: newreply_form_start Title: Thread Stencil Execution Order: 5 Plugin PHP Code: Code:
//check if forums is supposed to have stencil or not if ($foruminfo['stencilon']) { // Write stencil // Replace [username] $foruminfo['stenciltitle'] = str_replace("[username]",$vbulletin->userinfo['username'],$foruminfo['stenciltitle']); $foruminfo['stencilmsg'] = str_replace("[username]",$vbulletin->userinfo['username'],$foruminfo['stencilmsg']); // Replace [date] $foruminfo['stenciltitle'] = str_replace("[date]",date("dS F Y"),$foruminfo['stenciltitle']); $foruminfo['stencilmsg'] = str_replace("[date]",date("dS F Y"),$foruminfo['stencilmsg']); $newpost['title'] = $foruminfo['stenciltitle']; $newpost['message'] = $foruminfo['stencilmsg']; } |
#73
|
|||
|
|||
Nice, this works on vBulletin 4.0 Gold without a glitch, good job Sebbe
|
#74
|
|||
|
|||
Works perfectly on Vbulletin 4.0.3
Very nice work. |
#75
|
|||
|
|||
This mod looks very interesting but if I understand correctly this populates the message with pre-canned text. I would like to dynamically supply the text through a URL argument (ie. something like this:
http://www.mydomain.com/forums?jfile...text_goes_here Is that possible? This would allow me to use a link to send the visitor to a newly created forum topic where they can discuss the article they were previously viewing (and automatically include a link BACK to the article they came from). James |
#76
|
|||
|
|||
This is awesome!
How do i get more tags like [field1] [field2] etc to populate from my User Profile Fields? i have custom user profile fields, i would like to auto fill the message box with these.... ? thanks |
#77
|
|||
|
|||
nevermind i figured out how to add custom fields
// Replace [field1] $foruminfo['stenciltitle'] = str_replace("[field1]",$vbulletin->userinfo['field1'],$foruminfo['stenciltitle']); $foruminfo['stencilmsg'] = str_replace("[field1]",$vbulletin->userinfo['field1'],$foruminfo['stencilmsg']); |
#78
|
|||
|
|||
This mod is great!
HOW can i make it work in the Private Message page? |
#79
|
||||
|
||||
Is there a way to get this to work for every post and reply in certain forums???
Works well on 4.1.3 but could do with the option for it to work on all posts and reply s if it is possible |
#80
|
|||
|
|||
Is this working on 4.2? It's exactly what i need!
|
#81
|
||||
|
||||
Yes works Fine on 4.2 deverill2010
I use a mod myself based around this and its pretty much the same code wise as well and we have had no issues at all. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|