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)
) ENGINE=MyISAM;

The PHP code is very very difficult… ( less than 10 lines !!!!!!) πŸ˜‰

Read moreRandom info to display from table

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 ! … Read moreWordPress or b2Evolution

WordPress .72 Gold installed

Why “Good luck” ? I am currently upgrading my WordPress .72beta to .72Gold. No special thing to say…except it goes very smoothly…. !!!! Pourquoi “Bonne Chance” ? Je suis en train de metre

Mozilla more compliant….

πŸ™‚ Finally, I cope with ! Yeap ! Very proud of me ! Only small remaining issue : those stupid scrollbars linked to DIV but if I remove them. Let’s say…. I am happy now ! πŸ™‚ πŸ™‚ Finalement j’y suis arriv

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