If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Poll result link  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi
I have one question about this poll.

On my web site I am using index.php
with different switch "menu"

ie:
index.php?menu=info
index.php?menu=welcome
index.php?menu=files

and if I use:
index.php?menu=poll

then poll will be displayed with that switch
but after pressing 'vote' button or "result"
return link is:
index.php?action=results&poll_ident=6 without "menu=poll"

Is it possible to add 'menu=poll' so whole link will look like that
index.php?action=results&poll_ident=6&menu=poll
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Yes, but I can't remember where.

Some one did already do this, so have a search on...



and "return link".

I think it was something like the form tag in the templates you could pre-mod it or something.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

<form action=" ? thats what usually tells the form where to submit the data to.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



I know very well what does <form action=..> means
If only it was so simple, but it wasn't ....

You can safely delete all files from templates folder on your serwer becouse after instalation they are in mySQL base and are taken from there if neaded.
Second problem is that "vote" link is made by form method while 'result" link is made in pure html. Form method uses for example:

<form method="post" action="$this->form_forward">
You can add what you want after forward and before " to change form action but you must do it in mySQL and you have to do it each time when you want to change parameters of form action.

So the very best way is to use variables method ie. "$link" which can be changed in code of your html page, not in mySQL base through phpAdmin.
Its easy to change record in base but this is not a good way of solving that problem.

Anyway, It took me whole half of day to solve it, and I had to add procedures in class_poll.php which change parameters of index.php, as well i had to write mySQL query to change records responsible for templates of form.
Hard work, but it works now.

Now I go to sleep
Anonymous



Signing now
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum