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

Home » FUDforum » How To » how to put polls and 'who is online' info on frontpage
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to put polls and 'who is online' info on frontpage [message #20992 is a reply to message #20991] Sun, 07 November 2004 16:18 Go to previous messageGo to previous message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma:
Member
Quote:

1. How can I create a similiar 'Who is Online' box?

You can either use the FUD API's fud_fetch_online_users (http://fudforum.org/forum/index.php?t=msg&goto=20560) or you can use the templating system. My page is based on the templating system entirely so as I don't work with the FUD API I could only give you a working example for the templating system. The small code snipplet in the thread I mentioned should give you a base to build on, though.

Quote:

2. How can I put polls on the frontpage in a similar way?

Putting polls there is a little more tricky.
You could probably use fud_fetch_msg, fud_fetch_poll and fud_update_msg to manually update the poll data but since I've never worked with PHP prototypes before I can't help you with that =\
Another approach would be to directly manipulate the SQL tables yourprefix_poll and yourprefix_poll_opt. Probably less troublesome but I'm not aware of any possible caching/tracking collisions.

-Abraxa

[Updated on: Sun, 07 November 2004 16:19]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't find templates
Next Topic: How do you restrict certain attachments
Goto Forum:
  

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

Current Time: Fri Nov 22 20:18:06 GMT 2024

Total time taken to generate the page: 0.03861 seconds