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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 408
  • Total: 408

[Block] Newest member block with Avatar image which links to their profile

Started by gbingo, August 23, 2006, 06:04:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

im workin on a horizontal stats display but right now its not lookin that great :P

http://goofy-goobers.com/forum

RoarinRow

Quote from: akulion on October 12, 2006, 07:25:47 PM
im workin on a horizontal stats display but right now its not lookin that great :P

http://goofy-goobers.com/forum

I'm sure you can do it!   ;D   You da man!  Oh no the modaholic is coming out of me again.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

darthmactis

the avatars pics will only work if they are selected from the list, is there any way to make it to it will show the avatars that people upload?

jacortina

Quote from: darthmactis on October 16, 2006, 05:57:32 AM
the avatars pics will only work if they are selected from the list, is there any way to make it to it will show the avatars that people upload?

Which code 'snippet' are you using. The one in this message:
http://www.tinyportal.net/smf/index.php?topic=7737.msg74724#msg74724
should show selected, uploaded, or offsite images.

darthmactis

Quote from: jacortina on October 16, 2006, 12:54:23 PM
Quote from: darthmactis on October 16, 2006, 05:57:32 AM
the avatars pics will only work if they are selected from the list, is there any way to make it to it will show the avatars that people upload?

Which code 'snippet' are you using. The one in this message:
http://www.tinyportal.net/smf/index.php?topic=7737.msg74724#msg74724
should show selected, uploaded, or offsite images.

no its was a different code but the one on the page u posted worked great thanks

akulion

is there someway to show last X new members ?

Latest members:
ABC + avatar
XYZ + avatar
123 + avatar


jacortina

No, this code uses prvious supplied latest member data.

Try this:
global $db_prefix, $memberContext;

$count = 3;
$users = array();

$request = db_query("
SELECT ID_MEMBER FROM {$db_prefix}members WHERE is_activated = 1 ORDER BY ID_MEMBER DESC LIMIT ".$count, __FILE__, __LINE__);

while ($row = mysql_fetch_assoc($request)) {
$users[] = intval($row['ID_MEMBER']);
}

loadMemberData($users);

$i = 0;
foreach($users as $user_id) {
if ($i > 0) echo '<hr>';
$i++;

loadMemberContext($user_id);

if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$memberContext[$user_id]['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$memberContext[$user_id]['link'].'</div>';
}


jdvarner

does anyone have this working with tp 0.9.8 and smf 1.1.2?

i tried the code, but got subs.php error line 238 when using it.

rebelrose

Quote from: jdvarner on April 16, 2007, 02:50:43 PM
does anyone have this working with tp 0.9.8 and smf 1.1.2?

i tried the code, but got subs.php error line 238 when using it.

What version of this are you talking about, I have one on my site that is working, with TP 9.8 and SMF 1.1.2

This website is proudly hosted on Crocweb Cloud Website Hosting.