UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Need help with some conditionals

Mist · ·
6:37 PM Tuesday, 13 May 2014
None
Hi guys. I need your help with a small line of code.

What i am trying to achieve is a "conditional" output for dashboard.write.php form.

If a published blog post is edited or if a draft blog post is edited -> do this - > else -> do that.


Basically i want to output something in submission form if the form is opened for a new blog post if the form is "opened" for editing an existing blog post or an existing draft, do something different.

What i achieved so far is this

<?php if ($isEdit) { ?>
do this for editing
<?php } else { ?>
do this for new post
<?php } ?>


This works great if the blog post edited is published but does not work if the blog post edited is a draft.
Any tips how to fine-tune the above code to make it work also for editing a draft ?

Thanks !
The replies under this section are restricted to logged in users or users with an active subscription with us