Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Print Username on anywhere i want?  (Read 2956 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.017 seconds with 19 queries.