A PHP enhanced photo album script that automates retrieval of all images within a specific directory to show with pagination links to cycle through each page. The script is placed within a desired image directory that automatically derives the file names of all images within it and creates a JavaScript array for further processing. As you upload or modify images within the directory, the script will automatically adapt and allows you to update your gallery with ease.
Click here to see the demo
Steps to follow:
1. Login to your Blogger Dashboard and navigate to Layout > Edit HTML
2. Insert the following section code below right after this section code here: ]]></b:skin> <script type="text/javascript" src="http://www.mysite.com/myimages/getalbumpics.php?id=templates"></script>
<script type="text/javascript">
//Optional, manual description for particular pictures inside album
//Syntax: albumid.desc[index]="Picture description here"
//eg: templates.desc[2]="This is description for the 3rd picture in the album"
//eg: templates.desc[6]="This is description for the 7th picture in the album"
</script>
<script type="text/javascript" src="ddphpalbum.js">
/*********************************************
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ *********************************************/
</script>
<link rel="stylesheet" type="text/css" href="ddphpalbum.css" />
Note: The above references getalbumpics.php, ddphpalbum.js, and ddphpalbum.css files. In which you will need to right click and save to upload to your own server. Keep in mind that you will need to add the .php file in a separate folder, the folder where your album images are located.
Configuration for the above section code
- The section code in blue that is underlined should be changed to the link where you PHP script and album images are located. At the end of the link, you see “templates”, this is the name of your folder and should be modified to fit yours. *Words not underlined should not be modified.
- The words in green is your folder name, where your script and images are located.
- Numbers in red represents image order and words in bold is your picture description, which can be modified.
3. Navigate over to Page Elements under the Layout tab to add an HTML/JavaScript gadget and copy/paste the following section code below in the box. <script type="text/javascript">
Configuration for the above section code
new phpimagealbum({
albumvar: templates, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [2,5],
sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
autodesc: "", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: false, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
thumbnailviewer.loadimage(thumbref.src, "fit2screen")
}
})
</script>
- Under albumvar: – change “templates” to that of your folders name containing the script and images
- Dimensions: 2 = columns and 5 = rows, these numbers should be modified to fit your template.
** Tutorial completed
Sunday, December 6, 2009
How to add a photo gallery using PHP
Saturday, December 5, 2009
Thursday, December 3, 2009
Blogspot Vision invites you to Google Wave
Subscribe by email to receive a Google Wave invite. Current email subscribers will receive an invite as well. What’s Google Wave? Google Wave is an online tool for real-time communication and collaboration. A wave can be both a conversation and a document where people can discuss and work together using richly formatted text, photos, videos, maps, and more. Google Wave is currently open to invites only.
Ok? But what exactly is a wave?
A wave is equal parts conversations and document
People can communicate and work together with richly formatted text, photos, videos, maps, and more.
A wave is shared
Any participant can reply anywhere in the message, edit the content and add participants at any point in the process. Then playback allows anyone to rewind the wave to see who said what and when.
A wave is live
With live transmission as you type, participants on a wave have faster conversations, see edits and interact with extensions in real-time.
When and where is the use of Google Wave used? What can it bring to the table that current technology can’t?
Organizing events
Keep a single copy of ideas, suggested itinerary, menu and RSVPs, rather than using many different tools. Use gadgets to add weather, maps, and more to the event.
Group projects
Collaboratively work in real-time to draft content, discuss and solicit feedback all in one place, rather than sending email attachments and creating multiple copies that get out of sync.
Photo sharing
Drag and drop photos directly from your desktop into a wave. Share with others. Use the slideshow viewer. Everyone on the wave can add their photos, too. It is easy to make a group photo album in Google Wave.
Meeting notes
Prepare a meeting agenda together, share the burden of taking notes and record decisions so you all leave on the same page. Team members can follow the minutes in real-time, or review the history using Playback.
Brainstorming
Bring lots of people into a wave to brainstorm – live concurrent editing makes the quantity of ideas grow quickly! It is easy to add rich content like videos, images, URLs, or even links to other waves. Discuss then work together to distill down the good ideas.
All work, no play = no fun. Of course, Google hooked up with Sudoku, so you can play interactive games while or after work
Add a gadget to a wave to play live interactive games with your friends. See everyone’s moves as they make them in a fast paced game or take a break and come back later.
Google Wave’s extensions
Labpixies – solve challenging Sudoku puzzles together and see who’s the best player.
Ribbit – ready. set. talk! Ribbit brings telephone conference calls to Google Wave.
6 rounds – enjoy a collaborative, real-time video chat experience. Share videos, play games, browse together, and have fun with this playful gadget.
lonely planet – co-create an itinerary: choose points of interest –including lonely planet recommendations, organize, share, print, or export to My Maps.
AccuWeather – the AccuWeather Wave Gadget is the perfect companion for trip planning. Select a location and date, and the gadget will return a forecast.
Google maps – collaborate on a map of placemarks, paths, and shapes with other participants. Great for planning events and trips.
Click here to visit Google Wave
* See what Google Wave can do for you and/or your business, academics, and network connections today.
Wednesday, December 2, 2009
How to add a scroll to top button with jQuery
This script adds ability to scroll to an absolute position (from top of page) or just a specific element on the page instead. For pages that are long winded, it’s a good idea to provide your viewers with an easy way to quickly navigate up to the top of the page. Also allows you to set it’s visibility on a readers screen: on start, in between, or when a user scrolls to the bottom.
Click here to see the demo
1. Login into your Blogger dashboard > Layouts > Edit HTML
2. Insert the following section code below into your template right after the section code: ]]></b:skin> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
</script>
<script type="text/javascript" src="scrolltopcontrol.js">
/*********************************************
* © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
*********************************************/
</script>
Note: The above references a “scrolltopcontrol.js” file plus a sample image: which you should download below (right click, and select "Save As")
3. Next, you will need to add the section code below right before the section code: <div id='header-wrapper'>
<a href="#top"></a>
4. Preview your template and if everything works fine, Save Template.
** Tutorial completed
Tuesday, December 1, 2009
Vertical navigation menu with sub menus dropping to the right of anchor
- Ability to style the currently selected anchor link using CSS, or for image anchors
- Global settings to set the delay before each menu disappears onMouseout
- Decides itself whether to enable shadows and a fade-in effect when the menu is revealed
Steps to follow:
1. Login into your Blogger dashboard > Layouts > Edit HTML
2. Insert the following section code below into your template right after the section code: ]]></b:skin>
<link href='http://www./scripts/anylinkcssmenu.css' rel='stylesheet' type='text/css'/>Note: The above code references the external .js file "anylinkcssmenu.js” , "anylinkcssmenu.js”, which you need to download (right click, and select "Save As").
<script src='http://www./scripts/anylinkcssmenu.js' type='text/javascript'>
</script>
<script type='text/javascript'>
//anylinkcssmenu.init("menu_anchors_class") ////Pass in the CSS class of anchor links (that contain a sub menu)
anylinkcssmenu.init("anchorclass")
</script>
<style type='text/css'>
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.urbangreymenu{
width: 170px; /*width of menu*/
}
.urbangreymenu .headerbar{
font: bold 13px Verdana;
color: white;
background: #606060;
margin-bottom: 0; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
text-indent: 10px;
padding: 7px 0 7px 0; /*31px is left indentation of header text*/
}
.urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of content*/
}
.urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}
.urbangreymenu ul li a{
font: normal 12px Arial;
color: black;
position: relative;
background: #E9E9E9;
display: block;
padding: 5px 0;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}
.urbangreymenu ul li a:visited{
color: black;
}
.urbangreymenu ul li a:hover, .urbangreymenu ul li a.selectedanchor{ /*hover state CSS*/
color: white;
background: black;
}
</style>
3. Navigate over to Layout > Page Elements to “Add a Gadget” and paste the following section code below into the box.
<div id="submenu3" class="anylinkcsscols">Note: Replace to your links and navigation, CSS can also be modified to fit your template.
<div class="column">
<b>title</b>
<ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul>
</div>
<div class="column">
<b>title</b>
<ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul>
</div>
<div class="column">
<b>title</b> <ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul>
</div>
</div><!--webbot bot="HTMLMarkup" endspan i-checksum="32594" -->
<p align="left"><b>Demo:(sub menus drop to the right of
anchor):</b></p>
<p align="left"><!--webbot bot="HTMLMarkup" startspan --><div class="urbangreymenu">
<h3 class="headerbar">Resources</h3> <ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul>
</div>
<div id="submenu2" style="width: 150px; background:#E9E9E9" class="anylinkcss">
<ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul>
</div><!--webbot bot="HTMLMarkup" endspan i-checksum="55946" --></p>
<p align="left"><!--4th anchor link-->
<p><a data-image="news.gif" data-overimage="newsover.gif" href=http://.com class="anchorclass" rel="submenu4"><img style="border-width:0" src="news.gif"/></a></p>
<div id="submenu4" style="background: #FEEBAB" class="anylinkcsscols">
<div class="column">
<b>title</b>
<ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul></div>
<b>title</b>
<div class="column">
<ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul></div>
<div class="column">
<b>title</b>
<ul>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
<li><a href="http://.com">link</a></li>
</ul>
</div>
</div>
4. Save the HTML and view your template.
** Tutorial completed