The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Is there a variable or mechanism that identifies a newthread or newpost that is in preview mode?
I am trying to create a conditional such that the output of a custom template appears when somebody initially starts to post a new thread, but does not appear if they click "preview". |
|
#2
|
|||
|
|||
|
You could check for the 'postpreview' value in the templates.
Or the $newpost['preview'] value in the newpost_preview hook. |
|
#3
|
|||
|
|||
|
Perhaps I'm missing something; I don't see a way to use postpreview as part of a conditional from within a template. Thanks for your help.
|
|
#4
|
|||
|
|||
|
This way..
Code:
<vb:if condition="!$postpreview"> YOUR CODE </vb:if> |
|
#5
|
|||
|
|||
|
Thanks .
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|