UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » Welcome panel MOD

Welcome panel MOD

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Aug 2006
Posts: 43
Location: The Netherlands
Hi guys, I noticed nobody had requested a welcome panel modification. I'm going to give it a try, but I need to know what kind of info people would like to see on such a panel.

Please post some suggestions and I'll try to integrate them (note that the info must come from a unmodified board, so don't ask me to integrate the stats from a gallery mod or something alike).

Will tidy this post up later and am also going to post this to UseBB Zone.
I allready have some results, so screenshots will be added later.
Member
Registered: Dec 2006
Posts: 11
Location: St Helens
I would like to see a default avatar then links to the profile and recent topics and posts
Member
Registered: Aug 2006
Posts: 43
Location: The Netherlands
This is what I currently have, there's also a guest mode, but it's not that interesting yet:
User posted image
Oh, and about the recent topics and stuff: it's a good idea but I think it's best to just display one recent topic.
« Last edit by martijn on Sun Dec 17, 2006 10:25 am. »
Member
Registered: May 2005
Posts: 298
Location: 98671
Sounds good to me, its gonna be interesting. :)
Moderator
Registered: Oct 2005
Posts: 449
Location: canada
Perhaps you could put in there something like:

There have been XX posts since your last visit.
Member
Registered: Aug 2006
Posts: 43
Location: The Netherlands
The posts since last visit has crossed my mind aswell. But the problem is, what would be the most reliable way to calculate that? I don't think UseBB has such a function by default.
Moderator
Registered: Oct 2005
Posts: 449
Location: canada
Well, you would probably have to do a MySQL COUNT(*) query.

Something like:


SELECT COUNT(*) WHERE post_time =< member_last_visited_time


I know those aren't the correct tables, but, i think you get the idea i'm trying to get at?
Moderator
Registered: Oct 2005
Posts: 449
Location: canada
Err, damn edit :p.

By tables, i mean fields.

For the tables, there would be some sort of LEFT JOIN in there. To select the values from both the user and posting tables.
Member
Registered: Aug 2006
Posts: 43
Location: The Netherlands
So basically I have to do this:
Get the last_login value from the usebb_members table. Then compare it with the current time, and figure out which posts were added in the meantime. Right?
Moderator
Registered: Oct 2005
Posts: 449
Location: canada
Exactly. ;). It will find the posts that were added after their last visit and before the current time. Based on the post time in the database.
Member
Registered: Aug 2006
Posts: 43
Location: The Netherlands
I'm quite good with PHP, but not this good, so it would take me some more time to get it functioning

Page: 1

UseBB Community » Resources & Customization » Welcome panel MOD

UseBB Community is powered by UseBB 1 Forum Software