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,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 400
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 241
  • Total: 241

Anything : Topic

Started by brianjw, October 20, 2006, 12:01:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brianjw

This is what I am talking about:
[copied from my forum]

The title is user at the top, see?
Instead of user I want to make it say like [username] at the top.

User

Hey, TuXie
PM: 1
New: 1
Show unread
Show replies
Show own posts
Total Logged In:
0d 11h 29m
October 20, 2006, 04:15:22 PM

Lesmond

why not just edit the block "Use frame, but not title" then it will just show the user name

JPDeni

In TPortal.template.php,

replace

case 'userbox':
  if($context['user']['is_logged'])
    $mp='<a href="'.$scripturl.'?action=profile;u='.$context['user']['id'].'">'.$block['title'].'</a>';


with


case 'userbox':
  if($context['user']['is_logged'])
    $mp='<a href="'.$scripturl.'?action=profile;u='.$context['user']['id'].'">'.$txt['hello_member'].' '.$context['user']['name'].'</a>';

brianjw

Thanks theyre both great ideas

brianjw

I have 2 more questions? (For Today)

  • How do you insert a logo at the top of your SMF pages with PHP?
    ~What code do I find and what code do I (replace or add after/before)?
  • How do I make it so when people are logged out of my forum. To make my shoutbox scroll?
;D Thanks for your answers ;D




G6Cad

I told you several times about this now.
Use the search and read the threads, and learn how to use your site, As it is now, not even your signature is what you say it is about your site ;)

I lock this thread

This website is proudly hosted on Crocweb Cloud Website Hosting.