Results 1 to 6 of 6
  1. #1

    [HELP] Capitalize a theme

    Well, I have a premium theme for SMF from dzinerstuidos called Zentoa, and I was wondering how can I make the letters capital in the script? like the strings etc..
    For Example the welcome message
    PHP Code:
    <li class="memb_greeting">', $txt['hello_member_ndt'], ' ', $context['user']['name'], '</li>'; 
    How can I turn those into capital? this string says
    Code:
    hello "username"
    I want it to be
    Code:
    Hello "UserName (casa sensitive}"

    Sorry for my bad english

  2. #2
    VIP Untouch's Avatar
    Join Date
    Sep 2009
    Location
    Northern Ireland
    Posts
    1,378

    Re: [HELP] Capitalize a theme

    PHP: ucfirst - Manual
    Maybe this will help, if not ask muppy: View Profile: muppetalert - Aimbots.net
    Live your dreams, don't dream your life.


  3. #3
    Coders muppetalert's Avatar
    Join Date
    Nov 2007
    Location
    Manchester, UK
    Posts
    1,006

    Re: [HELP] Capitalize a theme

    ucfirst isn't going to do that, nothing is going to do that.

    If your string was "user name" then ucfirst would convert it to "User Name". How do you expect it to convert a random letter in the middle of a string to be upper case? There is no delimiter thus this is not possible.
    whiteLight: ET, whiteLight: Quake Live (Formerly QLHook) and many other game hacks at http://whitelight.me.uk/

  4. #4
    Coders
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    990

    Re: [HELP] Capitalize a theme

    Quote Originally Posted by muppetalert View Post
    ucfirst isn't going to do that, nothing is going to do that.

    If your string was "user name" then ucfirst would convert it to "User Name". How do you expect it to convert a random letter in the middle of a string to be upper case? There is no delimiter thus this is not possible.
    I bet he means he wants to capitalize the first letter, 'ucfirst' should fit perfectly for this.

  5. #5

    Re: [HELP] Capitalize a theme

    I think he might mean that the user is in the database as "ThisGuy" but it's being printed as "thisguy", but he wants it to read the first way

  6. #6

    Re: [HELP] Capitalize a theme

    Quote Originally Posted by Seraphim View Post
    I think he might mean that the user is in the database as "ThisGuy" but it's being printed as "thisguy", but he wants it to read the first way
    Ye, thats what I mean.. for example I registered as HoloStar.. it will show "hello holostar".. I want it to be "Hello HoloStar"
    I am learning php, didn't master it yet

Similar Threads

  1. About the theme
    By fANAT1C in forum Aimbots.net related
    Replies: 4
    Last Post: January 15th, 2009, 01:20
  2. Theme's
    By Hillarious in forum Creative Corner
    Replies: 6
    Last Post: July 3rd, 2008, 15:26
  3. theme for xP
    By rttnPIG in forum Non-Gaming Related
    Replies: 2
    Last Post: July 28th, 2007, 01:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •