![]() |
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 |
interessting ask
|
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."; |
Newbie here. If you want this to apply to multiple subforums (but not all), do you just separate the forumid # with commas?
|
You'd need to use an array, if conditions can be found here https://vborg.vbsupport.ru/showthread.php?t=215032
|
Thank you. Again, super newbie here. So just insert "array(1,2,3,6)" instead of just a single number where the forumid # is?
|
Yep pretty much :)
|
Kicking my butt. :(
|
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.
|
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. :confused: |
Quote:
|
Quote:
<if condition="in_array($forum['forumid'], array(1,2,3,6))"> . . . </if> |
Quote:
--------------- Added [DATE]1367667559[/DATE] at [TIME]1367667559[/TIME] --------------- Quote:
if "in_array($foruminfo['forumid'], array (1,2,3,4,5,6,7))" { $newpost[message] = "Date: /n Time: /n Address: /n"; } |
Quote:
PHP Code:
|
Thanks, Lynne. Works great!
|
All times are GMT. The time now is 06:51 PM. |
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:
|