Uncategorized

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: Read more…

By Me, ago
Uncategorized

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 !!!!!!) ;) (more…)

By Me, ago
Uncategorized

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 Read more…

By Me, ago
Uncategorized

All around Tunisia

Few weeks ago, Cline and me went to Tunisia. We did a round-trip there all accross the country. The most beautiful part is the South (of course!) with the Desert ! the_Random_picture(5, 1,21,”,”);

By Me, ago