SimplePortal

Support => English Support => Topic started by: Adjacent on October 21, 2011, 07:27:53 PM

Title: Cannot use simple php poll in custom php block?
Post by: Adjacent on October 21, 2011, 07:27:53 PM
http://www.mr-corner.com/LittlePoll/index.html

I tried using this simple php poll in a php custom block.

Result attached.  :(

What should I do to get this poll code working on simple portal?

Thanks,
Jason
Title: Re: Cannot use simple php poll in custom php block?
Post by: AngelinaBelle on October 24, 2011, 08:24:06 PM
Before we get started, I feel obligated to ask:

Why not use a simpleportal sp_showPoll block, to show an ordinary SMF poll?
Title: Re: Cannot use simple php poll in custom php block?
Post by: Adjacent on October 26, 2011, 02:53:49 PM
Before we get started, I feel obligated to ask:

Why not use a simpleportal sp_showPoll block, to show an ordinary SMF poll?

I want a poll by itself. I don't want it linked to a topic where only members can vote. I want guests to be able to vote, & I don't want it linked to a topic.
Title: Re: Cannot use simple php poll in custom php block?
Post by: AngelinaBelle on October 27, 2011, 02:37:05 PM
Just checking.  a forum-based poll would be easiest.
To create a littlepoll block, you will need to do some custom coding.

You will need to know where to follow the readme file exactly, and where to do things a little differently for the php block.
first -- have you tried setting up a littlepoll stand-alone, just like the instructions say to do?

How did that go?
Title: Re: Cannot use simple php poll in custom php block?
Post by: Adjacent on October 27, 2011, 03:36:12 PM
Just checking.  a forum-based poll would be easiest.
To create a littlepoll block, you will need to do some custom coding.

You will need to know where to follow the readme file exactly, and where to do things a little differently for the php block.
first -- have you tried setting up a littlepoll stand-alone, just like the instructions say to do?

How did that go?

Eh.. I'm a little confused here. I just tried copying over the code from the poll to the block.

What was I supposed to do?
Title: Re: Cannot use simple php poll in custom php block?
Post by: AngelinaBelle on October 28, 2011, 09:13:11 AM
Steps 1-4 -- should go just like the instructions say.
After that, you need to use a little common sense, a little programming knowledge, a little knowlege of php.

What error emssages did you find in your log when you tried out that block?
SimplePortal 2.3.8 © 2008-2024, SimplePortal