TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:12:20 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 143
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 144
  • Total: 145
  • tino

[Discussion] Random topic

Started by JPDeni, May 05, 2009, 04:33:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

IchBin

Just remember that each time you call the loadMemberContext to grab this info, you add a query to the database. I thought it a good idea to loop through that function for an array of members once, and it added like 10 queries because I was trying to get 10 users avatars. For this code it works great, but if you wanted to get more than one user, you'd be better to combine your query into a single one just to grab the avatar info. Just my $.02 :)

Freddy

#11
Yeah that sounds wise.  I was a little worried by the overheads, but figured it would be okay for this.  For my mod I could need to pull quite a few avatars so I will give your suggestion a go.

P.S. I was trying to look up the function in the SMF functions database but for some reason it's been down since yesterday it looks like.  They're working on it.  What I may do is take a look at the details and maybe post an alternative.

IchBin

I've blocked your PM's.... :P No seriously, some posts must have been removed or something as we have a limit of 5 posts here before you can PM. Anyway, one more post and you can PM me I think. I've been getting a ton of PM's lately, and I'm not getting notifications for any of them for some reason. So I most likely have missed something if you sent one. I'll send you an email shortly. You picked an odd place to post for my attention. lol


historik


alving

woww... thank you very much freddy888 for the code!!!  might have some more questions for you..   ;)

Freddy

You are welcome :)

Probably just needs some work on the layout still so it's just the way you want it...

alving

#16
hello freddy888

it took me ages to come up with the formatting.  so as not to change so much in jpdeni's code, here is what i thought.

avatar image   post icon and post title
                    date and time of post
                    display name


please get rid of the word "by" before the username.  
please put a thin border around the avatar.  
a provision to resize the avatar
a provision to have a generic avatar for those without an avatar

thanks once again!  

Freddy

Hi ajg, yes that looks do-able.  So basically you want the avatar over on the left-hand side like a forum post ?  And everything else on the right?  Not sure where you want the actual message to appear...maybe like this :


Avatar      |       post icon & title
               |       date and time
               |       display name
--------------------------------------------
main message underneath ?


please get rid of the word "by" before the username - no problem
please put a thin border around the avatar - no problem
a provision to resize the avatar - that should be fine
a provision to have a generic avatar for those without an avatar - can do I think..

I need to go to the shops now (darn RealLife!) but it shouldn't be too long a wait.

Cheers.

alving

that's exactly what i want please. thanks in advance!

Freddy

Ok mate.  I went out tonight or I would have posted it already.  I am working on it, I'll drop it in tomorrow (getting late here) at some point.  Cheers :)