1 jrbtech Jan 17, 2005 15:55
3 deepblack Jun 15, 2005 01:38
Hi...I had the same question, and I tried what you said but it still isn't working for me. My blog: http://mindspeaks.disorder-suite.net and I have it set to a custom skin which I just edit in the back office (main.php). The blog i want to use a different skin is http://mindspeaks.disorder-suite.net/chen. Her layout is still the same as mine, although I set it to a different skin (NOT custom).
???
4 yabba Jun 15, 2005 02:21
Make sure you have "allow skin switching" unticked for both blogs ;)
¥
5 deepblack Jun 15, 2005 02:36
i do :(
6 yabba Jun 15, 2005 11:08
You actually have a tad of a bigger problem to worry about.
Whilst your first link shows fine in IE it just comes up with a white page with text in Firefox (no graphics etc), most of this is caused by things like "z-index:-10"
Your second link (again works fine in IE) but comes up with the page source in Firefox.
Both of your pages have all of this code after the body tag (it should be before it)
<base href="http://mindspeaks.disorder-suite.net/skins/custom/" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="generator" content="b2evolution 0.9.0.10" /> <!-- Please leave this for stats -->
<link rel="alternate" type="text/xml" title="RDF" href="http://mindspeaks.disorder-suite.net/xmlsrv/rdf.php?blog=5" />
<link rel="alternate" type="text/xml" title="RSS .92" href="http://mindspeaks.disorder-suite.net/xmlsrv/rss.php?blog=5" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="http://mindspeaks.disorder-suite.net/xmlsrv/rss2.php?blog=5" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="http://mindspeaks.disorder-suite.net/xmlsrv/atom.php?blog=5" />
<link rel="pingback" href="http://mindspeaks.disorder-suite.net/xmlsrv/xmlrpc.php" />
And there's no reference to a style sheet.
¥
7 topanga Jun 15, 2005 11:19
If you are using stubfiles (i.e. you have a main file for each blog instead of using the index.php file for every blog) it is easy.
Put this on top of the php code :
# You could *force* a specific skin here with this setting: (otherwise, default will be used)
$skin = 'custom2';
If you have not used stubfiles yet, look at the code in the default stubfile a_stub.php and you will see what I mean..
8 deepblack Jun 15, 2005 16:40
okay..i changed the code to where it should be there...(was it supposed to change something?) PS: I took out the link to the stylesheet and just put all the CSS right in main.php...you can see the CSS though right?
as for the stub files...I really have no idea WHAT a stub file is. I opened it up and ...is it supposed to be code? It looks like a bunch of instructions from b2 to put codes somewhere else. What I did to create the /chen was select that I was doing it as a stub file, but then went to the blogs tab and put /chen then [Gen]. So I'm not really sure if I am using a stub file...
Topanga, where exactly do I put that code? In main.php?
I'm sorry, I'm usually very good with html but I know nothing of php...thank you so much for you help...
9 topanga Jun 15, 2005 19:09
My question is :
why did you change all those things if you don't know php, if you don't know what you are doing exactly ?
What is - in your opinion - wrong with the default stuff ?
You will have a good reason (I hope) but I'm sure I can chos the way how to do stuff the regular way.
And a stubfile, I explained..
You are using stubfiles if you have a main file for each blog instead of using the index.php file for every blog
A stubfile normaly look like a bunch of php-code/setting that calls another file.
It is supposed to work that way!
You are not supposed to include that file.. just call it...
10 deepblack Jun 15, 2005 21:00
Why did I change what? The CSS? Because I like CSS and I didn't want it to look plain and boring....? O_O Otherwise I didn't change anything else...everything else I'm not sure how to do yet, but the only way I will LEARN anything about php is by experimenting, seeing as I don't see many b2 tutorials out there...
I see what you're saying by what a stubfile is now, but I'm still not sure what I have to do with it in order to change the layout on /chen...that's alright, I'll figure it out.....thanks.
11 graham Jun 15, 2005 21:37
Stub files? Look at this:
http://b2evolution.net/man/2004/06/04/stub_files
And fiddle away, it really is the only way to learn, just make sure you make a copy after each successful change in case you kill anything.
12 deepblack Jun 15, 2005 22:02
Haha, I think I'm almost there...I THINK I did the stubfile thing right, and now I have http://mindspeaks.disorder-suite.net/index.php/chen...with a default layout. That's good. What I want to know is if I can have the link without the index.php? just /chen. I put everything directly into the mindspeaks folder (including the stub). i wany MY blog to be index, and hers to just be /chen....?
Thanks sooooo much!
In your back office on your blogs tab select each blog and tell it which skin to use, and tell it skin switching is not allowed. If you allow skin switching then the cookie from one blog will override the settings on the next blog.