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

BentotBentot New
edited July 2006 in Vanilla 1.0 Help
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.
image


Thanks in advance

Comments

  • look in the styles folder, then should be a php file with sign in in the name. There might be 2 so open both and see which one has the display stuff.
  • Hi,
    I don't see any php file Under Themes>vanilla>styles>default.

    Am I on the right styles folder?

    Thanks
  • wait on sec , woops sorry i mean the ones in Themes folder people_signin_form_validpostback.php should be the right one i think.
  • Thanks again but I don't think that's the right file.
    I also went to the Library>People>People.Control.SignInForm.php

    No Luck :(
  • What you want to add is related to the "people_".php files. Whether there are delegates there to allow you to append or rewrite things only mark knows without looking at the files yourself. You could easily rewrite and save it to your own theme directory as a personal modification for your forum and it should work.
  • Thanks lech
    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
  • MarkMark Vanilla Staff
    First of all, you should not be editing any files in Vanilla. You should be creating a new theme and creating/editing your own files in there. If you edit the Vanilla files, then your changes will be overwritten when you do an upgrade.

    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.
  • lol well i got the wrong file darn i had 50/50 chance lol
  • MarkMark Vanilla Staff
    edited July 2006
    Oh, and everyone who wants to do stuff like this should read this:

    http://lussumo.com/docs/doku.php?id=vanilla:themes
  • Mark
    You're the best ;)
    This is the kind of tutorial I'm looking for.

    Thank you Mark and everyone else...
This discussion has been closed.