How to install and use the WordPress album plug-in NextGen Gallery

Source: Internet
Author: User

If you want to find an album plug-in for WP, I think NextGen gallery is the most suitable. I think this is one of the best WP plug-ins I have ever used and has powerful functions, it provides a perfect photo management method, and the operation is not complicated. When I installed it for the first time, I decided to use it, because this is exactly what I want. Below I will introduce the installation of this plug-in and some problems that may occur during use.

Functions available in NextGen Gallery

You can sort albums by dragging, just like widgets. What you want to pull is what you see!

The floating watermark function allows you to add text or images to a photo.

You can upload a compressed image file (ZIP) or directly import the image folder. This saves the upload time.

Built-in JavaScript effect, thickbox, greybox or lightbox, the effect is very dazzling.

You can edit CSS files on your own, and use CSS to create your own album style !!

Slideshow-automatic playback of images with many changes.

Sidebar widget-widgets for randomly displaying images can be displayed in sidebar.

You can call images in the article and integrate them perfectly with the attachments in the selection column on the editing page, which is too convenient.

Download and install NextGen Gallery

The latest version NextGen gallery version: 1.3.5 is available on the WP plug-in website.

Http://wordpress.org/extend/plugins/nextgen-gallery/

Download NextGen gallery version: 1.3.5

Http://downloads.wordpress.org/plugin/nextgen-gallery.zip

This is the official website of the plug-in:

Http://alexrabe.boelinger.com /? Page_id = 80

Fortunately, there are various language packs, and simplified Chinese are also included:

Http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/languages/

Http://www.tkjune.com/2009/04/13/simplified-chinese-language-pack-for-nextgen-gallery/

Download Simplified Chinese Language Pack for NextGen gallery 1.33

Http://www.tkjune.com/uploads/2009/04/nggallery-zh_cn.zip

In fact, to achieve the slide effect, you also need to download a flash file imagerotator.swf:

Http://www.longtailvideo.com/players/jw-image-rotator/

OK. Everything is ready. Start installation and use.

Upload NextGen gallery to the WP-content/Plugins directory;

Upload the Chinese package to the Lang directory in the NextGen gallery file;

Upload the imagerotator.swf of the actual images to the WP-content/uploads directory,

The last step is very important: use ftp to create a gallery folder in the WP-content directory and set its permissions to 777 (this is the default directory of the plug-in, in fact, you can change this directory in the options ).

After these files are uploaded, activate the NextGen gallery plug-in the background. At this time, an "Gallery" option will be added to the background management menu, which is the control panel of NextGen Gallery, A wide range of options.

Use of NextGen Gallery

NextGen's album structure is basically composed of gallery and album. gallery contains some pictures you want to classify, such as taking photos of each month as a gallery, such as "August" and "December. Album includes related gallery, which organizes the album of each month into an album named "2009" and then adds and sorts Each gallery. In other words, we can create several gallery as needed, or create several album, classify the image, upload it to each Gallery, and add it to the appropriate album.

1. Select the gallery tab-"add gallery/image"-"add Gallery". Here, name the new gallery "Fengjing" and click "OK.

Note: At this time, under your root directory WordPress/WP-content/Gallery, a new folder named "Fengjing" will be generated to store the image you are about to upload. You can upload images in three ways: Upload ZIP files, Import image directories, and directly upload images ". You can upload images as you like. Here, your gallery is created, but you still need to display it.

2. Select the album tab and add the album "album ". Select this album. On the left, you will see the album "Id 1: album" (here is album ID). In the middle, you will see all your gallery "ID: 1 | Fengjing "(gallery id here), you just need to drag the gallery you need to the album on the left. Don't forget to click "Update".

3. Create a page named "album" and enter the content

[Album = 1, exten] or [Album = 1, compact]

In "album = 1", 1 is the album ID of step 2. Compact and extend are two methods to expand the introduction. You can see them in your own experiment. More parameter call Method to the official demo of the plug-in site to see it will know: http://nextgen.boelinger.com/

To sum up, gallery is the root and actual directory under your root directory. Album (album) gives you a space for customization, you can combine different albums with different Gallery.

How to dynamically display album photos on the sidebar or any page

After NextGen gallery is installed, "NextGen slides", "NextGen Info", and "NextGen gallery gadgets" are displayed on the gadgets tab, you can select the proper widgets and place it in sidbar.

If you want to insert a photo album with a magic light on any page, you can also insert the PHP Code in the following format:

<? PHP
If (function_exists ('nggslideshowwidget '))
{Nggslideshowwidget ($ galleryid, $ width, $ height );}
?>

Parameter description:

$ Galleryid: album ID

$ Width: width

$ Height: Height

If you want to show that the album number is 3, the width is 320 PX, and the height is 240 PX, insert the following code:

<? PHP
If (function_exists ('nggslideshowwidget '))
{Nggslideshowwidget (3,320,240 );}
?>

All right, we are done. The powerful and easy-to-use WP album plug-in NextGen Gallery has been installed and set up. Of course, NextGen does more than that. For example, you can display a magic light and place it in your blog. When writing an article, you can easily call the pictures in the album, set the size, and support the dazzling display mode.

This tutorial photo album reference: http://www.chinado.net/blog/2007/08/15/p1249

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.