tomyeah
05-15-2007, 12:00 PM
lots of people use bookmark engines like delicious, digg, technorati, reddit, magnolia, yahoo, google and whatever. all require url encoded strings at least for their href attrib in the link. i always modified my index.php but i think it should be included in the next pixelpost version. its pretty simple to just add for all tags (or as many as possible) an url encoded version.
sanple from my index.php
//old line
$tpl=ereg_replace("<EXIF_CAPTURE_DATE>",$capture_date,$tpl);
//added line below
$tpl=ereg_replace("<EXIF_CAPTURE_DATE_URL_ENCODED>",urlencode($capture_date),$tpl);
//old line
$tpl = ereg_replace("<IMAGE_TITLE>",$image_title,$tpl);
//added line below
$tpl=ereg_replace("<IMAGE_TITLE_URL_ENCODED>",urlencode($image_title),$tpl);
//old line
$tpl=ereg_replace("<SITE_TITLE>",$pixelpost_site_title,$tpl);
//added line below
$tpl=ereg_replace("<SITE_TITLE_URL_ENCODED>",urlencode($pixelpost_site_title),$tpl);
regards, tom.
sanple from my index.php
//old line
$tpl=ereg_replace("<EXIF_CAPTURE_DATE>",$capture_date,$tpl);
//added line below
$tpl=ereg_replace("<EXIF_CAPTURE_DATE_URL_ENCODED>",urlencode($capture_date),$tpl);
//old line
$tpl = ereg_replace("<IMAGE_TITLE>",$image_title,$tpl);
//added line below
$tpl=ereg_replace("<IMAGE_TITLE_URL_ENCODED>",urlencode($image_title),$tpl);
//old line
$tpl=ereg_replace("<SITE_TITLE>",$pixelpost_site_title,$tpl);
//added line below
$tpl=ereg_replace("<SITE_TITLE_URL_ENCODED>",urlencode($pixelpost_site_title),$tpl);
regards, tom.