| Author |
Post |
|
|
#1 Sat Dec 16, 2006 12:26 pm
|
|
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.
|
|
|
#2 Sat Dec 16, 2006 9:26 pm
|
|
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
|
|
|
#3 Sun Dec 17, 2006 10:23 am
|
|
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:  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. »
|
|
|
#4 Sun Dec 17, 2006 2:28 pm
|
|
Member
Registered: May 2005
Posts: 298
Location: 98671
|
Sounds good to me, its gonna be interesting. 
|
|
|
#5 Sun Dec 17, 2006 6:14 pm
|
|
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.
|
|
|
#6 Mon Dec 18, 2006 2:50 pm
|
|
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.
|
|
|
#7 Tue Dec 19, 2006 10:39 pm
|
|
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?
|
|
|
#8 Wed Dec 20, 2006 8:07 am
|
|
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.
|
|
|
#9 Tue Dec 26, 2006 6:07 pm
|
|
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?
|
|
|
#10 Tue Dec 26, 2006 6:47 pm
|
|
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.
|
|
|
#11 Sun Dec 31, 2006 12:01 pm
|
|
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
|