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.
tweaking Login Page
Bentot
New
I want to add some text on the landing page and I can't find where to tweak the main Login Page.
I tried looking at the index.php, etc.
Thanks in advance
I tried looking at the index.php, etc.
Thanks in advance
0
This discussion has been closed.
Comments
I don't see any php file Under Themes>vanilla>styles>default.
Am I on the right styles folder?
Thanks
I also went to the Library>People>People.Control.SignInForm.php
No Luck
I don't have enough PHP experience to rewrite it but I'm sure there's a spot somewhere in one of the people .php files where I can type in the text that I want to write underneath the box below the Lussumo Vanilla, swell, and people Copyright 2001 - 2005
Thanks in advance
Make a new theme folder next to themes/vanilla/ called something like themes/mycustomvanilla/
go into /themes/vanilla and copy the styles folder.
go to your /themes/mycustomvanilla and paste in the styles folder.
go to the root /themes folder and copy people_signin_form_nopostback.php
go to /themes/mycustomvanilla and paste in people_signin_form_nopostback.php
Open up /themes/mycustomvanilla/people_signin_form_nopostback.php and edit it to look like this:
<?php // Note: This file is included from the library/People/People.Control.SignInForm.php control. $this->Render_Warnings(); echo '<div id="Form" class="SignInForm"> <fieldset>'; $this->Render_PostBackForm($this->FormName); echo '<ul> <li> <label for="txtUsername">'.$this->Context->GetDefinition('Username').'</label> <input id="txtUsername" type="text" name="Username" value="'.$this->Username.'" class="Input" maxlength="20" /> </li> <li> <label for="txtPassword">'.$this->Context->GetDefinition('Password').'</label> <input id="txtPassword" type="password" name="Password" value="" class="Input" /> </li> <li id="RememberMe"> '.GetDynamicCheckBox('RememberMe', 1, ForceIncomingBool('RememberMe', 0), '', $this->Context->GetDefinition('RememberMe')).' </li> </ul> <div class="Submit"><input type="submit" name="btnSignIn" value="'.$this->Context->GetDefinition('Proceed').'" class="Button" /></div> </form> </fieldset> <ul class="MembershipOptionLinks"> <li class="ForgotPasswordLink"><a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '', '', '', 'PostBackAction=PasswordRequestForm').'">'.$this->Context->GetDefinition('ForgotYourPassword').'</a></li> <li class="ApplyForMembershipLink"><a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '', '', '', 'PostBackAction=ApplyForm').'">'.$this->Context->GetDefinition('ApplyForMembership').'</a></li> </ul> </div>'; ?> My custom junk goes here.
Then sign into Vanilla and go to the settings tab.
Click the "Themes and Styles" form.
Under themes choose "mycustomvanilla".
Under styles choose "default".
Check "apply to all users".
Click Save.
Click the sign out button.
Watch the magic.
http://lussumo.com/docs/doku.php?id=vanilla:themes
You're the best
This is the kind of tutorial I'm looking for.
Thank you Mark and everyone else...