![]() |
How to Determine if a Newthread or Newpost is in Preview Mode
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". |
You could check for the 'postpreview' value in the templates.
Or the $newpost['preview'] value in the newpost_preview hook. |
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.
|
This way..
Code:
<vb:if condition="!$postpreview"> |
Thanks .
|
All times are GMT. The time now is 02:40 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:
|