Open Closed

Please provide source code etc #8482


User avatar
0
wingers created
  1. Could you please send me the account pro source code so I can edit login page for version 9.0.

  2. Could you also give me latest version of the default.cshtml (for \Themes\LeptonX\Layouts\Account) as per discussion here we had previously - https://abp.io/qa/questions/8126/3a15c5fe-fa6e-16dd-9195-503651cdb738 - assuming it may have changed in 9.0 release since you posted it in that thread?

  3. Quick question in reference to method 1 here from a previous answer you gave me (https://abp.io/support/questions/8126/Multiple-problems-and-questions-faced-by-a-new-personal-license-customer#answer-3a15c5fe-fa6e-16dd-9195-503651cdb738). I have done this and when viewing website locally I can see my new background, BUT when I then publish the website I see the original background? What am I missing please?


17 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    1. Have we shared the account pro source code before?

    2. no change in 9.0

    3 You have two ways to change it. Which way are you using now?

    Thanks.

  • User Avatar
    0
    wingers created
    1. Yes Shiwei Liang emailed it to me back in October for the previous version (see here - https://abp.io/qa/questions/8105/3a15a547-71fd-c636-797b-cc0df6d3f947)
    2. Okay thanks
    3. As I said I am using method 1 - overriding the three files in /LeptonX/images/login-pages

    Further info for point 3.

    Looking on my hosting I can see the files as per image below, and if I download one of these images it is my correct background.

    But clearing browser cache, doing hard reload, even removing ALL files from my hosting and reuploading, but the site still shows default background rather than mine when viewed online. Viewing on computer when debugging project I see the correct background

    Also notice favicon not changing despite new ones being placed in correct location as below:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer
    1. Shared to darren.rose@xxxx.uk

    2. Please share an online URL. I will check it online.

  • User Avatar
    0
    wingers created
    1. Thanks
    2. https://pcassistapps.net/
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    These files should exist in the wwwroot folder during the dotnet build.

    Can't add or change after build.

  • User Avatar
    0
    wingers created

    They did exist when I did build in Visual Studio? when debugging and viewing locally I see correct background image. If I download files from location you show then it is my correct background. So don't understand what I am missing

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I mean these files should exist in wwwroot, But the changed date are different.

  • User Avatar
    0
    wingers created

    I have reuploaded since that screenshot was taken and all files have same time/date now.

    So to recap if I look in the wwwroot folder on my server I can see the background image files and if i manually download one then it is definitely MY chosen background image

    If I look in the wwwroot folder on my development computer I can see the three files for my background and opening them confirm they are MY chosen background image

    Pressing F5 on my dev computer and debugging in Visual Studio the chosen background appears fine

    Uploading files as per link provided it still shows original background, I have deleted all files from server and reuploaded multiple times now.

    Also confused as to why background appears differently in different browser, see same site opened in Edge and Chrome side by side below:

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try replacing app.MapAbpStaticAssets(); in your host module with app.UseStaticFiles();.

    If there is no MapAbpStaticAssets in your host module. Can you share a test project?

    liming.ma@volosoft.com

    Thanks.

  • User Avatar
    0
    wingers created

    That seems to have resolved the background image, which now shows correctly. Have I missed something in the documentation about having to change that setting as I would like to understand why it needed changing and didn't work before?

    So onto the second point which is why does the favicon not show correctly, as per screenshot above all files are in correct location I believe?

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Your deployment environment doesn't support the MapStaticAssets(https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0#mapstaticassets) feature. This is a new NET 9 feature, and I have no idea about it.

    So onto the second point which is why does the favicon not show correctly, as per screenshot above all files are in correct location I believe?

    Please check this svg file in wwwroot root folder.

    https://pcassistapps.net/favicon.svg

  • User Avatar
    0
    wingers created

    Okay I will speak to my host about why that feature not supported as host has full .NET 9 support.

    I can't find that file anywhere on my hosting, it just doesn't exist??? i'm confused....

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Okay I will speak to my host about why that feature not supported as host has full .NET 9 support.

    UseStaticFiles also works. It is not a big problem.


    You can put a newfavicon.svg file in wwwrrot folder then check: https://pcassistapps.net/favicon.svg

  • User Avatar
    0
    wingers created

    putting new favicon.svg in wwwroot worked but I am confused as to point of the \wwwroot\images\favicon location which all solutions create, do I need to change them here as well? what are they used for if I have to manually put it in root anyway? should something during build be moving it to the correct location?

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    They are only used in the Lepton Theme. I will remove them if the current theme is not Lepton.

    Thanks.

  • User Avatar
    0
    wingers created

    Okay, I am using LeptonX in my project

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : ) It will be fixed in the next patch Studio.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09