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

Help! can't find default.master.php

Hello Vanilla Forums.

I'm really new to this, I'm fine with HTML & CSS, just starting with PHP so could really do with some advice.

Or please point me to some literature where I can find these answers and I apologise in advance for my long and rambling post.

Vanilla - everything installed & working on both local & remote servers.

I've embedded a forum on a site I'm developing and created a custom theme and modified the style sheet to reflect the look of my site. Everything works fine & I've managed to get the new user email confirmation page to redirect to my embedded forum.

Now, in the dashboard, I want to make sure the "visit site" link in the banner and the three links in item 2 of the dashboard link "Where is your Community Forum" to link back to the embedded page.

This is frustrating me like hell.

I can look at the page source and highlight the links but can't find this page anywhere.

I've been lead to believe that the file default.master.php is the holy grail but I can't find this file anywhere; certainly not in the /applications/dashboard/views/ directory.

There is a .tpl file of the same name but I really don't have time to learn Smarty - I'm struggling with the PHP to be honest.

So my question is where can I find this file? It's nowhere within vanilla-core-2-1.zip

And am I barking up the wrong tree?

Please can someone show me how I can edit these links to point to my embedded page.

Also when I look at the site on my iPhone, the forum has switched to the Mobile theme, which is dark blue which totally contrasts with my colour scheme.

I tried editing the Mobile theme's custom.css file - this works fine on my local server but reverts to the original CSS when I upload it to the remote server.

Please can someone help me to edit this theme.

Many thanks in advance & I'm really looking forward to hearing from you

Best Answers

Answers

  • Options

    What an eejit!!

    I apologise profusely to anybody who read my last post - it was solvable through an option in the Advanced Forum Embed section in the dashboard.

    I'd still like to know how to find the default.master.php file though.

    However, I hope my second question is still valid - how do you edit the mobile theme?

    Thanks in advance

  • Options

    Thanks Peregrine,

    Wow, that's a really quick and useful response, thank you.

    No documentation apart from googling and the forums. Saw a lot of references to the .php file and sort of know where I am with php but not tpl. Opened .tpl files and apart from a few bits, couldn't see where I could effect any changes.

    I'm on windows not linux so not sue about the recursive listing but will check.

    Thank you for the advice on themes.

    Not sure where you are or what time zone but I'm sure it's either really late or really early, so thank you very much for your help

  • Options

    Sorry

    But probably another stupid question.

    How do I customise the dashboard itself?

    Many thanks in advance

  • Options

    How do I customise the dashboard itself?

    you can addlinks to the sidemenu via plugins.
    you can change the css.

    other than that i wouldn't mess with the dashboard, or you will going down the road, where you might not be able to recover from. Also, if you haven't been told it is not a good idea to change core files - since it will make upgrades very difficult.

    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

    Peregrine, you're a gent

    Thank you very much - I just wanted to change the colour scheme but maybe I'll leave well alone as I'm delighted with the rest of my forum

    Cheers mate

  • Options
    peregrineperegrine MVP
    edited June 2014

    I'm not saying it's a good idea or a bad idea. but if you want to change the dashboard color scheme

    create a customadmin.css in your theme

    themes/yourthemename/design/customadmin.css

    e.g. depending on inheritance and specificity this would change the background to yellow on the h4 elements in the panel in your dashboard.

        #Panel div.Box h4 {
            background-color: yellow;
          }
    

    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 may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited June 2014

    You can download the theme VanillaGrape or GreenGlass they have an admin style sheet you could play with. I would attach a few admin stylesheets for you but it is no longer possible...

    Actually you should look at all my themes, I make mobile themes too. You can see how they are made and modify them to your needs.

Sign In or Register to comment.