Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Adding "Join" text to sign-in text shown in header of main pages
when people get into the default forum page, the text 'Not signed in (Sign In) appears in the top right corner. Is there a way of also including a link for (Join)? i.e. 'Not signed in (Sign In) or (Join). Instead of guests having to click (Sign In), to be re-directed to the sign in page where Join is then an option? Any help is greatly appreciated!
Wig
0
This discussion has been closed.
Comments
- Open Vanilla/themes/menu.php
- Find the following lines:
- Replace with the following:
That should do it.echo $this->Context->GetDefinition('NotSignedIn') . ' (<a href="' . FormatStringForDisplay(AppendUrlParameters( $this->Context->Configuration['SIGNIN_URL'], 'ReturnUrl='. urlencode(GetRequestUri(0)))) . '">'.$this->Context->GetDefinition('SignIn').'</a>)';
echo $this->Context->GetDefinition('NotSignedIn') . ' (<a href="' . FormatStringForDisplay(AppendUrlParameters( $this->Context->Configuration['SIGNIN_URL'], 'ReturnUrl='. urlencode(GetRequestUri(0)))) . '">'.$this->Context->GetDefinition('SignIn').'</a>)' . ' or (<a href="' . FormatStringForDisplay(AppendUrlParameters( $this->Context->Configuration['SIGNIN_URL'], 'PostBackAction=ApplyForm')) . '">'.$this->Context->GetDefinition('ApplyForMembership').'</a>)';
$Context->Dictionary['ApplyForMembership'] = 'Apply for membership';