Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.
fulldecent edited this page Aug 4, 2012 · 1 revision

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

  1. Click Add a Gadget
  2. Select the HTML Gadget
  3. 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.

Clone this wiki locally