TinyPortal

Development => Block Codes => Topic started by: gbingo on August 23, 2006, 06:04:29 PM

Title: [Block] Newest member block with Avatar image which links to their profile
Post by: gbingo on August 23, 2006, 06:04:29 PM
Hi, very new here, thought I'd take a stab at a new block. I'd like to create a "newest member" block which shows the newest member to the forum, their avatar, and links to their profile. I'm going to attempt to start building this block by borrowing the newest member code from the bottom of the stock SMF template. Wish me luck :)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on August 23, 2006, 06:05:40 PM
Good luck, looking forward to the code  :up:
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 23, 2006, 06:09:27 PM
Good luck. I hope you are done soon so I can put it on my site. :)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: gbingo on August 23, 2006, 08:33:19 PM
Well getting the newest member was easy:
echo $context['common_stats']['latest_member']['link'];

Now to retrieve their avatar
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 23, 2006, 08:44:37 PM
You can take it off the roster page. I know you can use the code for the avatar.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: gbingo on August 23, 2006, 08:57:29 PM
Roster page? is that part of Tinyportal or SMF?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alan s on August 23, 2006, 09:03:34 PM
What file are you pulling the code from?? oh and the ssi feed for the member would be

<?php ssi_latestMember(); ?>
Title: Re: Newest member block with Avatar image which links to their profile
Post by: gbingo on August 23, 2006, 09:12:52 PM
I was pulling it from SMF's theme template
Title: Re: Newest member block with Avatar image which links to their profile
Post by: gbingo on August 23, 2006, 10:24:23 PM
All done! Here's my code: If someone can make it more efficient or flexible I'd appreciate it, but this works fine on my site:

global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='/avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);

Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 23, 2006, 10:28:58 PM
Let me test it out!
Hopefully it works!
:)

Edit: Hmmm...the avatar isn't showing.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alan s on August 23, 2006, 10:31:15 PM
i dont get any avatar image www.theteenzone.net/forum         block on the right side
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on August 23, 2006, 10:35:55 PM
The only part that doesn't work is the avatar.  Mine has a red x even after I added one to the new member's profile.   :)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 23, 2006, 11:09:00 PM
I think it has top do something with
echo "<div align='center'><img src='/avatars/".$row['avatar']."'

You need to take it from the avatar directory.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: JPDeni on August 23, 2006, 11:31:39 PM
The avatar field is right. I'm thinking that you may need to have a complete URL in your img src tag.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 23, 2006, 11:42:01 PM
I fixed it.
global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);


Should work now.
See working example at Http://inflamehq.com/forum/
Look at the the bottom right.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: gbingo on August 23, 2006, 11:53:08 PM
It likely has to do with the part which reads <img src='/avatars/" - thats a hardcoded image directory. I don't know the Variable for the Forum URL (which should be there instead)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 23, 2006, 11:56:46 PM
You did it right just left out the "." before /avatars.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on August 24, 2006, 12:11:25 AM
Quote from: Jpg on August 23, 2006, 11:42:01 PM
I fixed it.
global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);


Should work now.
See working example at Http://inflamehq.com/forum/
Look at the the bottom right.

Cool, that worked!  :up:  I like it, just too bad that the member has to select an avatar when they sign up.  Otherwise you get the red x.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 24, 2006, 12:14:00 AM
I think you can enable so the member HAS to choose an avatar when they sign up.

http://www.smfhacks.com/hacks/Avatar-Select-on-Register.html
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on August 24, 2006, 12:33:35 AM
Quote from: Jpg on August 24, 2006, 12:14:00 AM
I think you can enable so the member HAS to choose an avatar when they sign up.

http://www.smfhacks.com/hacks/Avatar-Select-on-Register.html

Ahh, I didn't know that  :up:
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 24, 2006, 12:35:37 AM
You can thank me for the link later. :)

Thanks gbingo for the cool snippet!

Edit: Gbingo..you too can thank me later.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 03:01:01 PM
Thanks for the code its very nice

hey how about a block which shows the last 5 members and their avatars as well?

Only the avatars could be resized to a smaller size so we get a block like "recent topics" only this one would have recent members

And along side could be top 5 members with avatars

just a thought...anone wana take a crack at it?

Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 03:20:36 PM
It's supported by the 'latest_member' code.
Is it possible for this???

Maybe you can if you enable the code to remember the users "user #" and subtract one off the total. And then set up the code like that. Me being not that smart with php, won't know how to accomplish something like this. :\
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 03:40:53 PM
well the idea in my head is this:

I made an image to best illustrate it...

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg175.imageshack.us%2Fimg175%2F3586%2Fmembersblockkb2.gif&hash=d48e8f090dc2e4fd693f7de8a5f5773b1457aacb)

It is totally possible - its just a matter of who wants to take a crack at    iit:P
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 03:47:59 PM
I understand. So basically something with member stats.
Now that we have the avatar code it shouldn't be that hard. But making the boxes and doing that could be.
Is there a top poster code?


Edit:Wow I have 1234 posts! :\
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 04:13:47 PM
lol yea everyone has 1234 posts

the making the boxes isnt very hard at all its just a matter of declaring the table within echo statements to get the correct layout

The table layout code will be exactly like below, but where ti says in CAPS the code for the relevant stuff needs to be added.



echo '<table border="1" width="100%" id="table1" style="border-collapse: collapse">
<tr>
<td colspan="5">Member Stats</td>
</tr>
<tr>
<td rowspan="4">';
CODE FOR FORUM STATS HERE;
echo '</td>
<td colspan="2">Newest Members</td>
<td colspan="2">Top Posters</td>
</tr>';

PHP CODE TO MAKE IT LOOP FOR EACH FOR TOP 3

echo' <tr>
<td>CODE FOR AVATAR NEW MEMBER</td>
<td>CODE FOR NAME NEW MEMBER</td>
<td>CODE FOR AVATAR TOP POSTER</td>
<td>CODE FOR POSTS & TOPICS INFO TOP POSTER</td>
</tr>';



That should do the trick really but now the part is getting the PHP codes for those specific queries
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 04:18:03 PM
What is the variable for  Top Poster?
Is it ['top_poster']?
I highly doubt that...
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 04:26:13 PM
hey do u know which file the Stats are called in?

Cos having a look at that will give us 90% of the info

The only thing that will remain is the Newest Members, for that I suspect we will require some PHP coding for doing that specifically - the minus 1 thing like u said
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 04:30:25 PM
I was one step ahead of you.
I was looking at it 30 minutes before you posted.


// Poster top 10.
$members_result = db_query("
SELECT ID_MEMBER, realName, posts
FROM {$db_prefix}members
WHERE posts > 0
ORDER BY posts DESC
LIMIT 10", __FILE__, __LINE__);
$context['top_posters'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($members_result))
{
$context['top_posters'][] = array(
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'num_posts' => $row_members['posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
}
mysql_free_result($members_result);

foreach ($context['top_posters'] as $i => $poster)
$context['top_posters'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 04:33:04 PM
LOL

I was just posting that

***edit***

ok ill post another bit: Top 10 Topic Starters



// Topic poster top 10.
$members_result = db_query("
SELECT ID_MEMBER, realName
FROM {$db_prefix}members
WHERE ID_MEMBER IN (" . implode(', ', array_keys($members)) . ")
GROUP BY ID_MEMBER
ORDER BY FIND_IN_SET(ID_MEMBER, '" . implode(',', array_keys($members)) . "')
LIMIT 10", __FILE__, __LINE__);
$context['top_starters'] = array();
$max_num_topics = 1;
while ($row_members = mysql_fetch_assoc($members_result))
{
$context['top_starters'][] = array(
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'num_topics' => $members[$row_members['ID_MEMBER']],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

if ($max_num_topics < $members[$row_members['ID_MEMBER']])
$max_num_topics = $members[$row_members['ID_MEMBER']];
}
mysql_free_result($members_result);

foreach ($context['top_starters'] as $i => $topic)
$context['top_starters'][$i]['post_percent'] = round(($topic['num_topics'] * 100) / $max_num_topics);


Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 04:36:59 PM
But we need global arrays.

Edit: Something like...

global $txt, $scripturl, $db_prefix, $modSettings, $user_info, $context;
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on August 26, 2006, 04:39:44 PM
I like where this is going   8) 
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 04:42:00 PM
Lol...Yeah. Maybe I should test out some of the codes in a block and see what happens.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 04:47:12 PM
yea its complicated - but hopefully we can get part of it to work lol

<< scratches his head trying to understand the code
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 04:48:51 PM
Brb, I'm downloading php editors on my computer for help.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 26, 2006, 04:51:13 PM
dang i tested things and it dosent look too good

we need professional help!!
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 26, 2006, 04:53:27 PM
Don't worry dude. Everything is gonna be A-ok.
I tested it too and it was just a header with nothing in the box.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 29, 2006, 12:29:23 PM
added to block snippet index
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Hawkes on August 29, 2006, 05:16:34 PM
Is it possible to have the script check for an avatar and if they don't have one, just not display the avatar?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 29, 2006, 05:26:27 PM
Well actually it'll just show text in firefox. it'll repeat their name again. That's why you use the mod I suggested on the other page. ;)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 29, 2006, 06:33:12 PM
hey any progress with that last 3 thingie? lol
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 29, 2006, 10:23:26 PM
Well I haven't been focusing on this lately. We need better coders like JPdeni, Storm,etc...
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on August 29, 2006, 10:31:09 PM
:2funny: we are hopeless
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Jpg on August 29, 2006, 10:36:23 PM
Apparently so. Maybe I'll take another whack at it. :)

Edit: The codes we have now...

The Table
echo '<table border="1" width="100%" id="table1" style="border-collapse: collapse">
<tr>
<td colspan="5">Member Stats</td>
</tr>
<tr>
<td rowspan="4">';
CODE FOR FORUM STATS HERE;
echo '</td>
<td colspan="2">Newest Members</td>
<td colspan="2">Top Posters</td>
</tr>';

PHP CODE TO MAKE IT LOOP FOR EACH FOR TOP 3

echo' <tr>
<td>CODE FOR AVATAR NEW MEMBER</td>
<td>CODE FOR NAME NEW MEMBER</td>
<td>CODE FOR AVATAR TOP POSTER</td>
<td>CODE FOR POSTS & TOPICS INFO TOP POSTER</td>
</tr>';



The Newest Avatar

global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);


Top Ten Posters
// Poster top 10.
$members_result = db_query("
SELECT ID_MEMBER, realName, posts
FROM {$db_prefix}members
WHERE posts > 0
ORDER BY posts DESC
LIMIT 10", __FILE__, __LINE__);
$context['top_posters'] = array();
$max_num_posts = 1;
while ($row_members = mysql_fetch_assoc($members_result))
{
$context['top_posters'][] = array(
'name' => $row_members['realName'],
'id' => $row_members['ID_MEMBER'],
'num_posts' => $row_members['posts'],
'href' => $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row_members['ID_MEMBER'] . '">' . $row_members['realName'] . '</a>'
);

if ($max_num_posts < $row_members['posts'])
$max_num_posts = $row_members['posts'];
}
mysql_free_result($members_result);

foreach ($context['top_posters'] as $i => $poster)
$context['top_posters'][$i]['post_percent'] = round(($poster['num_posts'] * 100) / $max_num_posts);
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 27, 2006, 06:47:36 PM
Will this also pull up avatars that are not in the avatar area, you know the ones uploaded by members?


global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);
Title: Re: Newest member block with Avatar image which links to their profile
Post by: stormlrd on September 27, 2006, 06:54:53 PM
storm runs and hides lol I keep commiting myself to so many projects but i like this one too lol.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 27, 2006, 06:56:54 PM
I have the block up, but when I added an uploaded image it did not show for some reason.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on September 27, 2006, 11:25:42 PM
great job JPG ill test it out today a bit later after i finish my pepsi lol

Yes rebelrose the uploaded avatars are handeled differently according to jocortina who was discussing it in another thread

we may have to dig deeper to get those working as well
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 27, 2006, 11:27:41 PM
ok great thanks akulion
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on September 27, 2006, 11:29:26 PM
we need jpdeni or eldaka or thurnok or jocortina here :D

arent we shameless? lol
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 27, 2006, 11:30:43 PM
Quote from: akulion on September 27, 2006, 11:29:26 PM
we need jpdeni or eldaka or thurnok or jocortina here :D

arent we shameless? lol

Not shameless, lol, just know when I am over my head.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on September 27, 2006, 11:31:55 PM
they are so kind to us code challenged people :D

i wonder what we would do without them
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 27, 2006, 11:32:59 PM
Code Challenged, I like that. Yep that is me.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 06:44:37 PM
Quote from: RebelRose on September 27, 2006, 06:47:36 PM
Will this also pull up avatars that are not in the avatar area, you know the ones uploaded by members?



global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);




Anyone yet?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: feline on September 28, 2006, 07:46:40 PM
To get the member avatar use this ...


global $context, $modSettings, $scripturl, $db_prefix;

$id = $context['common_stats']['latest_member']['id'];
$request = db_query("SELECT m.realName, m.avatar, a.ID_ATTACH
FROM {$db_prefix}members AS m ON (m.ID_MEMBER = a.ID_MEMBER)
LEFT JOIN {$db_prefix}attachments AS a ON (m.ID_MEMBER = a.ID_MEMBER)
WHERE m.ID_MEMBER = $id", __FILE__, __LINE__);
if (mysql_num_rows($request) > 0)
{
$row = mysql_fetch_assoc($request);

if(!empty($row['ID_ATTACH']))
$ava_url = $scripturl . '?action=dlattach;attach='. $row['ID_ATTACH'] .';type=avatar';
elseif(!empty($row['avatar']))
{
if(stristr($row['avatar'], 'http://') === FALSE)
$ava_url = $modSettings['avatar_url'] .'/'. $row['avatar'];
else
$ava_url = $row['avatar'];
}
mysql_free_result($request);
if(isset($ava_url))
echo '<img src="'. $ava_url .'" alt="" border="0" />';
}


Fel
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 08:00:56 PM
That didn't work right for me Fel, this is what I got from that:
Title: Re: Newest member block with Avatar image which links to their profile
Post by: feline on September 28, 2006, 08:27:34 PM
urg ... a small error in sql  ::)


$request = db_query("SELECT m.realName, m.avatar, a.ID_ATTACH
FROM {$db_prefix}members AS m
LEFT JOIN {$db_prefix}attachments AS a ON (m.ID_MEMBER = a.ID_MEMBER)
WHERE m.ID_MEMBER = $id", __FILE__, __LINE__);


You can give me your complete code, then I make that correct

Fel
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 08:44:21 PM
This is the code I am using:



global $db_prefix;
$query = "SELECT avatar FROM {$db_prefix}members WHERE ID_MEMBER = ".$context['common_stats']['latest_member']['id'];
$exec = db_query($query);
$row = mysql_fetch_assoc($exec);
echo "<div align='center'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);




But it only brings up avatars that are in the avatar folders and not the ones they upload, I woudl like it to do both.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 08:57:54 PM
Or you can let the SMF code get everything for you:
global $memberContext;
loadMemberContext($user_id);
echo $memberContext[$user_id]['avatar']['image'];


The loadMemberContext function comes back (the $memberContext array) with virtually EVERYTHING about a member (look in Sources/Load.php).
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 09:10:16 PM
Well I will look but I have no clue what I am looking for, clueless when it comes to code.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: feline on September 28, 2006, 09:11:45 PM
Use my code, you see the (local)avatar, upload avatar or external avatar.

Fel
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 09:19:58 PM
which code is that Fel?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: G6Cad on September 28, 2006, 09:35:32 PM
I think it's this, and a sql fix for it 3 or 4 posts down

http://www.tinyportal.net/smf/index.php?topic=7737.msg74632#msg74632
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 09:38:37 PM
Yes I got it now G6, it shows the avatar great, but not member name like in first code.

Fel Code:


global $context, $modSettings, $scripturl, $db_prefix;

$id = $context['common_stats']['latest_member']['id'];
$request = db_query("SELECT m.realName, m.avatar, a.ID_ATTACH
FROM {$db_prefix}members AS m
LEFT JOIN {$db_prefix}attachments AS a ON (m.ID_MEMBER = a.ID_MEMBER)
WHERE m.ID_MEMBER = $id", __FILE__, __LINE__);
if (mysql_num_rows($request) > 0)
{
$row = mysql_fetch_assoc($request);

if(!empty($row['ID_ATTACH']))
$ava_url = $scripturl . '?action=dlattach;attach='. $row['ID_ATTACH'] .';type=avatar';
elseif(!empty($row['avatar']))
{
if(stristr($row['avatar'], 'http://') === FALSE)
$ava_url = $modSettings['avatar_url'] .'/'. $row['avatar'];
else
$ava_url = $row['avatar'];
}
mysql_free_result($request);
if(isset($ava_url))
echo '<img src="'. $ava_url .'" alt="" border="0" />';
}
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 09:48:24 PM
Quote from: feline on September 28, 2006, 09:11:45 PM
Use my code, you see the (local)avatar, upload avatar or external avatar.

Fel

As you do in the code I posted. It's SMF's own logic (calling their built-in function) for getting selected, user uploaded or remote avatars along with all the other information on a user.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 10:40:52 PM
Quote from: jacortina on September 28, 2006, 09:48:24 PM
As you do in the code I posted. It's SMF's own logic (calling their built-in function) for getting selected, user uploaded or remote avatars along with all the other information on a user.
Quote from: jacortina on September 28, 2006, 08:57:54 PM
Or you can let the SMF code get everything for you:
global $memberContext;
loadMemberContext($user_id);
echo $memberContext[$user_id]['avatar']['image'];


The loadMemberContext function comes back (the $memberContext array) with virtually EVERYTHING about a member (look in Sources/Load.php).


Is this the code you are talking about Jacortina?  I just use that code in a block and nothing else?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 10:58:11 PM
I'm saying that the code is enough to get the avatar available into that array. Many other values for the user are also in that array.

But try this:
global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';


This should include the text '( No Avatar Yet )' if none is specified.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 11:01:50 PM
ok, I tried that and it shows the newest member and it says no avatar yet.

I am sorry, I just do not understand code well yet.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 11:03:14 PM
Are you sure the latest member has specified an avatar in their profile?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 11:04:15 PM
Yes he has uploaded one,
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 11:05:50 PM
Latest member to SMF means the most recent to register. They might not have even activated their account, yet.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 11:07:13 PM
yes he has posted, if I use Fels code it just shows his avatar, if I use the first code it shows a x and the username with link to profile.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 11:09:00 PM
Interesting.

Can you check your errorlog real quick and see if there's anything in the last few minutes.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 11:12:32 PM
512: loadMemberContext(): member id 57 not previously loaded by loadMemberData()
File: //public_html/forum/Sources/Load.php
Line: 950
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 11:16:15 PM
Well, let's see if include the Load.php fixes it:

global $memberContext, $sourcedir;
require_once($sourcedir.'/Load.php');
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 11:19:56 PM
It is showing the same as the last code, I have it in a test block on the left hand side, guest can view it if you want to look.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 28, 2006, 11:20:51 PM
No, that won't do it (or nott he right way if it does happen to work):

global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';

Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on September 28, 2006, 11:22:33 PM
yes thank you so much
Title: Re: Newest member block with Avatar image which links to their profile
Post by: MeRcChRiS on September 29, 2006, 08:41:09 AM
how could we do it so it shows the persons posts count and  his most recent posts and other info of the user
Title: Re: Newest member block with Avatar image which links to their profile
Post by: feline on September 29, 2006, 09:49:47 AM
Quote from: RebelRose on September 28, 2006, 09:38:37 PM
Yes I got it now G6, it shows the avatar great, but not member name like in first code.

Fel Code:


global $context, $modSettings, $scripturl, $db_prefix;

$id = $context['common_stats']['latest_member']['id'];
$request = db_query("SELECT m.realName, m.avatar, a.ID_ATTACH
FROM {$db_prefix}members AS m
LEFT JOIN {$db_prefix}attachments AS a ON (m.ID_MEMBER = a.ID_MEMBER)
WHERE m.ID_MEMBER = $id", __FILE__, __LINE__);
if (mysql_num_rows($request) > 0)
{
$row = mysql_fetch_assoc($request);

if(!empty($row['ID_ATTACH']))
$ava_url = $scripturl . '?action=dlattach;attach='. $row['ID_ATTACH'] .';type=avatar';
elseif(!empty($row['avatar']))
{
if(stristr($row['avatar'], 'http://') === FALSE)
$ava_url = $modSettings['avatar_url'] .'/'. $row['avatar'];
else
$ava_url = $row['avatar'];
}
mysql_free_result($request);
if(isset($ava_url))
echo '<img src="'. $ava_url .'" alt="" border="0" />';
}


Replace the last line with ...

if(isset($ava_url))
echo '<div style="text-align:center;"><img src="'. $ava_url .'" alt="" border="0" /><br />' .$context['common_stats']['latest_member']['link']. '</div>';


Fel
Title: Re: Newest member block with Avatar image which links to their profile
Post by: MeRcChRiS on September 30, 2006, 12:04:01 AM
Quote from: MeRcChRiS on September 29, 2006, 08:41:09 AM
how could we do it so it shows the persons posts count and  his most recent posts and other info of the user

can any one help me on this?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on September 30, 2006, 12:08:49 AM
You have to say what "other info of the user" you want. Their complete profile page is only a sinlge click on the displayed name away and this sounds like you're trying to duplicate a lot of profile page information. Additionally, as this is ONLY for the most recent member, their post count would be low or even zero.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: bluedevil on October 11, 2006, 03:48:25 AM
Excellent mod. Just made block and it works just fine :up:

Quick question..... is this automatic? Everytime new member arrives,block changes to?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on October 11, 2006, 03:52:50 AM
Yes it should
Title: Re: Newest member block with Avatar image which links to their profile
Post by: bluedevil on October 11, 2006, 04:03:11 AM
Quote from: RebelRose on October 11, 2006, 03:52:50 AM
Yes it should

Great!  Thnx! ;)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on October 11, 2006, 04:03:48 AM
Your most welcome
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on October 11, 2006, 03:42:50 PM
using jacortina's code from this post  (http://www.tinyportal.net/smf/index.php?topic=7737.msg74724#msg74724)

You can alternatively also include an image for no avatar (which I think looks better)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fpath-to-peace.net%2Fforum%2Fnoava.gif&hash=18b256714f4b33525b768313e82324e95a99c536)
use this image if u like :)

to do so simply replace in her code the
( No Avatar Yet )

with:

<img src="path to your image">

u can see it workin on my page if u know the way ;)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on October 11, 2006, 03:46:02 PM
on a side note:

anyone wana take a crack at this one?

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg175.imageshack.us%2Fimg175%2F3586%2Fmembersblockkb2.gif&hash=d48e8f090dc2e4fd693f7de8a5f5773b1457aacb)

please :D
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on October 11, 2006, 05:40:21 PM
Quote from: akulion on October 11, 2006, 03:42:50 PM
using jacortina's code from this post  (http://www.tinyportal.net/smf/index.php?topic=7737.msg74724#msg74724)

You can alternatively also include an image for no avatar (which I think looks better)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fpath-to-peace.net%2Fforum%2Fnoava.gif&hash=18b256714f4b33525b768313e82324e95a99c536)
use this image if u like :)

to do so simply replace in her code the
( No Avatar Yet )

with:

<img src="path to your image">

u can see it workin on my page if u know the way ;)

That is too cool, I have been adding a animated questions mark for those who do not choose an avatar manually, thanks for this tip.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on October 12, 2006, 07:13:59 PM
Quote from: akulion on October 11, 2006, 03:46:02 PM
on a side note:

anyone wana take a crack at this one?

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg175.imageshack.us%2Fimg175%2F3586%2Fmembersblockkb2.gif&hash=d48e8f090dc2e4fd693f7de8a5f5773b1457aacb)

please :D

Now that would be cool   8)

Thanks for the 'No Image' pic, I made your image a little smaller  ;D
Title: Re: Newest member block with Avatar image which links to their profile
Post by: 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
Title: Re: Newest member block with Avatar image which links to their profile
Post by: RoarinRow on October 12, 2006, 07:52:36 PM
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.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: 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?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: 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.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: darthmactis on October 17, 2006, 12:07:43 AM
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
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on October 17, 2006, 12:09:52 AM
is there someway to show last X new members ?

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

Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on October 17, 2006, 12:59:49 AM
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>';
}
Title: Re: Newest member block with Avatar image which links to their profile
Post by: akulion on October 17, 2006, 04:14:14 AM
Thanks :D

ill try it out today

aku
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi26.photobucket.com%2Falbums%2Fc147%2Fjbrowning%2Fchewy.gif&hash=4796439a333fc2cbf1f348b912f4e82ad440b08c)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: 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.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on April 16, 2007, 03:56:06 PM
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
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jdvarner on April 17, 2007, 01:11:17 AM
i guess the original post in the thread from page one. do you mind sharing yours with me?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on April 17, 2007, 01:12:22 AM
Quote from: jdvarner on April 17, 2007, 01:11:17 AM
i guess the original post in the thread from page one. do you mind sharing yours with me?

If your talking to me I will be happy to share, I will go get it for you.

Here is one version,


global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';


The one I have calls for a image that I created if they do not choose one. I can post that as well if you like.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on April 17, 2007, 01:16:59 AM
This code will put an image of your choice in the block when the newest member does not select an avatar:


global $memberContext;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center"><img src="path to your image"></img><BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';


Make sure to replace <img src="path to your image"> with the path to your image you are going to use.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jdvarner on April 17, 2007, 01:28:03 AM
ha ha. figured since the thread was dead, it was obvious i was replying back to you. :)

thank you very much. that worked very good. appreciate it.

jd
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on April 17, 2007, 01:31:53 AM
Quote from: jdvarner on April 17, 2007, 01:28:03 AM
ha ha. figured since the thread was dead, it was obvious i was replying back to you. :)

thank you very much. that worked very good. appreciate it.

jd

Well you never know sometimes on forum, but I am glad you got what you want.

Your Welcome, we are here to help.  :)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Mannie on May 12, 2007, 01:49:00 PM
Works good for me.
However what i was thinking would be nice if the no avatar image could be clickable wich when clicked take the user to the profile screen to change his avatar
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on May 12, 2007, 03:14:59 PM
The link that says the user name should do that.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Mannie on May 12, 2007, 03:18:18 PM
I know that, but i was just wondering if it could be done so the image is a link to
Title: Re: Newest member block with Avatar image which links to their profile
Post by: rebelrose on May 12, 2007, 03:20:50 PM
Quote from: Mannie on May 12, 2007, 03:18:18 PM
I know that, but i was just wondering if it could be done so the image is a link to

I think it could, just a matter of getting the code right, I am no coder, but I can try to give it a go later and see what happens, Unless one of the coders come along first and give you the answer.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Mannie on May 12, 2007, 03:23:10 PM
Thanks, i am no coder either, that is why i asked here ;). In return i will create a pack of avatars soon ;)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Omniverse on May 12, 2007, 04:36:30 PM
Is it possible to restrict this to a specific membergroup?

So say you have a membergroup set up for new people, could this be used to only show the latest members placed in that group? (Would still go off when they registered I spose, but only want to show the one group).
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Maviarab on May 15, 2007, 02:53:19 AM
Ok been following all this so far and my question is this.

Using jacortina's code, what needs to be changed to make this show highest poster rather than newest member?

Thx in advance.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on May 15, 2007, 03:36:45 AM
If you're using the code from this message:
http://www.tinyportal.net/index.php?topic=7737.msg80797#msg80797

Then you could try...

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

To:
SELECT ID_MEMBER FROM {$db_prefix}members WHERE is_activated = 1 ORDER BY posts DESC LIMIT ".$count, __FILE__, __LINE__);
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Maviarab on May 15, 2007, 05:18:40 AM
Thx for quick reply   :)

Just about to head to bed (even though it has gone 5am here heh) so will try that later.

Thx again
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Maviarab on May 16, 2007, 12:44:12 PM
Worked like a dream.

Thank you very much :)
Title: Re: Newest member block with Avatar image which links to their profile
Post by: contra on November 06, 2007, 05:24:35 AM
gotta say guys i cant get this to work at all


is this PHP?
if so it wont work for me
Title: Re: Newest member block with Avatar image which links to their profile
Post by: Zetan on November 06, 2007, 07:12:07 AM
Can you post the code you are trying to use?
Simply saying, "it wont work" just makes people like me ask.. "Can you post the code?"

And yes, it should be a php block.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alhaudhie on November 07, 2007, 05:19:37 PM
im now using this simple code

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>';
}


anybody can help me to put other information about the new user like date/time register and their location..
Title: Re: Newest member block with Avatar image which links to their profile
Post by: IchBin on November 07, 2007, 05:26:23 PM
$user_id['registered'] would be the registered date. And location would be $user_id['location']. Add those to your if statement.
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$memberContext[$user_id]['link'].'<br />',$memberContext['user_id']['registered'],'<br />',$memberContext['user_id']['location'],'</div>';
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on November 07, 2007, 05:30:42 PM
As that gets its info by calling the loadMemberData() function, you have just about every bit of (standard) information about the member available to you already in the $memberContext array:

$memberContext[$user] = array(
'username' => &$profile['memberName'],
'name' => &$profile['realName'],
'id' => &$profile['ID_MEMBER'],
'is_guest' => $profile['ID_MEMBER'] == 0,
'is_buddy' => $profile['buddy'],
'is_reverse_buddy' => in_array($ID_MEMBER, $buddy_list),
'buddies' => $buddy_list,
'title' => !empty($modSettings['titlesEnable']) ? $profile['usertitle'] : '',
'href' => $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $profile['ID_MEMBER'] . '" title="' . $txt[92] . ' ' . $profile['realName'] . '">' . $profile['realName'] . '</a>',
'email' => &$profile['emailAddress'],
'hide_email' => $profile['emailAddress'] == '' || (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($profile['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum') && $ID_MEMBER != $profile['ID_MEMBER']),
'email_public' => (empty($profile['hideEmail']) || empty($modSettings['allow_hideEmail'])) && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']),
'registered' => empty($profile['dateRegistered']) ? $txt[470] : timeformat($profile['dateRegistered']),
'registered_timestamp' => empty($profile['dateRegistered']) ? 0 : forum_time(true, $profile['dateRegistered']),
'blurb' => &$profile['personalText'],
'gender' => array(
'name' => $gendertxt,
'image' => !empty($profile['gender']) ? '<img src="' . $settings['images_url'] . '/' . ($profile['gender'] == 1 ? 'Male' : 'Female') . '.gif" alt="' . $gendertxt . '" border="0" />' : ''
),
'website' => array(
'title' => &$profile['websiteTitle'],
'url' => &$profile['websiteUrl'],
),
'birth_date' => empty($profile['birthdate']) || $profile['birthdate'] === '0001-01-01' ? '0000-00-00' : (substr($profile['birthdate'], 0, 4) === '0004' ? '0000' . substr($profile['birthdate'], 4) : $profile['birthdate']),
'signature' => &$profile['signature'],
'location' => &$profile['location'],
'icq' => $profile['ICQ'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['ICQ'],
'href' => 'http://www.icq.com/whitepages/about_me.php?uin=' . $profile['ICQ'],
'link' => '<a href="http://www.icq.com/whitepages/about_me.php?uin=' . $profile['ICQ'] . '" target="_blank"><img src="http://status.icq.com/online.gif?img=5&amp;icq=' . $profile['ICQ'] . '" alt="' . $profile['ICQ'] . '" width="18" height="18" border="0" /></a>',
'link_text' => '<a href="http://www.icq.com/whitepages/about_me.php?uin=' . $profile['ICQ'] . '" target="_blank">' . $profile['ICQ'] . '</a>',
) : array('name' => '', 'add' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'aim' => $profile['AIM'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['AIM'],
'href' => 'aim:goim?screenname=' . urlencode(strtr($profile['AIM'], array(' ' => '%20'))) . '&amp;message=' . $txt['aim_default_message'],
'link' => '<a href="aim:goim?screenname=' . urlencode(strtr($profile['AIM'], array(' ' => '%20'))) . '&amp;message=' . $txt['aim_default_message'] . '"><img src="' . $settings['images_url'] . '/aim.gif" alt="' . $profile['AIM'] . '" border="0" /></a>',
'link_text' => '<a href="aim:goim?screenname=' . urlencode(strtr($profile['AIM'], array(' ' => '%20'))) . '&amp;message=' . $txt['aim_default_message'] . '">' . $profile['AIM'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'yim' => $profile['YIM'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['YIM'],
'href' => 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['YIM']),
'link' => '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['YIM']) . '"><img src="http://opi.yahoo.com/online?u=' . urlencode($profile['YIM']) . '&amp;m=g&amp;t=0" alt="' . $profile['YIM'] . '" border="0" /></a>',
'link_text' => '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($profile['YIM']) . '">' . $profile['YIM'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'msn' => $profile['MSN'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['MSN'],
'href' => 'http://members.msn.com/' . $profile['MSN'],
'link' => '<a href="http://members.msn.com/' . $profile['MSN'] . '" target="_blank"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $profile['MSN'] . '" border="0" /></a>',
'link_text' => '<a href="http://members.msn.com/' . $profile['MSN'] . '" target="_blank">' . $profile['MSN'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),
'real_posts' => $profile['posts'],
'posts' => $profile['posts'] > 100000 ? $txt[683] : ($profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts'])),
'avatar' => array(
'name' => &$profile['avatar'],
'image' => $profile['avatar'] == '' ? ($profile['ID_ATTACH'] > 0 ? '<img src="' . (empty($profile['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $profile['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $profile['filename']) . '" alt="" class="avatar" border="0" />' : '') : (stristr($profile['avatar'], 'http://') ? '<img src="' . $profile['avatar'] . '"' . $avatar_width . $avatar_height . ' alt="" class="avatar" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($profile['avatar']) . '" alt="" class="avatar" border="0" />'),
'href' => $profile['avatar'] == '' ? ($profile['ID_ATTACH'] > 0 ? (empty($profile['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $profile['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $profile['filename']) : '') : (stristr($profile['avatar'], 'http://') ? $profile['avatar'] : $modSettings['avatar_url'] . '/' . $profile['avatar']),
'url' => $profile['avatar'] == '' ? '' : (stristr($profile['avatar'], 'http://') ? $profile['avatar'] : $modSettings['avatar_url'] . '/' . $profile['avatar'])
),
'last_login' => empty($profile['lastLogin']) ? $txt['never'] : timeformat($profile['lastLogin']),
'last_login_timestamp' => empty($profile['lastLogin']) ? 0 : forum_time(0, $profile['lastLogin']),
'karma' => array(
'good' => &$profile['karmaGood'],
'bad' => &$profile['karmaBad'],
'allow' => !$user_info['is_guest'] && $user_info['posts'] >= $modSettings['karmaMinPosts'] && allowedTo('karma_edit') && !empty($modSettings['karmaMode']) && $ID_MEMBER != $user
),
'ip' => htmlspecialchars($profile['memberIP']),
'ip2' => htmlspecialchars($profile['memberIP2']),
'online' => array(
'is_online' => $profile['is_online'],
'text' => &$txt[$profile['is_online'] ? 'online2' : 'online3'],
'href' => $scripturl . '?action=pm;sa=send;u=' . $profile['ID_MEMBER'],
'link' => '<a href="' . $scripturl . '?action=pm;sa=send;u=' . $profile['ID_MEMBER'] . '">' . $txt[$profile['is_online'] ? 'online2' : 'online3'] . '</a>',
'image_href' => $settings['images_url'] . '/' . ($profile['buddy'] ? 'buddy_' : '') . ($profile['is_online'] ? 'useron' : 'useroff') . '.gif',
'label' => &$txt[$profile['is_online'] ? 'online4' : 'online5']
),
'language' => $func['ucwords'](strtr($profile['lngfile'], array('_' => ' ', '-utf8' => ''))),
'is_activated' => isset($profile['is_activated']) ? $profile['is_activated'] : 1,
'is_banned' => isset($profile['is_activated']) ? $profile['is_activated'] >= 10 : 0,
'options' => $profile['options'],
'is_guest' => false,
'group' => $profile['member_group'],
'group_color' => $profile['member_group_color'],
'group_id' => $profile['ID_GROUP'],
'post_group' => $profile['post_group'],
'post_group_color' => $profile['post_group_color'],
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
);
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alhaudhie on November 07, 2007, 05:35:19 PM
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'].'<br />',$memberContext[$user_id]['registered'],'<br />',$memberContext[$user_id]['location'],'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$memberContext[$user_id]['link'].'</div>';
}


not working....
Title: Re: Newest member block with Avatar image which links to their profile
Post by: jacortina on November 07, 2007, 05:38:08 PM
As posted, it should be "$memberContext[$user_id]..." and you put in "$memberContext['user_id']..."
Title: Re: Newest member block with Avatar image which links to their profile
Post by: IchBin on November 07, 2007, 05:38:54 PM
Oops, my mistake. Forgot to make user_id a variable instead of a single element. :)`

Edited your code above.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alhaudhie on November 07, 2007, 05:57:01 PM
global $db_prefix, $memberContext;

$count = 1;
$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'].'<br />',$memberContext[$user_id]['registered'],'<br />',$memberContext[$user_id]['location'],'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$memberContext[$user_id]['link'].'</div>';
}


the location in not show...
but the date/registered/time/theirname and avatar is ok....
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alhaudhie on November 07, 2007, 06:13:12 PM
how can resizing the font text and make scrolling....
Title: Re: Newest member block with Avatar image which links to their profile
Post by: IchBin on November 07, 2007, 06:15:53 PM
I would highly suggest taking a lesson in HTML. If look at the <font> and <marquee> tags you can do exactly what you'd like to. Just surround your the line we've been editing with those tags inside the div.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alhaudhie on November 07, 2007, 06:33:59 PM
global $db_prefix, $memberContext;

$count = 8;
$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;
echo '

   ',$a_scroll == 1 ? '<marquee direction = "up" height = 40ex onmouseover=\'this.stop()\' onmouseout=\'this.start()\' scrollamount="2" scrolldelay="0" >' : '','
      <div style="width: 100%;',$scroll == 1 ? 'overflow: auto; height: 40ex;' : '','">';
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'].'<br />',$memberContext[$user_id]['registered'],'<br />',$memberContext[$user_id]['location'],'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$memberContext[$user_id]['link'].'</div> ',$a_scroll == 1 ? '</marquee>' : '','';
}


i have put the marque...but not run..
Title: Re: Newest member block with Avatar image which links to their profile
Post by: IchBin on November 07, 2007, 06:38:00 PM
I would put the marquee tag inside the div that we have been editing.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: alhaudhie on November 07, 2007, 06:55:50 PM
global $db_prefix, $memberContext;

$count = 4;
$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"><marquee direction = "up" height = 40ex onmouseover=\'this.stop()\' onmouseout=\'this.start()\' scrollamount="2" scrolldelay="0" >'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$memberContext[$user_id]['link'].'<br />',$memberContext[$user_id]['registered'],'<br />',$memberContext[$user_id]['location'],'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$memberContext[$user_id]['link'].'</marque></div>';
}


that have separate block for each user... how can i make it only one...
Title: Re: Newest member block with Avatar image which links to their profile
Post by: IchBin on November 08, 2007, 12:14:48 AM
You'd have to completely change the code to get it to work that way. Would you like fries and a coke to go with that now? ;) I'll see what I can do if I get some free time tonight.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: forummaker on March 24, 2009, 04:31:01 PM
Not sure how to do this. Any help would be great! Thanks.
I'm using "Custom Profile Field" mod and I would like to add some information from that mod in the block that I'm already currently using. I just can't figure out the code that pulls the information from the CPF that I'm trying to show. I've also posted this question to that mod at SMF, with no responses. Maybe I'm not asking the question properly.
SMF 1.1.8
Here is the code I have now:
It's a PHP block:
global $memberContext;
echo '<div align="center"></div>';
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$context['common_stats']['latest_member']['link'].'</div>';
else
echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';

global $memberContext;
echo '<div align="center"></div>';
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['location']))
echo '<div align="center">'.$memberContext[$user_id]['location'].'</div>';


Here are a couple images, to give you an idea.


Title: Re: Newest member block with Avatar image which links to their profile
Post by: JPDeni on March 24, 2009, 04:50:36 PM
The information from the Custom Profile Fields is stored in the {$db_prefix}themes table, which has the structure

ID_MEMBER, ID_THEME, variable, value

In the case of CPF, the ID_THEME is always 1, so you don't have to worry about that. The variable is the name you gave to the field and the value is what the member entered.

It looks like you're only getting information about one person at a time, so search for the ID_MEMBER and the variable and you'll get the value. Do you need help with the query?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: forummaker on March 26, 2009, 04:17:42 PM
Thanks for a response.
I just don't know enough about coding to even begin to understand what you're talking about. Sorry. I'm a quick learn though. I'll try what you suggested and see what I come up with. Thanks.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: JPDeni on March 27, 2009, 04:09:35 PM
IOW, yes, you need help with the query. :)

Looking at your code, I see that you have some unnecessary duplication. Here's what I would try:


global $memberContext, $db_prefix;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
  echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'] . '<BR>' . $context['common_stats']['latest_member']['link'] .' </div>';
else
  echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';
if (!empty($memberContext[$user_id]['location']))
  echo '<div align="center">'.$memberContext[$user_id]['location'].'</div>';
$result = db_query("SELECT value
                    FROM {$db_prefix}themes
                    WHERE ID_MEMBER = $user_id
                    AND variable = XXXXXXX
                    LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result));
mysql_free_result($result);
if ($row['value'] > '')
  echo '<div align="center">'.$row['value'].'</div>';


Notice the bit that says variable = XXXXXXX. In place of the XXXXXXX, put the name of the CPF that you defined when you created the field.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: forummaker on March 30, 2009, 05:31:38 PM
Thanks.  ;)
Here's what I have:
global $memberContext, $db_prefix;
$user_id = $context['common_stats']['latest_member']['id'];
loadMemberData(array($context['common_stats']['latest_member']['id']));
loadMemberContext($user_id);
if (!empty($memberContext[$user_id]['avatar']['image']))
  echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'] . '<BR>' . $context['common_stats']['latest_member']['link'] .' </div>';
else
  echo '<div align="center">( No Avatar Yet )<BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';
if (!empty($memberContext[$user_id]['location']))
  echo '<div align="center">'.$memberContext[$user_id]['location'].'</div>';
$result = db_query("SELECT value
                    FROM {$db_prefix}themes
                    WHERE ID_MEMBER = $user_id
                    AND variable = Member of
                    LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result));
mysql_free_result($result);
if ($row['value'] > '')
  echo '<div align="center">'.$row['value'].'</div>';


Tried working with it, but keep getting this error message in the block:

Parse error: syntax error, unexpected ')' in /home/content/j/u/m/html/website/forums/Sources/Load.php(1753) : eval()'d code(52) : eval()'d code on line 16

Hmm.....
Title: Re: Newest member block with Avatar image which links to their profile
Post by: IchBin on March 30, 2009, 05:47:07 PM
$row = mysql_fetch_assoc($result));

Should be:
$row = mysql_fetch_assoc($result);
Title: Re: Newest member block with Avatar image which links to their profile
Post by: forummaker on March 30, 2009, 06:14:01 PM
Tried that, now getting this....

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'of
LIMIT 1' at line 4
File: /home/content/j/u/m/html/website/forums/Sources/Load.php(1753) : eval()'d code(52) : eval()'d code
Line: 15

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: JPDeni on March 30, 2009, 07:44:04 PM
Okay. Sorry. I shouldn't post things when I'm sick.


AND variable = Member of


should be


AND variable LIKE 'Member of'
Title: Re: Newest member block with Avatar image which links to their profile
Post by: GKDantas on May 14, 2009, 05:22:07 AM
Any way to create columns too? In truth I would like away to put a fixed image size and choose how many columns and lines in a table, but without using scroling... can someone help?
Title: Re: Newest member block with Avatar image which links to their profile
Post by: G6Cad on May 14, 2009, 03:03:55 PM
You want to have a cup of tea to go aswell  :2funny:
Title: Re: Newest member block with Avatar image which links to their profile
Post by: JPDeni on May 14, 2009, 03:12:40 PM
There's a lot of variation in the code here. Post yours so I know what I'm starting with.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: GKDantas on May 14, 2009, 04:17:06 PM
I was thinking about something that you did for the random users for me:

http://www.tinyportal.net/index.php/topic,19521.new.html#new
Title: Re: Newest member block with Avatar image which links to their profile
Post by: JPDeni on May 14, 2009, 04:26:26 PM
I need the code you're using already. I know what you want. I need to know what you have.
Title: Re: Newest member block with Avatar image which links to their profile
Post by: GKDantas on May 14, 2009, 06:23:31 PM
Sorry, here is the code

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>';
}


The $count allow to select how many users you want, but theres only BR tags to separate them all...

Thanks again
Title: Re: [Block] Newest member block with Avatar image which links to their profile
Post by: JPDeni on May 14, 2009, 08:07:41 PM
This should give you what you want:


global $db_prefix, $memberContext;

$count = 6;

$per_row = 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);

$display = 0;
echo '<table>';
foreach($users as $user_id) {
++$display;
if ($display == 1)
echo '<tr>';
loadMemberContext($user_id);
echo '<td>';
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>';
echo '</td>';
if ($display == $per_row) {
echo '</tr>';
$display = 0;
}
}
echo '
<table>';
Title: Re: [Block] Newest member block with Avatar image which links to their profile
Post by: GKDantas on May 14, 2009, 10:51:24 PM
Looking great now... can I ask you one more thing? This way the avatar have any size and the layout get broken. Theres any way to add a size tag to the avatar image??
Title: Re: [Block] Newest member block with Avatar image which links to their profile
Post by: JPDeni on May 14, 2009, 11:14:49 PM
Not without completely rewriting the code, which I'd rather not do. However, there's a setting in SMF which will allow you to set a maximum size for avatars, which ought to make a difference. Go to Admin > Forum > Attachments and Avatars > Avatar Settings and set the maximums there.
Title: Re: [Block] Newest member block with Avatar image which links to their profile
Post by: GKDantas on May 15, 2009, 03:49:46 AM
Great idea, thanks again!