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 
Show number of Poll  XML
Forum Index » Support Forum
Author Message
Dooz
Beginner

Joined: 14/01/2005 01:05:45
Messages: 5
Location: France/Grenoble
Offline

Hi
I would like to show the number of Poll on my website. How do it.?
Thanks a lot.
[MSN]
Auron
Expert
[Avatar]

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

can you post the code you use to show your poll on your webpage.
i can't remember it off hand, then i'll be able to give the code you need.

Auron

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]
Anonymous



Hi Auron
It's the same as demo_3.php to display all polls.

And in some other pages i using this one:
Auron
Expert
[Avatar]

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

I'm not really sure...



You can give it a go.
I was hoping there would be more there but as there isn't i can't do much, sorry.

Auron

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]
Dooz
Beginner

Joined: 14/01/2005 01:05:45
Messages: 5
Location: France/Grenoble
Offline

Hi Auron
Thank you. But after search on the web, i found:
Just put this:

It was easy...no

Another question:
How to show comments under the poll same as demo_3.php ?
[MSN]
Carbonize
Master
[Avatar]

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

thats not easy, it can be done easier.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

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

Slap that in your includes/class_poll.php then in your web page, after you have put the includes, you can use echo (how_many_polls());.

Not tested but should work fine.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

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

Your so cooool...

^^, nice!

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

Auron wrote:Your so cooool...

^^, nice!

Yes I know would also be nice if you answered your emails sometimes Auron. Quietus was after a mod but I couldn't contact you so wrote it myself. He wanted it to auto post the results of the last poll when he made a new one without having to manually change the poll id number in the function call. I'll email you the mod if you want to add it. I made it so you can use poll_id['last'].

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

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

o_0

what email address did u send it to?

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]
Auron
Expert
[Avatar]

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

right now i've got the right email address in my profile.

can u send me the mod, thanks, using the email address on this forum- now that its been updated.
i don't even have an email from that person only one from you...

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]
Dooz
Beginner

Joined: 14/01/2005 01:05:45
Messages: 5
Location: France/Grenoble
Offline

Thank's Carbonize
Of course it's easier.
What about my second question ?
I explain: I'm using this code on a page to display all polls (same as demo3):

I would like to show comments when we click on "View results" same as demo2.(under the graph or in a popup).
[MSN]
Carbonize
Master
[Avatar]

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

that be something for Auron to answer. As I said I have never used the Advanced Poll I have just read the class_poll.php file.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

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

You could just make a popup window using JavaScript.
Using a page called comments with the comments code in it, you can get the code from this site for the comments.
In the templates you would add a little bit of JavaScirpt to the link.

eg. <a href="./jahsdjkahresults or whatever it is" alt="results" onClick="javascript:openCommentWindow;">View Resutls</a>

To open windows using JavaScript try www.htmlgoodies.com

Comment code...




Problem with this way is that as each poll has a different id it'll change depending on which poll' results are viewed so my idea may not work at all. Can you explain what you want to do a bit more clearly. From what i can tell you either view a poll of your choice, a random one or the newest one. So its not that easy... plus, my head is all messed up and i don't have the files on my Mac. And i prefer editing them on my Win box which is at home.

Hope that helps someway,
Auron

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]
Anonymous



Ok Auron
I understand. ! I try to explain.
I want to showed comments of each poll wich is random.
You can use a link that open a popup or comments can be in the same popup as "send comment" or they can be viewed under the results.

(sorry for my english)
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum