Cheers mate! I suspect it is working, but now I'm encountering a lovely error from flickpic.php (which I didn't encounter in my test run).
[Notice] Undefined variable: user
Line 12 in /home/mwgd/public_html/mysite/code/flickpic.php
3 * randomFlickr.class.php usage sample
8 if ( !isset($_GET['imageUrl']) )
12 $x = new randomFlickr($user);
13 if ( $badge )
At no http://blog.kno.at/tools/one-random-photo-from-your-flickr-stream/ the author comments
In line 12 the randomFlickr-object is being created using a variable $user. This variable isnâ€™t specified here, therefore will just be ignored. Then we check if a badge-url has been specified in $badge. If so, we change the objectâ€™s badge url according.
A few words about the fetch()-method. It will check if thereâ€™s a user id specified (the ugly flickr user-id string, that is, due the badges donâ€™t seem to work with the usernames). If so, it uses the default badge-url for 1 random image and passes that user-id. Easy. If thereâ€™s no user specified, the badge-url will be used as-is.
But for some reason SS won't happily ignore it as he suggests? So as a stab in the dark, in Page.php I add
But then the new error is this:
[Notice] Undefined offset: 0
Line 282 in /home/mwgd/public_html/mysite/code/randomFlickr.class.php
273 $sBadge = $this->curlAccess($this->sBadgeUrl . ( $user ? "&user=$user" : '' ));
277 throw new Exception('allow_url_fopen disabled and CURL not found. Cannot access remote url '. $this->sBadgeUrl . ( $user ? "&user=$user" : '' ));
280 preg_match(self::REGEX_SRC, $sBadge, $matches);
282 $this->sSrc = $matches . '.jpg';
283 $this->iId = $matches;
285 preg_match(self::REGEX_URL, $sBadge, $matches);
286 $this->sUrl = $matches;
288 preg_match(self::REGEX_TITLE, $sBadge, $matches);
Any ideas on this? (apologies if I'm missing anything obvious...and also don't worry if you can't be bothered with this troubleshooting!)