How can I use my own look?
The default package comes with an index.php that you can use for your blog. This file implements the look as you can see at http://www.mvblog.org.
If you want to create your own look here some instructions:
Instructions for MvBlog versions 0.X and 1.X
First of all, include() or require() the file common/functions_blog.php
Now call the function html_header("optional title");
Close the page with html_footer();
In your page you can use the following functions (defined in common/functions_blog.php)
- blog_content(start_post, number_of_posts_per_page); Show the articles ordered by date
- blog_archive_links(how_many_months); show list of months with counter how many posts were made in that month
- blog_cats_links(); show list of categories with counter how many posts were made in that category
- blog_show_search(); shows search box. It is search as you type, and a layer will show up with links to the first 5 results
For a list and instructions about the class tags and how you can alter them with CSS have a look at the CSS page
Instructions for MvBlog versions 2.X and later
Nothing here yet, because 2.0 is not yet there, but it will be classbased.
Preview of my ideas:
First of all, include() or require() the file common/mvblog.php
Now init the object like this: $blog = new MvBlog();
In your page you can use the following methods
- $blog->html_header("optional title");
- $blog->blog_content();
- etc.
