Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: [-1] 1 - 2

Bottom
Placing the login block on the page header
  • Posted: 10.08.2004, 15:59
     
    mayhem_sci
    rank:
    Freshman Freshman
    registered:
     August 2004
    Status:
    offline
    last visit:
    23.10.04
    Posts:
    10
    i dun quite get it. at first i thought i should add the piece of code in my master.htm and home.htm, but then realised that this is PHP code so i need to put it in a .php file. but if i put it in theme.php, i can't seem to control where the thing appears.
  • Posted: 10.08.2004, 18:55
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    PHP placed in A-T template files will be parsed, just surround it PHP tags...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Posted: 12.08.2004, 11:18
     
    mayhem_sci
    rank:
    Freshman Freshman
    registered:
     August 2004
    Status:
    offline
    last visit:
    23.10.04
    Posts:
    10
    i still can't get it to work. if i add PHP code to my master.htm, it simply comes out as text, with all the
  • Posted: 30.12.2004, 02:59
     
    awillys
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    01.09.05
    Posts:
    163

    grafixwerk

    I've implemented the code below...

    InvalidResponse


    Code

    <?php
    if(!pnUserLoggedIn()){
    ?>
    <form action="user.php" method="post">Username<input type="text" name="uname" size="12" maxlength="20">
    Password<input type="password" name="pass" size="12" maxlength="20"><input type="checkbox" value="1" name="rememberme" />
    <input type="hidden" name="module" value="NS-User" /><input type="hidden" name="op" value="login" />
    <input type="hidden" name="url" value="/index.php" /><input type="submit" value="Login" />
    </form>
    <a href="user.php?op=lostpassscreen&amp;module=NS-LostPassword">Log in Problems?</a><br>&nbsp;New User? <a href="user.php">Sign Up!</a>
    <?php
    }
    ?>


    But, the "Login" appears above the header not in it? I'm using atPN-Blue. Is there something else I need to do... It seems to be working otherwise! :shock:


    Hello,

    what should i had in this code so when the user is log in, it shows "Welcome Userxxxx" and the "logout" link ?

    thanks in advance

Goto page: [-1] 1 - 2

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula