1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 admin panel image path

Discussion in 'Styling and Customization Questions' started by davb, Dec 9, 2013.

  1. davb

    davb Member

    After creating a new style folder, and setting the image path

    my admin panel images are not available, when can i set the admin panel image path

    thanks
     
  2. Wuebit

    Wuebit Well-Known Member

    Try rebuilding templates (not sure if there is a way to do it now but I used to just import a style than remove it and it cleaned everything up)
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    New styles only relate to the front end, not the ACP.

    Creating a new style should have no effect on the ACP.
     
  4. davb

    davb Member

    Eventhough i created a new style, the ACP still has css reference to styles/default/xenforo

    When i created a new style i renamed the default style folder so i can find the front end if any file is referenced to default imagepath. This made the ACP to show without images.

    so is default style folder should always be necessary for admin section

    thanks
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    You said you created a new style, not that you had renamed the default style.

    Besides which, you can delete the default style as long as there is another "default" style.

    I don't have the default style on my site, I deleted it.
     
  6. davb

    davb Member

    Ok,

    I created a new style named Red and the new style is set default in ACP. I renamed the original default style folder that came along with xenforo to Defaults ( i did not delete it so i can reuse to verify for design glitches)

    now you can see in the admin section the logo is still pointing to styles/default

    not styles/red/xenforo/xenforo-small.png

    <img src="styles/default/xenforo/XenForo-small.png" id="logo">

    so all the images in the admin section are not showing. It shows only if i set the only DEFAULTS folder to default

    Am i explaining well?
     
  7. davb

    davb Member

    any suggestions
     
  8. Steve F

    Steve F Well-Known Member

    The "default" folder needs to stay in place, name and all. Just copy the folder to create a new style.
     
    davb likes this.
  9. Steve F

    Steve F Well-Known Member

    And if you are wondering, the AdminCP uses different style properties. AdminCP style changes are overwritten on upgrade as well.
     
  10. davb

    davb Member

    you are right,

    if i remove the default folder or rename it the admin cp images are not available but the admin css files are loaded.

    so somebody tell me correctly,

    The css styles are loaded from the database but the acp image path are still referenced to /styles/default/xenforo

    is this a bug.

    What i did was copied and renamed the default style folder to Red (my style name) and create a new style file.

    And now if i remove the default folder, i can't view the images in the acp

    thanks
     
  11. Steve F

    Steve F Well-Known Member

    The AdminCP styling is separate from the front end styling only by style properties. The AdminCP will always use the default folder, at least until XenForo makes it possible to create Admin styles and be able to save them from being overwritten on upgrade.

    You say you copied and renamed the default folder, don't do anything to the default folder leave it as is. You have to create a whole new directory for your style but base it off of the default folders.
     
    davb likes this.
  12. davb

    davb Member

    Thanks, clear now
     

Share This Page