PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  Core Themes & Design ::  Username on top page

Moderated by: Support Team

Bottom
Username on top page

  • Link to this postingPosted: 16.03.2008, 13:05
    Profile
    alverman
    rank:
    pnFreshman pnFreshman
    registered:
     March 2008
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    36
    How can i make visible the username on the top of homepage in themes/modules/home.htm in the current theme?
    I tried with pnUserGetVar(uname), but does not work!

    Helpme, thank
  • Link to this postingPosted: 16.03.2008, 15:20
    Profile Homepage
    AmmoDump
    rank:
    pnProfessional pnProfessional
    registered:
     December 2003
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    2635
    Code
    <!--[user]-->


    -----
    -- David Pahl -- (PostNuke Support Team)

    <div id="me" class="none" style="none" />

  • Link to this postingPosted: 16.03.2008, 16:20
    Profile
    alverman
    rank:
    pnFreshman pnFreshman
    registered:
     March 2008
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    36
    simple icon_smile
    Thanks
    And if i want control if is registred user or guest ?
    Can you showme the simple code? icon_smile

    many many thanks



    edited by: alverman, Mar 16, 2008 - 04:22 PM
  • Link to this postingPosted: 16.03.2008, 17:23
    Profile Homepage
    AmmoDump
    rank:
    pnProfessional pnProfessional
    registered:
     December 2003
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    2635
    alvermanAnd if i want control if is registred user or guest ?


    How do you mean...


    -----
    -- David Pahl -- (PostNuke Support Team)

    <div id="me" class="none" style="none" />

  • Link to this postingPosted: 16.03.2008, 17:58
    Profile
    alverman
    rank:
    pnFreshman pnFreshman
    registered:
     March 2008
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    36
    I have write this and work.







    Now I would like to insert the default message, the one that starts with _ where is "Register".
    this:
    define('_USERS_REGISTER','Register');

    If i write
    the output is _USERS_REGISTER and not Register !!

    Why ?

    Sorry for my bad english ....... i'am italian icon_smile
  • Link to this postingPosted: 16.03.2008, 18:46
    Profile Homepage
    kaffeeringe.de
    rank:
    pnProfessional pnProfessional
    registered:
     September 2002
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    747
    Code
    <!--[pnml name='_USERS_REGISTER']-->

    -----
    best regards from Kiel, sailing city

    Steffen Voß

    Member of the PostNuke Steering Committee
    Visit: Kaffeeringe.de - Internet & Kreativität
  • Link to this postingPosted: 16.03.2008, 23:41
    Profile
    alverman
    rank:
    pnFreshman pnFreshman
    registered:
     March 2008
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    36
    No kaffeeringe.de ..... not work :(
    It show "_USERS_REGISTER" and not "Register"


    I reply message because the last my message is incomplete icon_smile

    I have write this and work.
    Code
    <!--[if $loggedin eq 1]-->
              <li><a href="<!--[pnmodurl modname=Profile]-->"><!--[user]--></a></li>
          <!--[else]-->
              <li><a href="<!--[pnmodurl modname=Users]-->"><!--[pnml name='_USERS_REGISTER']--></a></li>
          <!--[/if]-->

    Now I would like to insert the default message, the one that starts with _ where is "Register".
    this:
    define('_USERS_REGISTER','Register');

    If i write
    the output is _USERS_REGISTER and not Register !!

    Why ?

    Sorry for my bad english ....... i'am italian
  • Link to this postingPosted: 17.03.2008, 00:50
    Profile Homepage
    AmmoDump
    rank:
    pnProfessional pnProfessional
    registered:
     December 2003
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    2635
    Well, you can always add a new language define as a theme level define, instead of trying to sort from where the define is being called.
    If I create theme level defines, I make them with add a theme marker
    _THEME_USERS_REG
    You can all look at this plugin
    Code
    <!--[userwelcome]-->

    -----
    -- David Pahl -- (PostNuke Support Team)

    <div id="me" class="none" style="none" />

Start ::  PostNuke 0.7 Support ::  Core Themes & Design ::  Username on top page

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke