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

Editing the PHP of my Vanilla Forum

I would like to edit some of the PHP of my Vanilla Forum, but when I try to edit it, I get an error saying that there was an unexpected character in the PHP file. Could someone point me to where the code that brings up that error is, so I could disable it?

Comments

  • Options

    If you going to edit code, you have to know what you are doing. Vague question like this aren't very helpful to you.

    Parsing errors cannot be disabled....

    If you edit the core, your are maintaining a fork, which mean you provide your own support.

    Given there an a an extensions API, and the framework is very pluggable, you have to a good reason to modify the core.

    grep is your friend.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @Green

    It isn't really clear what you are asking for.

    If you managed to disable error reporting for PHP, all that would happen is you would still get the error, but have no clue what was causing it.

    If you explain what it is you are trying to do in your forum, someone can probably help you, or point you to an existing thread that covers the issue.

    Have you read the documentation, and checked out the Vanilla wiki:

    http://vanillawiki.homebrewforums.net/index.php/Main_Page

  • Options

    Alright, scratch what I said at the top, it doesn't make sense. If, for example, I wanted to add a picture to the homepage, where would I want to start? PS: Vanilla does not host my website.

  • Options
    peregrineperegrine MVP
    edited May 2013

    that would be modify theme or as simple as adding a logo in the dashboard, depending on what you want to do. Question is Still a bit ambiguous

    http://vanillaforums.org/discussion/19915/deploying-a-new-forum-and-adding-a-theme-for-everyone

    and what whu606 said.

    and whu606's plugin should give you what you need to know - if you work through them,
    http://vanillaforums.org/addon/annotated_css-theme

    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
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    @Green

    This is the forum for those who have self-hosted forums, so you are in the right place.

    Have you looked at the Documentation? (Link at top of page.)

    Which version of Vanilla are you using?

    If it's 2.0.18.x this plugin may help you to get going:

    http://vanillaforums.org/addon/pockets-plugin

    Basically, changes should be made in a custom theme:

    css styling in custom.css

    and html/php in either

    default.master.php

    or

    default.master.tpl

    depending on the theme you are using.

    Changes can also be made using themehooks or by creating plugins.

  • Options
    GreenGreen New
    edited May 2013

    Alright, do you have a theme you would suggest downloading to edit? Because the one I downloaded had a locked default.master.tpl. Thanks for the help, by the way!

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited May 2013

    @Green

    Themes are obviously personal as to what people like or don't.

    If you are using 2.0.18.x I made a theme to help users get going with theming:

    http://vanillaforums.org/addon/annotated_css-theme

    As the name suggests, the custom.css declarations are annotated to show what they effect.

    It's not meant to look good, until you style the colours the way you want.

    It has a php default.master, so may be a bit easier for you to get to grips with.

    Remember that custom.css only has to contain declarations for elements you want to style. All other declarations will default to the basic Vanilla style.

  • Options

    had a locked default.master.tpl.

    ???? and locked means what.

    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 think he meant lacked.

    grep is your friend.

  • Options

    I thought he meant locked, as in couldn't edit. - but either way it was lacking.

    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

    Locked, as in couldn't edit.

  • Options

    well - wrong file permissions!!!! you need to be the owner.

    or download it to your local machine edit and the upload.

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

Sign In or Register to comment.