MyBB Community Forums

Full Version: Embed exterior poll in thread post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is there a way to embed a poll that I made (php script) into a thread post?
(I had to make my own custom poll)

Like a <?php include(); ?> or something??

Thanks.
-Brian
i dont think so mate
because adding php scripts , into threads is a big security issue
regards
illusion
MyBB is already generated from 98% PHP scripts. A normal thread (and the one I am replying to now) is generated from a PHP script (and SQL).

How can what I'm asking be any more of a security risk?
(2012-07-21, 10:15 PM)bgrella Wrote: [ -> ]MyBB is already generated from 98% PHP scripts. A normal thread (and the one I am replying to now) is generated from a PHP script (and SQL).

How can what I'm asking be any more of a security risk?

i mean if the php script is not submitted by mybb
and you are adding new one then i think this might have some risk
(2012-07-21, 10:19 PM)illusionalp Wrote: [ -> ]
(2012-07-21, 10:15 PM)bgrella Wrote: [ -> ]MyBB is already generated from 98% PHP scripts. A normal thread (and the one I am replying to now) is generated from a PHP script (and SQL).

How can what I'm asking be any more of a security risk?

i mean if the php script is not submitted by mybb
and you are adding new one then i think this might have some risk

Not submitted by mybb? I don't follow?
(2012-07-21, 10:22 PM)bgrella Wrote: [ -> ]
(2012-07-21, 10:19 PM)illusionalp Wrote: [ -> ]
(2012-07-21, 10:15 PM)bgrella Wrote: [ -> ]MyBB is already generated from 98% PHP scripts. A normal thread (and the one I am replying to now) is generated from a PHP script (and SQL).

How can what I'm asking be any more of a security risk?

i mean if the php script is not submitted by mybb
and you are adding new one then i think this might have some risk

Not submitted by mybb? I don't follow?
i mean if the php script wasn't in the original mybb script
then it might exploit your website..
You should develop it as a MyBB Plugin. Allowing php input on the user end is very dangerous.
I will be the only user doing it.

I am the admin.
What script is t where you want to add the poll in? Or is a custom PHP page?

You can check the Poll On Index plugin.
As far as I know, there's no way to embed PHP in a post in MyBB. There doesn't seem to be any plugins that do this, either. You should try to develop your custom PHP poll as a MyBB plugin, or modify MyBB's default polling system.
Pages: 1 2