Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Print Username on anywhere i want?  (Read 2959 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
Print Username on anywhere i want?
« on: January 09, 2004, 06:32:10 am »

Hi, I want to make this appear: Welcome to our gallery, USERNAME.

How would i go about doing this?
Logged

jason

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 78
Print Username on anywhere i want?
« Reply #1 on: January 10, 2004, 12:44:08 am »

open lang/english.php

find
Code: [Select]
       'logout_lnk' => 'Logout',

add after
Code: [Select]
        'welcome_msg' => 'Welcome to our gallery,',

open themes/*your_theme*/theme.php

find
Code: [Select]
<!-- END logout -->

add after
Code: [Select]

<!-- BEGIN welcome -->
                                        <td><img name="spacer" src="images/spacer.gif" width="15" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><span class="navmenu">{WELCOME_MSG}</span></td>
<!-- END welcome -->


find
Code: [Select]
       '{LOGOUT_LNK}' => $lang_main_menu['logout_lnk'] . " [" . USER_NAME . "]",

add after
Code: [Select]
       '{WELCOME_MSG}' => $lang_main_menu['welcome_msg'] . " " . USER_NAME . "!",

edit1: you probably want to play with the font properties that i set span class to, i selected one that works ok with rainy_day...ymmv.
Logged
jason
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 18 queries.