forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on January 09, 2004, 06:32:10 am

Title: Print Username on anywhere i want?
Post by: bit bit spears 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?
Title: Print Username on anywhere i want?
Post by: jason 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.