Aspies For Freedom

Full Version: Poll Thread Test
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is the test, also wanted to see what PHP file was used to create polls so that I might be able to create polls for threads that have been around for some time.
This was the code that came in the address:

polls.php?action=newpoll&tid=12317&polloptions=2

Haven't tried this out yet but the idea is that you first write "www.aspiesforfreedom.com/" Then write the thing above with the correct tid (thread id) number for the thread you want to add a poll to.
Seemed to work if the thread was mine:

http://www.aspiesforfreedom.com/showthread.php?tid=7240
Bad explanation in the earlier posts, sry.

If I try to make a poll on a thread that others have made I get that I do not have the authorization.
I rambling again, my bad.

If I use the code on a thread where I've already put a poll I get the message that there's already one poll for the thread - so I can't edit the existing poll that way.

So I tried changing where it says "newpoll" to "editpoll" - that gives "no authorization". If I instead of having "newpoll" or "editpoll" put "absfudct" I get a blank page instead. So I guess it really isn't possible to edit the polls.
however, it is possible to add polls to existing threads..?

good to know...
Yes it is possible if it is your own thread.

As I might have been unclear earlier I'll try to explain:

In the address line after "www.aspiesforfreedom.com" you will see the PHP file used and after the "?" you will see some input the file needs to know what to display in your browser.

So when you view this thread you will see in the address line that you are using the "showthread.php" file and with the input "tid=12317", 12317 is the thread's identification number.

To create a new poll you use the "poll.php" file like this:

http://www.aspiesforfreedom.com/poll.php

Bet nothing will happen if you don't give it any input.

Like I said the input is written after the "?".
This input specifies that you want to create a new poll, that you want the poll to this thread (by identification number) and that you want this poll to have two options.

?action=newpoll&tid=12317&polloptions=2

You really just have to have a line like this:

http://www.aspiesforfreedom.com/
polls.php?action=newpoll&tid=12317&polloptions=2

... , put it into the address and change the number after "tid=" into the thread's identification number that you want the poll to. You can find the thread's identification by looking at what thread identification (tid) your address line is displaying when viewing the thread.

Like the number I made bold here:

www.aspiesforfreedom.com/showthread.php?tid=7240
Line like this, some line break appeared out of nowhere:

http://www.aspiesforfreedom.com/polls.ph...loptions=2
Line like this:

Code:
http://www.aspiesforfreedom.com/
polls.php?action=newpoll&tid=12317&polloptions=2


Man beats machine yet again.

No?

Well you get the idea.
So you need to write a code to make a poll? I am clueless but you know what your doing Erkolos. Good for you!
You don't need to write a code, you will get the option to add a poll to a thread when you create a thread, but this way you can add polls on threads you've made long ago.
Ah! I just noticed the I want to add a poll button. Wow sometimes I'm oblivious.
Reference URL's