1 treorenegade Sep 25, 2004 05:16
3 treorenegade Sep 25, 2004 07:05
The only other way is to not have a folder in the skins folder show up in the list is to not have the list. Disable skin switching for your blogs.
Awwww man, that's no fun! :o
Seriously, I appreciate the pointer, and will go check it out. If all else fails, I'll just go back and give the linkblog-skin-only a more obvious name, like Ignore_4LinkBlogOnly.
Thanks for the (speedy) reply! ;)
4 edb Sep 25, 2004 07:40
I should have thought a bit more... It's probable that this will also exclude it from the skins list in the back office. Makes sense right? If it's trying to hide folders that FP creates to do it's thing wouldn't it hide them from everywhere?
My project that got me in that area was a simple piece of code to make a "return to default skin". Skin selectors of the drop-down variety know which one is currently selected so I figured look there and see if I can also pick default. I could, but I couldn't make it turn that piece of information into a link. I think it's doable but I gave up on the project and just coded it for my exact type of url and access method.
So now I think about your initial thought on dealing with the skin selector in _main. The part where it says "for skin_function other_skin function" then does the "<li>make the skin name be a link to the skin</li>" is probably exactly where you want to be. It's in b2evocore and I think it's called _functions_skins (of all the crazy file names). I THINK you should be able to make a simple conditional statement that says "IF skinname != myspecialskin THEN do the list item thing". Problem is I got all jumbled up in there and got cross-eyed and side-ways and gave up.
I've been poking around the files in the "Paris" release and noticed some comments in the skin selection function that tell it how to not show certain files. I do not know if these bits of code are active yet, or simply pieces that revs-yet-to-be will use, but you can give it a shot. You would have to upgrade to Paris (0.9.0.11) first, then try "_skinname".
Fair warning: I have no idea what will happen. All I know is that when I was looking at the skin changing functions in the Paris package to debug problems I was having (that turned out to be unrelated to the version) I noticed the part that will hide FrontPage files from the skin list. It MIGHT also make it so the skin doesn't work at all.
The only other way is to not have a folder in the skins folder show up in the list is to not have the list. Disable skin switching for your blogs.