• 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

#1
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
 

DarkVodka

Formerly Wuebit
#2
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)
 

Brogan

XenForo moderator
Staff member
#3
New styles only relate to the front end, not the ACP.

Creating a new style should have no effect on the ACP.
 
#4
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
 

Brogan

XenForo moderator
Staff member
#5
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
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?
 

Steve F

Well-known member
#9
And if you are wondering, the AdminCP uses different style properties. AdminCP style changes are overwritten on upgrade as well.
 
#10
The "default" folder needs to stay in place, name and all. Just copy the folder to create a new style.
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
 

Steve F

Well-known member
#11
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.
 
#12
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.
Thanks, clear now