FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Poll php scripts
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Poll php scripts [message #32474] Mon, 03 July 2006 23:43 Go to next message
Arafel is currently offline  Arafel   France
Messages: 18
Registered: July 2006
Location: France
Karma: 0
Junior Member
Hi everyone,
At first, sorry for my english which could be sometimes bugged.

I'm creating a website and i'd like to integrate a poll from fud forum inside my website, but only the result part, and if possible an url linking the post.

I checked sql database and it seems that the post links to the poll (but not the poll to the post), in my query i'll have to link poll id and check posted stuff to find a direct link to the post in which the poll is (omg, i hope you understand what i mean).

I don't have admin rights so i can't directly check php scripts inside the data root (and with the install file, it's hardcoded).

If someone can indicate me how to find poll php script, or directly post it, it would be awesome.
Also, if you know how to link poll id and post url, i'll be happy.

Thanks for reading and trying to understand. Wink
Re: Poll php scripts [message #32485 is a reply to message #32474] Tue, 04 July 2006 19:29 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can use FUDAPI functions to fetch poll data.

FUDforum Core Developer
Re: Poll php scripts [message #32495 is a reply to message #32474] Wed, 05 July 2006 06:43 Go to previous messageGo to next message
Arafel is currently offline  Arafel   France
Messages: 18
Registered: July 2006
Location: France
Karma: 0
Junior Member
ok i found it but it's not exactly what i was expecting, i'd like to know where is situated the php code which is generating this:

<p><table cellspacing=1 cellpadding=2 class="PollTable">
<tr><th class="nw" colspan=3>Poll name<span class="vt">[ 2 vote(s) ]</span></th></tr>
<tr class="RowStyleB"><td>1.</td><td>Option 1</td><td><img src="theme/default/images/poll_pix.gif" alt="" height="10" width="50" /> 1 / 50%</td></tr><tr class="RowStyleA"><td>2.</td><td>Option 2</td><td><img src="theme/default/images/poll_pix.gif" alt="" height="10" width="50" /> 1 / 50%</td></tr>
</table><p>


Thanks for help Smile
Re: Poll php scripts [message #32501 is a reply to message #32495] Wed, 05 July 2006 17:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The HTML is found inside drawmsg.tmpl and the code inside drawmsg.inc.t

FUDforum Core Developer
Re: Poll php scripts [message #32508 is a reply to message #32474] Wed, 05 July 2006 22:58 Go to previous message
Arafel is currently offline  Arafel   France
Messages: 18
Registered: July 2006
Location: France
Karma: 0
Junior Member
Much thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: create a database link in MySQL
Next Topic: Registration question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 18:46:34 GMT 2024

Total time taken to generate the page: 0.03718 seconds