Results 1 to 7 of 7
  1. #1
    Junior Member winwill's Avatar
    Joined
    Apr 2012
    Location
    A, A
    Posts
    17
    Thanks
    Received:0
    Given: 0
    Version
    1.1.4

    How to add extra register and login near header logo ?

    i want to add register and login to websites header, after login it wants to be changed into logout

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,514
    Thanks
    Received:87
    Given: 14
    Site
    http://pligg.com/demo/
    You won't get a response if you can't present a clear question.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Junior Member winwill's Avatar
    Joined
    Apr 2012
    Location
    A, A
    Posts
    17
    Thanks
    Received:0
    Given: 0
    Version
    1.1.4
    ok....In my website register & login look like following image


    Attachment 2599

    i want to change that register & login into like following image


    Attachment 2598

    how can i do this ?

  4. #4
    Junior Member winwill's Avatar
    Joined
    Apr 2012
    Location
    A, A
    Posts
    17
    Thanks
    Received:0
    Given: 0
    Version
    1.1.4
    i dont want to change entire template just need to add it top right corner of the website

  5. #5
    Junior Member/Designer mneodor87's Avatar
    Joined
    Jul 2010
    Posts
    12
    Thanks
    Received:0
    Given: 1
    I got "Invalid Attachment specified" when I tried viewing the images, so I can't tell exactly what you'd like to be done, but here is how I customize my sites-

    Using Chrome Developer Tools (guide here- https://developers.google.com/chrome.../docs/overview) or Firebug inspect the header logo/right corner on your page. What information can you find- does a specific CSS class or <div> id contain the logo image or the right corner? Find it and then go to your template's folder to edit the header.tpl file.

    Find where you want the links to go in the header.tpl file and paste this code-

    {if $user_authenticated neq true}
    <a href='{$URL_login}'>{#PLIGG_Visual_Login_Title#}</a>
    <a href='{$URL_register}'>{#PLIGG_Visual_Register#}</a>
    {/if}

    {if $user_authenticated eq true}<a href="{$URL_userNoVar}">{#PLIGG_Visual_Profile#}</a>{/if}
    {if isset($isgod) && $isgod eq 1}<a href="{$URL_admin}">{#PLIGG_Visual_Header_AdminPan el#}</a>{/if}

    {if $user_authenticated eq true} <a href="{$URL_logout}"> {#PLIGG_Visual_Logout#}</a>{/if}

    This adds options for login, register, profile, Admin, and Logout links respectively. Because these are logic tests then when someone is logged in it will show the log out option, and when someone is logged out it will show the log in link like you wanted.

    Now, once the code is in your header.tpl file, you will probably need to style it to make it look nice and align the way you want it, etc. on your page. After a hard refresh or two (CTRL+R on PC) again inspect the links with Developer Tools or Firebug and look at the <div> they're in. Play around with adding attributes like padding and margins, etc. to get the links where you want them and then style them with colors and the like. Once you like how it looks on the page, add those attributes/changes to your CSS file (Chrome Developer Tools is nice enough to tell you which line the specific class/id is on in your stylesheet to reduce time hunting for it).

    Finally, you may need to put them in their own <div> so they don't conflict with the logo or other elements on the page. If that's the case then use CSS floats or positioning to get them to where you'd like them. Good luck!

  6. #6
    Junior Member winwill's Avatar
    Joined
    Apr 2012
    Location
    A, A
    Posts
    17
    Thanks
    Received:0
    Given: 0
    Version
    1.1.4
    first of all... so many thanks to mneodor87 for your detailed reply

    i going to try this ..

    thanks

  7. #7
    Junior Member winwill's Avatar
    Joined
    Apr 2012
    Location
    A, A
    Posts
    17
    Thanks
    Received:0
    Given: 0
    Version
    1.1.4
    hi mneodor87

    i put that code into header.tpl

    but getting 500 - Internal server error

    (

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg