Recent Topics

1 Jan 18, 2016 09:17    

I have a countdown php script that shows the days / hours left to our ships reunion. I would like to make a blog post that would show the output of the php script. I tried making a blog post that contained

<?php include('countdown.php') ?>
But when I save the post it just shows me the text of <?php include('countdown.php') ?>.

Can anyone tell me how to do this, if it is even possible.

Thanks!
Have a great day
Jim

2 Jan 18, 2016 17:44

@nemo656 there is no way to write php code directly into the post's content. That's an important security risk.

There are proper ways to do that by adding the code into the skin or widget. Or even programming a simple renderer plugin that replaces some custom tag written in the post by the output of the <?php include('countdown.php') ?> script.

There are some examples in the online manual (i.e.: http://b2evolution.net/man/creating-plugin).

Please, let us know if you need help with any of those options.

Regards!

3 Jan 19, 2016 08:22

Thank you for the link to the plugin info. I will explore that.

Thanks!
-Jim


Form is loading...