-
-
Notifications
You must be signed in to change notification settings - Fork 16
Widget
Blog Widget
Your can add a small widget of photos from your site to your blog. The URL will be http://camera.phor.net/hacks/widget.php (replace camera.phor.net with your site) [edit]Adding Camera Life widget to your Blogger
To add this widget to your Blogger Select the Layout action on your blog
- Click Add a Gadget
- Select the HTML Gadget
- Cut and paste the code <iframe src="http://camera.phor.net/hacks/widget.php"></iframe> replacing camera.phor.net with your website name [edit]Showing random photos on your website using customizable PHP code
To show random photos on your website you can add the following code to a PHP page. You can customize this code by changing the variables. require '/var/www/life/camera/main.inc'; $cameralife->base_url = 'http://camera.phor.net'; $cameralife->GetFeature('photostore'); $photos = new Search(); $photos->SetPage(0, 3); $photos->SetSort('rand'); foreach ($photos->GetPhotos() as $photo) { $icon = $photo->GetIcon(); echo " <a href="".$icon['href']."">\n"; echo " <img src="".$icon['image']."" width="".$icon['width']."" height="".$icon['height']."" ". " alt="".htmlentities($icon['name'])."" />\n"; echo " \n"; }
You might also be interested in RSS feeds, which can be integrated to your blog.