Topic: Font for captions in the mobile player

Hi, I understand that there are fewer options for mobile version of the player. I just want to confirm that setting the font for the captions is not one of those. Or would appreciate any guidance on how to do so.
Sorry if that has been answered before - I could not find this particular topic neither here nor in the FAQ.
Thanks in advance.
Peter

Last edited by skyredoubt (2011-07-05 15:01:58)

Re: Font for captions in the mobile player

There is no caption font setting for the Mobile Player.
However, you could use HTML formatting within the captions themselves to set the font face.
See here for details: http://simpleviewer.net/simpleviewer/su … l#custom_1
eg.

<caption><![CDATA[<font face="Times">Caption Text Goes Here</font>]]></caption>
Steven Speirs
SimpleViewer Support Team.

Re: Font for captions in the mobile player

Thanks, Steven!
I guess this cannot be done for Flickr galleries, right?
Speaking of which, there is something called flickrViewer.php, which works with simpleviewer 1.8 and creates the image data xml from flickr on the fly. This could be configured to add HTML tags like fonts that you mentioned. You could then add the output from flickrViewer.php to the flash variable as the image path.
Could something similar be employed for the current version?

Re: Font for captions in the mobile player

You could use phpFlickr to dynamically create an XML file on the fly incorporating HTML formatting in the captions.
phpFlickr can be found here: http://phpflickr.com/
Instructions on 'How to display your Flickr images using PHP' can be found here: http://www.burnmind.com/howto/how-to-di … -using-php

(1) Download phpFlickr from the link above and upload the files to your web server

(2) Use a PHP file as your galleryURL. Your embedding code would look something like this:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
flashvars.galleryURL="gallery.php";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

(3) Use the following as your 'gallery.php' file:

<?php
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<simpleviewergallery title="SimpleViewer-Pro Gallery">';
require_once("phpFlickr-3.1/phpFlickr.php");
$phpFlickrObj = new phpFlickr('your_Flickr_API_key_goes_here');
$user = $phpFlickrObj->people_findByUsername('your_Flickr_username_goes_here');
$photos = $phpFlickrObj->people_getPublicPhotos($user['id'], NULL, NULL, 500);
foreach ((array)$photos['photos']['photo'] as $photo)
{
  echo '<image imageURL="'.$phpFlickrObj->buildPhotoURL($photo, "large").'" thumbURL="'.$phpFlickrObj->buildPhotoURL($photo, "thumbnail").'" linkURL="" linkTarget="">';
  echo '<caption><![CDATA[<font face="Times">'.$photo['title'].'</font>]]></caption>';
  echo '</image>';
}
echo'</simpleviewergallery>';
?>

Please note that your web server must have PHP installed and you must have a Flickr API key.
http://www.flickr.com/services/api/keys/apply/

Steven Speirs
SimpleViewer Support Team.

Re: Font for captions in the mobile player

Great, thanks a lot!
This is exactly what I need.