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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,217
  • Total Topics: 21,351
  • Online today: 556
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

ssi function

Started by rickyreter40, October 14, 2006, 11:24:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rickyreter40

Hi, is there a ssi function for newest member so i can put on right side of block of portal with pic?

peter  :)

Thanks

Crip

<?php ssi_latestMember(); ?>
--------------------------------
add in a phpbox: ssi_latestMember();  <--
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



akulion

rick also check out the block code snippets index and search for "newest member" there is one which will do exactly what u want: show newest member with their avatar :up:

Crip

With there Avatar?.. very interesting.
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



akulion

#5
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

rickyreter40

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

akulion

i put the code above for you :up:

put that in a PHPbox as a side block :)

rickyreter40

Thanks mate :up:

Love tp  ;D

akulion


This website is proudly hosted on Crocweb Cloud Website Hosting.