1 kimberly Aug 19, 2008 19:08
3 tilqicom Aug 19, 2008 19:26
a slight chance, you only previewed in home page, and not other pages ?
cause in addition to 'index.main.php and single.main.php and in page.main.php' sidebar must be included in 'posts.main.php' too
4 afwas Aug 21, 2008 03:15
Have a look at the HOWTO I wrote some time ago: [url=http://forums.b2evolution.net/viewtopic.php?t=14515]HOWTO edit / copy / add containers to skins
[/url]. It is based on an example with the Asevo skin but I tried to write it as 'general' as I could.
I would like to add to tilqicoms reply that using the _posts.main.php file is only needed if you start with the 'basic' skin and derivatives. Other skins are managed through _index.main.php. If your container (Sidebar) is recognized you are fine with editing the _index.main.php file.
That leaves the CSS as cause for your Sidebar not showing. Have a look at the article I mentioned and return to this topic with subsequent questions.
Good luck
5 kimberly Aug 21, 2008 04:41
tilqicom wrote:
a slight chance, you only previewed in home page, and not other pages ?
cause in addition to 'index.main.php and single.main.php and in page.main.php' sidebar must be included in 'posts.main.php' too
OK, I added the code to posts.main.php and it is now showing in my blog, so I guess that was the error. First, I have read the Docs, but I am having a bit of trouble fully understanding the new skins thingy. What is the purpose for each, index.main.php, single.main.php, page.main.php and posts.main.php? Why does a container have to be included in each of these to write a skin?
Kimberly.
6 kimberly Aug 21, 2008 04:48
Afwas wrote:
Have a look at the HOWTO I wrote some time ago: [url=http://forums.b2evolution.net/viewtopic.php?t=14515]HOWTO edit / copy / add containers to skins
[/url]. It is based on an example with the Asevo skin but I tried to write it as 'general' as I could.I would like to add to tilqicoms reply that using the _posts.main.php file is only needed if you start with the 'basic' skin and derivatives. Other skins are managed through _index.main.php. If your container (Sidebar) is recognized you are fine with editing the _index.main.php file.
That leaves the CSS as cause for your Sidebar not showing. Have a look at the article I mentioned and return to this topic with subsequent questions.
Good luck
Thanks. I did read your article, but it appeared to me you were hard-coding your container in the _index.main.php instead of doing an include. For flexibility, I thought the container was suppose to be external and included in the _index.main.php file.
So, why did I need to include my container in _posts.main.php? Why so many files where we have to insert the same container?
Oh, to learn I started with a skin that I downloaded that was close to what I wanted since I can not really follow the Docs on skinning. I tried to do a google on b2evloution v2 skinning tutorial without any luck. Are there some good tuts on learning how to skin v2? Eventually I would like to learn how to write a skin from start.
7 afwas Aug 21, 2008 05:35
The different files are for different views. Single is for single mode post view when you click a post you go to that view. That was just an example.
There are other skins you can start with that have only one file to manage. I think it's a better place to start.
Include a file with the sidebar code is the same as putting the code at that place. It's simply a preference. You may like to master a huge single file or you like to work with several smaller files.
At the moment there isn't such a thing as a good tutorial on skins. You can visit the Docs that have several articles somewhat shattered around. I plan a tutorial, but that will take at least a month and probably longer to do.
Good luck
8 kimberly Aug 21, 2008 15:56
I understand. Thanks so much everyone for your help.
I look forward to your tutorial, I can imagine that it will take some time to compile. It is nice when a community comes together to help each other without thinking about compensation.
-Kimberly.
I selected version 2.x from the drop down list, but it put My b2evolution Version: 1.10.x My b2evolution Version is the latest version, b2evo v 2.4.2