Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #72  
Old 12-18-2009, 08:21 AM
kalvin kalvin is offline
 
Join Date: Feb 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'];
}
Reply With Quote
  #73  
Old 12-29-2009, 06:05 PM
Antyrael Antyrael is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, this works on vBulletin 4.0 Gold without a glitch, good job Sebbe
Reply With Quote
  #74  
Old 05-24-2010, 10:02 AM
lastpoet lastpoet is offline
 
Join Date: May 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly on Vbulletin 4.0.3

Very nice work.
Reply With Quote
  #75  
Old 06-18-2010, 05:54 PM
jfreeze jfreeze is offline
 
Join Date: Jun 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #76  
Old 03-03-2011, 08:22 PM
mytweakerart mytweakerart is offline
 
Join Date: Feb 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #77  
Old 03-03-2011, 08:39 PM
mytweakerart mytweakerart is offline
 
Join Date: Feb 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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']);
Reply With Quote
  #78  
Old 03-04-2011, 08:32 PM
mytweakerart mytweakerart is offline
 
Join Date: Feb 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod is great!

HOW can i make it work in the Private Message page?
Reply With Quote
  #79  
Old 11-25-2011, 07:58 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #80  
Old 06-24-2012, 12:05 PM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this working on 4.2? It's exactly what i need!
Reply With Quote
  #81  
Old 06-25-2012, 08:09 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

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 01:15 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.06013 seconds
  • Memory Usage 2,324KB
  • 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
  • (1)bbcode_code
  • (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
  • (3)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