vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Thread Stencil (https://vborg.vbsupport.ru/showthread.php?t=130162)

kalvin 12-18-2009 08:21 AM

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'];
}


Antyrael 12-29-2009 06:05 PM

Nice, this works on vBulletin 4.0 Gold without a glitch, good job Sebbe :)

lastpoet 05-24-2010 10:02 AM

Works perfectly on Vbulletin 4.0.3

Very nice work.

jfreeze 06-18-2010 05:54 PM

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

mytweakerart 03-03-2011 08:22 PM

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

mytweakerart 03-03-2011 08:39 PM

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']);

mytweakerart 03-04-2011 08:32 PM

This mod is great!

HOW can i make it work in the Private Message page?

ProFifaLeagues 11-25-2011 07:58 PM

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

deverill2010 06-24-2012 12:05 PM

Is this working on 4.2? It's exactly what i need!

ProFifaLeagues 06-25-2012 08:09 PM

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.


All times are GMT. The time now is 03:31 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
  • Page Generation 0.01327 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete