b2 Cafelog Resource Center
Last updated: 3rd of July 2013
Here to provide for your b2 hacks and files need. Serving the community since 2004. Disclaimer: I don't take responsibility for what you do with these files, I simply host them. More info:
Cafelog.com
NEWS!
I've migrated from b2 to the latest Wordpress. Stay tuned for a how-to on doing this yourself, which I highly recommend. I'll keep the b2CRC site up for reference though.
b2 Community Board closing January 2008: after 3 years of support, hacks and feedback/requests,
Mike decided to put the b2 message board to sleep. Finally. I am not going to be hosting any message board myself, since the number of users and level of activity are decreasing steadily. I will, however, keep hosting these files and hacks for as long as it takes. b2 was great and until I find a replacement, sigg3.net will be running b2.
Last additions:
b2Links,
Extra Options,
b2fullarchives and
latest post hack by Mike Little; and
b2 image validation for comments by Michael Park
Please help us keep the community alive by registering:) Or seek out
WordPress
The new
b2 message board is here:
http://board.michaelpark.net [Closed January 2008]
Archived threads from cafelog.com:
The b2 message board was hacked in March 2005 ago due to the lack of a critical update of phpbb2. Some of the old posts have been mirrored by
Archive.org, but alot of great user content was lost.
Installation issues [24.05.04]
How to? [02.03.05]
Hacks [28.02.05]
Feature requests [02.03.05]
Site showcase [02.04.05]
Feedback [08.11.04]
Tip: Remove &sid=[numbers] from the query (in the address field) when browsing!
Purpose of this page
First off, if you're looking for a blogging tool and thought about going b2, think again! b2 is superceeded by
Wordpress with which it is more likely to get support and more recent hacks as well.
Wordpress has since version 1.5 become more of a total system than just a blog too!
Then why do I use b2? Well, I've scripted it around to suit my needs, but if I'd started fresh today I'd go wordpress! Still, alot of hosts are lagging behind and are still providing b2 as blog-feature, so I don't fear a decline of new people using it for quite some time.
Getting alot of e-mails and Private Messages on the
b2 message board concerning files and where to download them, I finally decided to do something about it and make this page. This page should be viewed as
a supplement to the b2 message board from which it originates. I don't take any honor for putting up this page, I didn't make any of the hacks, I simply combined links and thread posts into this index. Why? To cut down on the number of repeated noob questions that has been answered several times before.
On a side-note I'd like to point out that if you're looking for a multi-blog and more user-friendly multi-user blog system that is still developing, with an active support forum too, you should consider checking out
b2 evolution.
The essentials
The b2 cafelog blogging tool:
b2 v.0.6.2.2 Last official version
b2 v.0.6.2.1 (20030625)
b2 v.0.6.2 (20030524)
b2 v.0.6.1 (20021104)
10 tips to improve your fresh installation!
..you got another version(s) zipped? Send it!
Other necessary stuff:
The b2 readme | mirror (Everyone should read this)
Security fix (Note: I got hacked because I didn't do this!)
b2 ANTI-SPAM Four simple mods to eliminate comment spam!
b2 ANTI-SPAM tutorial For those who're still not convinced
EditPad Lite Free text-edior (Recommended above Notepad)
If you want to have a 88x31 button instead of the regular text-link, feel free to use mine, but please save it to your own server:
Frequent issues
Ascending/Descending order suddenly changed or chaotic
Solution:
http://board.michaelpark.net/viewtopic.php?t=78&start=65
I want to make my own template, but how to do it?
Solution:
http://www.cafelog.com/board/viewtopic.php?t=420 [archived]
Mirror:
files/b2_temp_easy.txt
by Nessahead
Template Tutorial
http://www.farandaway.org/projects/tutorials/b2_template.html
by Lindsey at Farandaway.org
I can't login...
Solution:
http://cafelog.com/board/viewtopic.php?t=4769 [archived]
Mirror:
files/b2_login_fix.txt
by Cyberian 75 with others
If it is your first login and you didn't get the admin pass, check the DB tables.
Updates/Comments not showing...
Solution:
http://cafelog.com/board/viewtopic.php?t=5500 [archived]
Mirror:
files/b2_refresh_fix.txt
by Jaleco
I want to have b2 in a seperate directory, but it doesn't work..
Solution:
http://cafelog.com/board/viewtopic.php?t=2014 [archived]
Mirror:
files/b2_sep_dir.txt
by Joshua Clinard and Nessahead
Gzip Compression Issue in Wordpress/b2
(Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice)
Solution:
Weblogtoolscollection.com Gzip compression issue
by Mark
Hacks / Modifications
These hacks are all found @ the
hacked b2 message board and copyright (if registered) belongs to the respected creators of the hacks. Note that hacks are not part of the official release and might mess up things if you don't follow the instructions. Tip: Read and read again. DO NOT REQUEST INFORMATION ON HOW AND WHY to me, because I didn't write them and don't use most of them. If you feel that something is missing,
give me a wink at the board.
The title of the hack leads to the hack, be it a .txt file, .zip file or a webpage.
The source is where I got it from.
b2 daily quotes
by
dhtmlshock.com (©dhtmlshock.com)
This three-step javascript will add a daily quotation on your blog based on the day of the month. By keeping the quotes in an individual file CHMOD 766, you can easily update through the b2 "edit template" page. Click link above for the b2-friendly version, or the source link below for the original version.
For a live example, see
www.sigg3.net
Source:
http://dhtmlshock.com/scrollers/DailyTip/
b2Links by
Mike Little
- It plugs in to the admin screens.
- It adds to menu commands: Link Categories and Link Manager
- It allows you to define multiple categories under which to store your links.
- You can then define links with a url, name, optional image, href target and category.
- You can then list your links in your template with a simple function call.
- You can list them by category id or category name
- You can specify text or html to be output before and after each link.
- You can specifiy the sort order of the links displayed.
- You can add a 'star' rating to your links.
- There is special category type, auto-toggle which will allow only on link in the category to display at once.
- Each link is owned by the user who created it. You can only edit or delete links created by you or someone with a lower b2 administration level than you.
Source:
http://zed1.com/b2links/ |
.zip
b2 Extra Options by
Mike Little
It's not as polished as b2links, but it eventually became the options feature in WordPress. What b2customfields is per post, b2extraoptions is for the whole blog.
- It plugs in to the admin screens.
- It adds to menu commands: Extra Options
- It allows you to define arbitrary extra options for use in your templates.
- Each option can has a name, type, value, description, and admin level.
- You can control who is allowed to modify the value of these options.
- You can control who is allowed to create and edit the details of these options.
Source:
http://zed1.com/b2extraoptions/ |
.zip
b2stats
by
GamerZ (mods by Sh0ck)
An addon to B2 which diplays b2 stats. It gets database info such as top commenters, most popular posts etc. The file is customizeable.
Simply download the phps file, then rename it to
dot php before uploading. It should reside in the same folder as b2.
Source:
http://licklinux.com/cafelog/viewtopic.php?t=40
Mirror:
files/b2stats.phps
b2 group by
Alex King.org
This hack lets you group a selection of posts on a single page. One use for this is to give your an URL you can link to if you've blogged while on a trip and want to have all of your trip posts grouped together on a single page.
Source:
Alexking.org Software/b2hacks
Mirror:
files/b2group_1.0.zip
Link Rel="Bookmark" easy hack by
Sh0ck
This is good to add to your page, because it creates an easy navigation for those running text-based browsers, like Lynx. It gives the user a list of your 10 most recent articles in the top of the page. It gives your site an additional accessibility feature. It will
not be visible to normal, graphical browsers.
The output:
<link rel="bookmark" href="http://www.url.to.posts" title="title of post">
Source:
http://cafelog.com/board/viewtopic.php?t=5757 [archived]
Mirror:
files/b2_lynx.txt
URL hack by
ncyoung.com
This simple Apache rewrite and forwarding code by ncyoung.com and Michael Park gives a nicer permanent link to your posts.
Example:
http://www.cafelog.com/permaLink/106 or
http://www.cafelog.com/entry/1100 etc.
Source:
http://ncyoung.com/entry/86
Mirror:
files/nice_url.txt
Tips and tricks
Again I would like to refer to the b2 readme, since the b2-loop commands and external b2 commands can be tweaked to do alot more than your average default setup. Here are a few I've fooled around with, but if you got one of your own, feel free to let me know!
Simple way to output php info by
PHP.net
Just paste the following code into a .php file, upload it to your server and run it.
<?php
// Show all information
phpinfo();
?>
This file outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.
Note: For security reasons you should delete it after use or set user restrictions (e.g. chmod, password).
Source:
The PHP Manual
Userimages in the b2-loop by
Sigg3
Just create image files (in this case .gif's) and upload to a dir (in this case /images/). The tags for calling this can be done in two ways:
1) by USER ID (1 for admin, 2 for 2nd user etc. See the Team page.)
2) by USER LOGIN (or nick, this is easier to remember)
Let's say we go for option 2). User mamabear has a 'mamabear.gif' and user papabear has a 'papabear.gif' in the /images/ folder. To call it place this command in the b2-loop where you want the picture to show.
<img src="images/<?php the_author_login() ?>.gif" border="0" alt="<?php the_author_login() ?>">
When user papabear has posted, the parsed tag will be:
<img src="images/papabear.gif" border="0" alt="papabear">
In option 1) replace <?php the_author_login() ?> with <?php the_author_ID() ?>, and the gif's must be named 1.gif, 2.gif etc.
If you've got nice tables in the loop, this can make for a professional look:)
Using this mod to prevent spam!
This can also be done to prevent
some amounts of SPAM by using the e-mail tag! Use either a similar picture for everyone (e.g e-mail.gif) or use the method above with one pic for each user. Then you just place this command where you want it to show:
<a href="mailto:<?php the_author_email() ?>"><img src="e-mail.gif" border="0" alt="E-mail <?php the_author_login() ?>"></a>
And I'm sure you can find numerous of other uses for these wonderful tags:)
Source:
http://www.cafelog.com/readme.html
Defining design by the Category using CSS by
Sigg3
Want different designs for each category? There are many ways to do this, but maybe the easiest is cascading stylesheets (CSS). If you combine some features of CSS1&2 and information from
the b2 readme, you can make some really nifty, interactive differences when browsing your blog.
I did this with my
GCP Group Blog.
My html:
<div id="postsbkg">
<!-- // b2 loop start -->
permalink
<div class="cat<?php the_category_ID() ?>">
post stuff
</div>
<!-- // b2 loop end -->
</div>
and in my CSS:
/* The CSS b2 category 'hack' by Sigg3.net */
/* Remember that a class can't begin with a numeral! */
.cat1, .cat2, .cat3, .cat4 {
margin: 0px;
padding: 2px;
border: 2px;
border-style: outset;
}
.cat1 {background-color: #FF9999; border-color: #FF0000;}
.cat2 {background-color: #FFCC33; border-color: #FF9900;}
.cat3 {background-color: #99FFCC; border-color: #00CC66;}
.cat4 {background-color: #CCCCFF; border-color: #9999FF;}
With these settings you can use the postsbkg for positioning and some styling, and the first part of the CSS above to define the look of all .catX classes, while the specific differences are done through the .catx individually. You can in fact have the posts show up entirely different by the category.
Source:
http://cafelog.com/board/viewtopic.php?t=5986
Credits
This page wouldn't have been anything without the people of the
b2 Cafelog Message Board who has provided me with suggestions, files and numerous challenges in between boring office work.
Michel V, the creator of b2 who has now gone to
Wordpress.
Michael Park, for his dedication and willingness to write free code:)
Stevem, for great support when a noob's in distress
Echolalia, for older versions
And thanks to all the ones that I didn't mention.