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

Mozilla issue..

Well, it seems that this new layout is not really supported by Mozilla:(

It is already better but not yet correct so…. I will work on it tonight. I hope I will have time….We will see.

Ben on dirait que cette nouvelle mise en page ne passe pas bien avec Mozilla:(

C’est d

Bilingual posting !

From now on, all posting to come will be bilingual : English / French. My wife isn’t fluent in English…
A partir d’aujourd’hui tous les postings seront bilingues (Anglias/Fran