Fork me on GitHub

Question probably asked 1000 times - Login under site logo  Bottom

  • Hi people,

    I'm sure you've been asked this 1000 times already, but what is the code for adding the login underneath the logo image, in the themeheader, I have scoured these forums for a day or so and found a couple of lines of code to insert and allow this but it never seems to appear correct at all.

    Here is the current code:

    Quote


    function themeheader() {
    global $thename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index;
    $slogan = pnConfigGetVar('slogan');
    $sitename = pnConfigGetVar('sitename');
    $banners = pnConfigGetVar('banners');
    $type = pnVarCleanFromInput('type');

    echo "\n";
    echo "";
    echo ""
    .""
    ."
    "
    .""
    .""
    .""
    .""
    ."
    "
    ."<font color="\"#FFFFFF\"">"
    ."
    "
    ."
    ";
    blocks('left');
    echo "
    ";
    if ($index == 1) {
    blocks('centre');
    }
    }


    If someone could help me out with this it would be much appreciated.

    Regards

    Ron
  • Check out this post (note highlighted search terms).

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

    Cape Cod Travel Info...
  • Thx for the reply,

    I have tried the code on that page but I am still doing something wrong?

    Where in the function themeheader() am I supposed to enter it?
  • Ron_Stanworth

    Where in the function themeheader() am I supposed to enter it?

    Whereever you want it to appear. ;) Because you're using a theme that "echoes" the HTML as PHP code you have to be careful of the PHP syntax what with escaping quotes, semi-colons, etc...

    The "right" way to write theme's, IMO, is to "exit" PHP in the theme.php and code HTML as HTML as outlined in this post:
    Theme Guide: Tips fo…g and starter theme

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

    Cape Cod Travel Info...
  • Thx again Nate,

    I have been looking at the starter theme guide that you wrote, good stuff :)

    I think it is the echoing that is messing things up there for me on the theme I am using, but I took the base theme that you posted and I am slowly editing it to make a theme with everything I want on it. I have already noticed it is much easier editing your starter theme written the "right" way.

    Regards,

    Ron
  • Thanks Ron,

    Of course, there's Xanthia coming out and there's AutoTheme... But I find the classic theme's more elegant - there's less disc seeking going on, less overall overhead than either of the above options, and if you follow my instructions, you can use a WYSIWYG editor to edit the components of your theme. (and with simple PHP logic can have much of the flexibility of the other options).

    *And* "classic" themes will work with the foreseeable future versions of PostNuke...

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

    Cape Cod Travel Info...
  • 0 users

This list is based on users active over the last 60 minutes.