A small update is required to the CafePress box class - the one that shows a random product from your CafePress store. This is needed because there have been some additional updates to the HTML on the CafePress side, so the regular expression in the class needs updating. It's very easy; just change line 174 for the following:
PHP:
-
$this->cpPattern = '<a href="/'.$this->storeID.'\.(\d+)"><img .*?alt="([^\"]*)" src="([^"]*)"></a>.*?<a href="/'.$this->storeID.'\.(\d+)">(.*?)</a><br>\$([^<]*)';
Surely this is easy, right? Just set the height property in your css. Well, yes and no. That's all well and good if you know what height the elements are going to be, but quite often you might be pulling information out of a database in to the elements and you don't know how big that information is going to be. You can't use the overflow because that's not the designer's concept. No; they want three boxes on screen that all have the same height so they're all nice and ordered and symmetrical.
Continue reading 'Same height for elements'