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.

Edit registration page and profile page

I'm using Vanilla 2.1.3., and can't file source template of registration page and user profile.
I've already edited all menus and text without any problem, but I'm really stuck with registration and profile... can anybody help me?

Comments

  • R_JR_J Ex-Fanboy Munich Admin

    I don't want to discourage you, but if you've modified files, you've done something wrong, sorry! You better should create a custom theme, see this links:

    http://vanillaforums.org/docs/themequickstart
    http://vanillawiki.homebrewforums.net/index.php/Themes

    If you understand what the default.master.tpl is and what is behind your custom.css, you can also benefit from this document which is for the hosted version:
    https://images.v-cdn.net/vfcom/docs/Vanilla-Forums-Theme-Guide.pdf
    bleistivt created two plugins that give you Edit CSS and Edit HTML options, too (at least I guess that they are very similar).

    Any user related view is under /applications/dashboard/views, any conversation related is under /applications/conversation/views and every forum related is under /applications/vanilla/views. In order to find the view you need, try to find a subfolder that matches a part of the url.

    But only look at these files in this directories - don't modify them!
    You'll regret that later on because you will not be able to upgrade (as you should already do by now!) without loosing your "theme". Create a custom theme like it is described in the links above and everything is fine :)

  • Thanks a lot, I found your answer really useful!
    Of course, I have a backup of everything I've edited (php, tpl and css), so it's not a problem for me to restore the original files and move the modified version into a new theme folder.

    Now, I have to add, in the profile page, a new text box to allow any user to write some information about himself (we can call it a "presentation page").
    I think I can do it in several different ways, but can you suggest me the best strategy?

  • R_JR_J Ex-Fanboy Munich Admin

    Vanilla comes with a plugin called ProfileExtender but that might not be the best for writing a presentation page. So maybe you start with writing plugins.

    That one could be a start (though it only adds some info to the side panel and doesn't add another page): https://github.com/R-J/UsersVanillaVersion/blob/master/class.usersvanillaversion.plugin.php

    This plugin shows you how to add another tab to the profile page: https://github.com/R-J/ProfileVisitors

    You should really try a custom plugin: if you add a field to the User table, add a input field to the edit user view, Vanilla does all the database action for you and you can concentrate on the presentation. Start your plugin and ask for help at any time!

Sign In or Register to comment.