OSDN Git Service

NP_gallery 0.94
[nucleus-jp/nucleus-plugins.git] / NP_gallery / trunk / gallery / NP_Gallery_Guide.rtf
1 {\rtf1\ansi\ansicpg1252\deff0\deftab709{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}}\r
2 {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\keepn\sb240\sa283\lang1033\b\f0\fs28 Before we begin: \b0\i\fs22 (taken from Leng Lui's detailed instructions)\b\i0\fs28\par\r
3 \pard\sa120\fs24 A.\b0  Download the \i NP_gallery \i0 .zip pack from sircambridge\rquote s site. Unzip everthing and upload it to your /nucleus/plugins/ directory. (\i Upload both the NP_gallery.php file and the gallery folder with all its contents.)\i0\par\r
4 \b B. \b0 Next, install the plugin in the normal fashion through your Nucleus admin area. \par\r
5 \b C. \b0 Create a directory called /upload/ in your root directory (where you installed Nucleus) and \i chmod\i0  it to \i 777\i0  or \i 775\i0 . This will be used for mass uploading pictures. \par\r
6 \pard\keepn\sb240\sa283\b\fs28 Installation: \b0\i\fs22 (taken from Sircambridge's help instructions)\b\i0\fs28\par\r
7 \pard\sa120\b0\fs24 NP_Gallery installs as any other plugin in nucleus, but requires some extra steps to be fully functional.\par\r
8 \b First,\b0  clone your current skin and rename it NPGallery. Click on all of the skin parts EXCEPT for 'main index' (ie archive, archive list, etc), delete the contents and click 'update skin'. As 'main index' part is the only skin part used by the plugin, the other parts are superfluous and can be deleted. If you don't want to delete them, they will not interfere with the function of the plugin.\par\r
9 Now modify the main index part of NPGallery skin to display the gallery instead of your blog. Do this by replacing your <%blog(default/index,10)%> statement with <%gallery%>. This will make the gallery page look just like your blog page (with the obvious differences) including the right/left menus (if you have them). These can be omitted, or you can make your gallery page look totally different than your blog page. The NPGallery skin is what controls the look. Some skins such as leila do not have this in the skin template, but in some other file that is included, just copy and paste everything from that included file into the skin template and replace blog with gallery. \par\r
10 \b Second,\b0  create your gallery directory and make it writable. By default this directoy is media/gallery, but it can be any directory you want it to be, however if you change from the default directory you will need to change the gallery configuration in the admin area. To make the directory writable, chmod the directory to 0777. Search for one of the many tutorials on the web if you are unsure how to do this. If you want to use massuploads, create an empty directory /upload in your blog root and chmod it to 777. \par\r
11 \b Third,\b0  Create a new blog, and set that blog to use the "NPGallery" skin you created in step 1. Make a (mental) note of the blogid. It\rquote s visible in the browser\rquote s address bar. You\rquote ll need it to access the gallery later.\par\r
12 \pard (Remember to add the blogs php file to the root directory of your nucleus site. For instance if the name of your new blog is images, you will need to create the images.php file for that blog. Normally, you would open a text editor and enter the code below into it, then save the file as \i images.php\i0 . Now upload it to your nucleus root.\par\r
13 \par\r
14 \b\i <?php\par\r
15 $CONF['Self'] = 'images.php';\b0\i0\par\r
16 \b\i include('./config.php');\b0\i0\par\r
17 \b\i selectBlog('images');\b0\i0\par\r
18 \b\i selector();\b0\i0\par\r
19 \b\i ?>\b0\i0\par\r
20 \par\r
21 \b Finally\b0 , make a link to your gallery somewhere in your main blog page. This is usually something like www.mysite.com/index.php?blogid=2 where the number is whichever blog you created. For instance, assuming your blogid is 2 and the name of the blog is Images, you would place something like this under the navigation section.\par\r
22 \par\r
23 \b\i <li><a href="index.php?blogid=7">Images</a></li>\par\r
24 \b0\i0\par\r
25 Now you can configure your gallery by going to the gallery admin area. This initial configuring is important in getting the gallery to work. \par\r
26 \par\r
27 \b MiniFaq:(by wwx @ gamegaia.com)\par\r
28 \b0\par\r
29 \b 1.\b0  Where do I upload the \i gallery\i0  folder that comes with the \i NP_gallery.php\i0  file? \line\b A.\b0 In the Plugins directory. \line\line\b 2.\b0  Do I need to make an \i upload\i0  directory, and if so where does it go? \line\b A.\b0 Yes. \line\b A.\b0 Where Nucleus is installed or the root of your Nucleus site. \line\i (This means the folder \b upload\b0  should be created alongside the nucleus folder, not inside of it.)\i0  \line It should look like this from your FTP program: \line\b nucleus \line skins \line upload\b0  \line\line\b 3.\b0  Where do I make the media/gallery folders? \line\b A.\b0 In the same place where you made the upload folder. \line\i (Create a media folder then create a gallery folder inside of it.)\i0  \line\line\b 4.\b0  Where do I place the .php file when I create a new blog? \line\b A.\b0 In the same place where you created #2 and #3, which is alongside the nucleus folder, not inside of it. \line\line\b To summarize, you should see something like this:\b0  \line media/gallery \i <-the media folder with gallery as a subfolder\i0  \line nucleus \i <-main site installation\i0  \line skins \line upload \i <-the upload folder\i0  \line images.php \i <-the new blog you made\i0  \line\line\b and finally:\b0  \line nucleus/plugins/gallery \i <-gallery folder that came with the plugin\i0  \line nucleus/plugins/NP_gallery.php \i <-plugin\i0  \par\r
30 \line\par\r
31 }\r
32 \0