The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New post template
Hi al,
Does anyone know if there is a mod for first post template? By this I mean as an example if someone is posting in a classifieds section. When they click new thread and the editor opens up there is a predefined template in the editor itself? Does this exist? Thanks all - Methok |
#2
|
|||
|
|||
interessting ask
|
#3
|
||||
|
||||
Go to your Admin CP -> Plugin Manager -> Add a New Plugin
Product: vBulletin Hook: newthread_start Exe. Order: 5 Title: New Thread Template PHP Code: PHP Code:
Change the test message to the template you want. Use \n for new lines. Example: Code:
$newpost[message] = "This is a line 1. \n This is line 2. \n This is line 3."; |
Благодарность от: | ||
TheLastSuperman |
#4
|
|||
|
|||
Newbie here. If you want this to apply to multiple subforums (but not all), do you just separate the forumid # with commas?
|
#5
|
||||
|
||||
You'd need to use an array, if conditions can be found here https://vborg.vbsupport.ru/showthread.php?t=215032
|
#6
|
|||
|
|||
Thank you. Again, super newbie here. So just insert "array(1,2,3,6)" instead of just a single number where the forumid # is?
|
#7
|
||||
|
||||
Yep pretty much
|
#8
|
|||
|
|||
Kicking my butt.
|
#9
|
||||
|
||||
There is a modification called something like a "Stencil" mod and it will work for you. It is in the 3.x section, but it worked when I initially tested it for 4.0.x. So, test it on your test site and see if it still works.
|
#10
|
|||
|
|||
Quote:
I like the idea of just using the existing newthread_start vbulletin plug-in. The plug-in worked fine on one forum, but I just can't seem to get the array code right within that plug-in code so it will do the same thing to a selection of forumids. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|