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,236
  • Total Topics: 21,353
  • Online today: 577
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 276
  • Total: 276

TP front page options

Started by vanguard, May 08, 2007, 04:39:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vanguard

Ok, I got it done:

I was able to put the code from the article into a center block so the full 50 videos would still be on the front page for visitors. Plus, the block is shrinkable so if they do go through all 13 pages of UFO ground observation videos they'll have the option of getting rid of the rather large nav system block that would have always been top-dead-center.

veni vidi vici

martinmarinekeeper

i dont see anything on your home page ???

but how you get that new member thing on the colum

good looking site as well

vanguard

Just click on the 'Search' button in these forums and enter something like:

new member block





or...





Put this in a php block:

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='left'><img src='./avatars/".$row['avatar']."' alt='".$context['common_stats']['latest_member']['name']."'><BR>".$context['common_stats']['latest_member']['link']."</div>";
mysql_free_result($exec);


:up:

martinmarinekeeper

chears thanks for that
going to see if i can make a default aviator for members now

vanguard

Good luck!

Let us know if it worked.

:)

sindy

Thanks, The newest Member avatar is nice , I make php block in my site.
How can I make one avatar for all New members who no have avatar after register
and then they can change it??

martinmarinekeeper

Quote from: sindy on June 17, 2007, 07:24:55 PM
Thanks, The newest Member avatar is nice , I make php block in my site.
How can I make one avatar for all New members who no have avatar after register
and then they can change it??

i havn't been able to work it out as yet have you ???

sindy

Yes I have it and is OK, but I need one avatar for all new one rigister, who can chane it after.

martinmarinekeeper

how / what settings did you use so they get allocated a av when they join ?

Zetan

They don't get allocated an Avatar to their profile. That image is just for the Latest Member block, so it's not empty.

You need to put an image somewhere on you're server and direct the image URL to it.
Then when a new member joins, that image is used.
If the new member then chooses their own avatar, that avatar is used in the block instead.

This website is proudly hosted on Crocweb Cloud Website Hosting.