TinyPortal

Development => Support => Topic started by: rickyreter40 on October 14, 2006, 11:24:38 AM

Title: ssi function
Post by: rickyreter40 on October 14, 2006, 11:24:38 AM
Hi, is there a ssi function for newest member so i can put on right side of block of portal with pic?

peter  :)

Thanks
Title: Re: ssi function
Post by: Crip on October 14, 2006, 11:29:47 AM
<?php ssi_latestMember(); ?>
--------------------------------
add in a phpbox: ssi_latestMember();  <--
Title: Re: ssi function
Post by: Crip on October 14, 2006, 11:32:04 AM
remove:
<?php

?>
Title: Re: ssi function
Post by: akulion on October 14, 2006, 02:34:57 PM
rick also check out the block code snippets index (http://www.tinyportal.net/smf/index.php?topic=4983.0) and search for "newest member" there is one which will do exactly what u want: show newest member with their avatar :up:
Title: Re: ssi function
Post by: Crip on October 14, 2006, 03:57:51 PM
With there Avatar?.. very interesting.
Title: Re: ssi function
Post by: akulion on October 14, 2006, 04:12:45 PM
chere is the block one:


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="YOUR IMAGE LOCATION"><BR><BR>'.$context['common_stats']['latest_member']['link'].'</div>';


its a code written by Jcortina
displays both avatar and member title :UP:

instead of "YOUR IMAGE LOCATION" put the address of the image to show when user has no avatar
Title: Re: ssi function
Post by: rickyreter40 on October 14, 2006, 04:36:16 PM
hi,can you have just there name and your own pic

see below:

http://www.rebelrosenetworks.com/forum/index.php

as newest member


p.s never new the snippet codes excist

GREAT THANKS
Title: Re: ssi function
Post by: akulion on October 14, 2006, 04:41:24 PM
i put the code above for you :up:

put that in a PHPbox as a side block :)
Title: Re: ssi function
Post by: rickyreter40 on October 14, 2006, 04:50:00 PM
Thanks mate :up:

Love tp  ;D
Title: Re: ssi function
Post by: akulion on October 14, 2006, 04:54:50 PM
welcome :up:
Title: Re: ssi function
Post by: rickyreter40 on October 14, 2006, 04:56:18 PM
theres just a red cross,sorry and is there a avatar on registration for rc3


peter
Title: Re: ssi function
Post by: akulion on October 14, 2006, 05:05:42 PM
u have to upload an image and set its address in the place where it says YOUR IMAGE LOCATION

here is a good image to use

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

be sure to put the full adress to where u upload the image
Title: Re: ssi function
Post by: rickyreter40 on October 14, 2006, 05:11:05 PM
ok i will have a go and let you no :up:
Title: Re: ssi function
Post by: rickyreter40 on October 14, 2006, 05:18:10 PM
sorted :up:
Title: Re: ssi function
Post by: akulion on October 14, 2006, 05:32:13 PM
good :)