Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

move signin/out link

I want to add top menu bar regardless forum menu bar. So I want to move signin/signout link of forum into top menu bar.
I just checked it in default.master.tpl

{link path="signinout"}
How can I make my signin/out link in menu bar? I wanna have same function if user is logged in, signin button is changed into signout.
I don't know how to move link ("signinout") into my menu bar.
Please let me know.
Thanks

Comments

  • Options
    peregrineperegrine MVP
    edited March 2013

    insert the signin link (simple enough)

    http://localhost/vanilla/index.php?p=/entry/signin
    
    grab the transient key from $Session and append it to
    
    http://localhost/vanilla/index.php?p=/entry/signout&
    
    like so
         $transientkey = Gdn::Session()->User->Attributes['TransientKey'];
        http://localhost/vanilla/index.php?p=/entry/signout&TransientKey=$transientkey
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    peregrineperegrine MVP
    edited March 2013

    @x00 or anyone..

    if anyone has a tested in console script that works embedded in wordpress, would like to see it.)

    Any ideas how to make this work embedded in wordpress

    seemed like an easy way to move the signin around -

    if entered in the console - it works in non-embedded

    but if in wordpress - it won't work in the console.

    jQuery(document).ready(function($) {
    $(".Banner a:contains('Sign In')").css({'position':'absolute','top':'8px','left':'500px'});
    
    });});
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    422422 Developer MVP

    I would be interested in this too, as we use SSO.

    See image ( wish to get rid of the sign out link )

    There was an error rendering this rich post.

  • Options
    422422 Developer MVP
    • fixed *
      In default.master.php

    I commented this line out

    //$this->Menu->AddLink('SignOut', T('Sign Out'), Gdn::Authenticator()->SignOutUrl(), FALSE, array('class' => 'NonTab SignOut'));

    There was an error rendering this rich post.

  • Options
    peregrineperegrine MVP
    edited March 2013

    I'm thinking of more in line of moving link from frame to parent via jquery.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    i don't know about non of that of course but i just put a link to my forum on my wp >>>navmenubar and a link to my >>>wp blob on my vanilla forum menu.
    can't see how you can java the link via css onto wp tho...wouldn't than mean from app to app ? if it can be done that would be magic !

Sign In or Register to comment.