Welcome to Smilecouple.org

Member Login
Not a member yet? Sign Up!

Forgot Password !
Smilecouple.org

Computers

Video and Photos in one Gallery: Wordpress , NextGen, jquery, and shadowbox

by drtech on Feb.12, 2010, under Computers

The Problem:

After searching far and wide for a gallery script that would allow me to show my photos and videos inline, one after another, in a simple to use shadowbox or similar viewer, I finally come up with a solution. The problem is most galleries are only set up to handle photos and not videos. Or if they do, they don’t show in the same sideshow or thumbnail view. WPG2 is the only one out there that does this halfway, but to see the videos, you have to actually leave the page you put the video thumbnail on and view the actually gallery2 page which is painfully slow and clunky.

This is the file to use to overlay video thumbnails

The NextGen gallery plugin for WordPress seems to do a nice job with photos, but alas is still lacking video support. Along comes this post where I finally got started learning jquery: http://blog.creonfx.com/javascript/wordpress-video-galleries-with-nextgen-and-jquery Now with this code, the video thumbnails show on your posting of a gallery, but, the videos don’t show in sequence when you are thumbing through the photos in shadowbox. You must instead click individually on the thumbnail representing the video. But how do you know which one is the video? Another problem.

Now, for the solution.


Summary:

  • 1) Install NextGen Gallery and the Shadowbox plugin on your wordpress site
  • 2) Place the javascript code below into the footer.php of your theme near the end but before the < /body?> tag
  • 3) Place the film.php and film.gif files into your “/wp-content/gallery/” folder
  • 4) Put the url for your video in the “alt” textfield when you edit the NextGen gallery
  • 5) Start your “descriptions” with the text “Video” when you edit your NextGen gallery

  • Details:

    I modified the above script from Peter Velichkov to modify the “rel” tag (continue reading…)

    Leave a Comment more...

    Getting network drives usable on Windows7

    by drtech on Dec.26, 2009, under Computers

    Windows 7 is great. But for some reason Microsoft disabled indexing for network drives. This is a real problem when you store all your documents on a central server or network drive. To work around this and put your network drive in your “libraries” follow the instructions below:

    1. Create a folder on your hard drive for shares. i.e. c:\shares
    2. Create another folder in the above share. i.e. c:\shares\documents
    2. Link the Library to this folder.
    3. Delete the folder.
    4. Use the mklink in an elevated command prompt  (ie, run CMD with administrator privileges) to make a symbolic link between the local directory you linked earlier and the network share you are trying to link. Name the link the same as the folder you created above.
    i.e – mklink /d c:\shares\documents \\server\mydocuments
    5. Done. Now you have non-indexed UNC path as a library.

    Now you have the folder listed, but you can’t search it. For this, you need to install a patch released by Microsoft:

    windows7 desktop search – UNCFATPHInstaller (will not work on 64bit according to Microsoft…but I haven’t tried it)

    Then you should be able to go to Control Panel > Indexing Options > Advanced Button > UNC Tab and add the path for indexing.

    Leave a Comment :, , , more...

    Passwordless SSH Login for Backup on Linux computers

    by drtech on Dec.02, 2009, under Computers

    Because OpenSSH allows you to run commands on remote systems, showing you the results directly, as well as just logging in to systems it’s ideal for automating common tasks with shellscripts and cronjobs. One thing that you probably won’t want is to do though is store the remote system’s password in the script. Instead you’ll want to setup SSH so that you can login securely without having to give a password.

    Thankfully this is very straightforward, with the use of public keys.

    To enable the remote login (continue reading…)

    Leave a Comment more...

    Automatic SSH Login for Auto Backups

    by drtech on Jul.04, 2009, under Computers

    This if simple and a great asset if you are trying to do automatic backups with rsync or anything else where you need unattended backups or login. This is for Ubuntu Distributions of Linux:

    1) Generate RSA Key

    ssh-keygen -t rsa

    2) Copy the key to the computer you wish to login to automatically without a password:

    sudo scp ~/.ssh/id_rsa.pub USERNAME@IP:~/.ssh/authorized_keys
    (replace your username and IP address with your correct info)

    That’s it! Now you should be able to use SSH and not have to enter a password to login.

    Leave a Comment more...

    Visit our friends!

    A few highly recommended friends...