Author |
Message |
07/01/2008 19:00:41
|
JaniK
Newbie
Joined: 07/01/2008 18:51:17
Messages: 1
Offline
|
Hello everybody
First time here becouse of a problem with modifiying poll....
I am trying to put all "ex" polls (list) to my page but on another place where original poll is. I am trying to do this by makeing link "if url" (?url=expolls)...so if someone clicks on that link all ex polls end their results should display on exact spot. Well, this works fine only links are not correct becouse in url is missing "&url=expolls"
Link i get is: ...GS/index.php?action=results&poll_ident=5
It should be: ...GS/index.php?action=results&poll_ident=5&url=expolls !!
Someone know how to do that? or with other words how can i put list of all polls and their results on another place on page ?
Hopw to understand )
best regards,
Jani
|
|
25/02/2008 03:46:42
|
krisp23
Newbie
Joined: 03/02/2008 22:27:08
Messages: 3
Offline
|
I have the same exact question. Would love to be included on any response.
Thanks.
Kris
Chicago, IL, USA
|
|
25/02/2008 04:51:42
|
krisp23
Newbie
Joined: 03/02/2008 22:27:08
Messages: 3
Offline
|
I'm actually getting closer...I think.
I updated the $form_forward value in poll/include/class_poll.php
function poll() {
global $POLLTBL, $CLASS;
$this->tbl = $POLLTBL;
$this->poll_view_html = array();
$this->poll_result_html = array();
$this->options = array();
$this->options_text = array();
$this->poll_question = array();
$this->form_forward = basename("/home/public_html/comm/portal.php?chunk=polls");
Now my problems is that the URL getting returned for results is http://myURL.com/comm/portal.php?chunk=polls?action=results&poll_ident=19
If I can only change the second question mark to and ampersand '&', I'll have it.
Anyone know how to do this...?
|
|
18/05/2008 23:06:49
|
musicscore
Newbie
Joined: 18/05/2008 23:01:54
Messages: 3
Location: Netherlands
Offline
|
Have the same problem. Integrated the poll 2.08 in CMS Made Simple.
On my first site succesfully but on my second site the path is wrong.
The results should point to {sitename}/poll/....... but it points to {sitename}/....
Looks like the path variable is not added correctly.
Try the solution given here but I get a error.
Can some help me. Should I use an older version of advanced poll ?
Musicscore
|
|
19/05/2008 05:10:02
|
krisp23
Newbie
Joined: 03/02/2008 22:27:08
Messages: 3
Offline
|
It's been a while since I've been in this code, but if I recall correctly, my URL issue was coming from a value stored in the database, not in a .php file. I hope this helps.
|
|
19/05/2008 10:34:09
|
musicscore
Newbie
Joined: 18/05/2008 23:01:54
Messages: 3
Location: Netherlands
Offline
|
I deleted the tables in the database and installed the software again.
So the tables in the database are created from scratch.
Same problem. I'm getting hopeless. I really like the poll software (but only if it works).
Greetings,
Musicscore
|
|
21/05/2008 10:26:28
|
musicscore
Newbie
Joined: 18/05/2008 23:01:54
Messages: 3
Location: Netherlands
Offline
|
Because I didn't find a solution for this problem on internet I did look in the php scripts of the advanced poll 2.0.8.
There I found out the the poll form didn't point to the current url.
The solution is :
Open de file common.inc.php (wordpad)
add before
function no cache_header() {
this line:
$pollvars['currentpage'] = $_SERVER["REQUEST_URI"];
Save file.
Open the poll template
modify the form line to:
<form method="post" action="$pollvars[currentpage]">
Save the template.
Now the poll will open the page on which it is located.
Maybe the next release can implement this change.
|
|
|