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
Switch to threaded view of this topic Create a new topic Submit Reply
how to put polls and 'who is online' info on frontpage [message #20991] Sun, 07 November 2004 15:44 Go to next message
dewaard is currently offline  dewaard   Netherlands
Messages: 6
Registered: November 2004
Location: The Netherlands
Karma: 0
Junior Member

Hey guys,
I'm new to FUDforum and I'm trying to do some things I used to do with phpBB. Right now I've got two questions, based on http://www.supportersworld.nl:

1. How can I create a similiar 'Who is Online' box?
2. How can I put polls on the frontpage in a similar way?

I've been playing a bit with FUDforum and i'm pretty amazed by its cool features and well written code. Currently I'm working on a good way to put my news and forum headlines online (http://www.supportersworld.nl/index2.php).

Cheers, Filip
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 next message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma: 0
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

Re: how to put polls and 'who is online' info on frontpage [message #21058 is a reply to message #20991] Thu, 11 November 2004 04:00 Go to previous messageGo to next message
dewaard is currently offline  dewaard   Netherlands
Messages: 6
Registered: November 2004
Location: The Netherlands
Karma: 0
Junior Member

Thanks a lot for your help. I've made some progress and the 'Who is online' box is almost done. The only thing about that box that I couldn't find out is how to get the number of guests that are browsing the forum. Do you know how?
Re: how to put polls and 'who is online' info on frontpage [message #21059 is a reply to message #21058] Thu, 11 November 2004 04:03 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Look inside the sessions table for entries where user_id does not match an entry inside the users table.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Mon Nov 25 23:15:45 GMT 2024

Total time taken to generate the page: 0.03513 seconds