Compliant with Standard

As Matthias wrote to notify me about a tiny syntax issue. I immediately fixed it. So I am proud to say that the compliancy of my site has been increased !

I was using <style type=”text/css” title=”layout” media=”Screen“> instead of <style type=”text/css” title=”layout” media=”screen“>

Hack: Pure CSS for B2Calendar

Pure CSS to display the calendar! No more need of that “table” thing !

.dayword
{
z-index: 100;
position: absolute;
width: 20px;
text-align: center;
vertical-align: middle;
font-family: Arial;
font-size: xx-small;
font-weight: 900;
background: #6495ED;
color: Black;
}

.daynum
{
z-index: 200;
position: absolute;
width: 20px;
text-align: center;
vertical-align: middle;
color: #000;
font-size: xx-small;
font-style: oblique;
font-weight: 900;
font-family: Arial;
margin: 0px 0px 0px 0px;
}

.day
{
width: 20px;
height: 15px;
text-align: right;
background-color: #F8F8FF;
vertical-align: middle;
float: left;
margin: 0px 0px 0px 0px;
}

.daynow
{
background-color: #1E90FF;
color: white;
}
.week
{
text-align: center;
clear: both;
}

.month {
background-color: #4682B4;
vertical-align: middle;
text-align: center;
font-size: 12px;
margin: 0px 0px 0px 0px;
width: 150px;
}
.cal
{
width: 150px;
background-color: #F8F8FF;
}

Drop me a line to have the PHP code hacked.

Hack : B2 News Aggregator

A small little tiny hack very useful if you want to use RSS / RDF news feeding.

This work based on the “MagpieRSS” RSS/RDF processor. I just create a small interface for WP.

Several functions are already ready :

  • Show all RSS news from the RSS table (only title) : ShowAllRss($MaxRss=10)
  • Show one RSS News from the RSS Table (only title) : ShowRSS($RssID=1,$MaxRss=10)
  • View all RSS news from the RSS table (title + Description) : ViewAllRSS($MaxRss=10)
  • View one RSS news from the RSS table (title + Description) : ViewRSSEntry($RssID=1, $MaxRss=10)

Write me a line to have the code.

New design, new sections soon available

As you saw, I am a little busy for the moment. At work, I am completely overloaded and also at home…
At work, I am working on a brand new project, at home, I am working a new Cline Website, on new templates, new designs, ….
So normally you should see the result of all that work very soon. I don’t know yet when but the only thing I am sure : it will be soon ! (I hope)

Comme vous l’avez constat

Cline area soon on the road !

This last week I worked on the “Cline” area. It is nearly ready. Soon it will be online.

I still have few things to fix and to write. And of course she has to write a lot of documents to have content ! As you know this is the more important for a site !

Depuis ce week-end, je travaille sur la partie de “Cline”. Son site est quasi termin

Random info to display from table

After a small delay, the promised hacks are out !

I wrote something very generic in order to be able to fill nearly all requirements !
This hack can handle what you want ! for the usual “Quote of the day”, the current “Book”, the “Movie”, the “link” as I said what ever ou want !

The function to call is :

the_genRandom(
$cTag, // Tag Type
$count=1, // Number of rows to display
$cCollectBefore=”, // Thing to display before anything else
$cCollectAfter=”, // Thing to display after everything
$cItemBefore=”, // Thing to display before each row
$cItemAfter=”, // Thing to display after each row
$cValBefore=”, // Thing to display before main value
$cValAfter=”, // Thing to display after main value
$cAssBefore=”, // Thing to display before the associated value
$cAssAfter=”) // Thing to display after the associated value

The table used must have at least the following structure :

id int(11) NOT NULL auto_increment,
KeyField varchar(15) NOT NULL default ”,
KeyValue tinytext NOT NULL,
KeyAssociated tinytext,
KeyCreated timestamp(14) NOT NULL,
PRIMARY KEY (id),
KEY KeyField (KeyField)
) TYPE=MyISAM;

The PHP code is very very difficult… ( less than 10 lines !!!!!!) ;)
Continue reading

Still under development…

Sorry but the hacks are not yet ready due to my wonderful week-end, we had to implement a release and that has taken all my ressources (poor little head) ;)

Anyway, those hack will be soon available. This time I prefer to say “I don’t know when” I hate that kind of writing but I have no choice ! :(

WordPress or b2Evolution

I am currently thinking to migrate everything to b2evolution.

For multiple reasons, the most important is probably the integrated multiple blogs management ! That will allow me to solve my problem with languages. Futhermore, the code itself looks better in b2evolution. Another very useful functionnality is the “hierarchy” in Categories.

Well, I don’t know ! We will see ! May be I will, during a certain time, think to this.

But my feeling is : “Why aren’t they merging those 2 developments ?”

Few new hacks under development

Soon, normally before the end of this week, a serie of small hacks will be available.

You will have :

- b2book: Last book read or currently reading with an image and a comment
- b2movie: Last movie seen and a comment on the movie
- b2quote: Quote of the day (or better : of the Moment)

Bient

WP: “Who Are You” Hack

This hack provide to the user his/her IP, the country associated with the “hostname” and finally the browser used. Of course this can be used to Monitoring / Statistic purpose…

In the “index.php”, you have to add : require_once(‘b2whoareyou.php’);
To get the country : < ?php echo WAY_country(); ?>
To get the Browser: < ?php echo WAY_browser(); ?>

Easy, no ?

Ce hack fournit