Archive for the ‘Dev’ Category

MOSS: Get list/library GUID in IE 16Apr08 | 0 Comments

for quick getting GUID of MOSS list/library in IE can use this small bookmarklet:

javascript:window.clipboardData.setData(‘Text’, ctx.listName);alert(‘GUID in clipboard\n’+ctx.listName+”);

for saving to your IE just click to link with right mouse button and select “Add to Favorites”

MOSS: Get list/library GUID

based on GUIDy listu, knihoven dokumentu.. and info by Patrick Tisseghem

Coppermine character encoding vs MySQL charset / collation 12Apr08 | 0 Comments

If you have in MySQL charset which is not in Coppermine settings, then your visitors see in your photo gallery broken characters. For this problem exists simple FIX, which set correct charset and connection collation for communication with MySQL.
This fix is just add mysql_query(“SET NAMES ‘charset’ COLLATE ‘connection_collation’”); to functions.inc.php to cpg_db_connect function (before last row of function return $result;)