OSDN Git Service

NP_gallery v0.95
[nucleus-jp/nucleus-plugins.git] / NP_gallery / tags / v0.95 / gallery / FAQ.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <html xmlns="http://www.w3.org/1999/xhtml">\r
3 <head>\r
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\r
5 <title>Untitled Document</title>\r
6 </head>\r
7 \r
8 <body>\r
9 <p>Q1. My &quot;Today&quot; and &quot;Archive&quot; links stop working when I am in the NP_gallery photo gallery!</p>\r
10 <p>A1.     the solution will have to be a hack, because of the way np_gallery works,\r
11 np_gallery is a SEPERATE blog, so as any seperate blog would do, it  would have a &quot;today&quot; page. but in the context of NP_gallery, &quot;today&quot;  doesnt make any sense. you will have to go into the skin template (like header.inc) and edit the links to be static instead of &lt;% ... %&gt; like nucleus would like.</p>\r
12 <p>Q2. I and error that looks like this:</p>\r
13 <p> mySQL error with query create temporary table temptableview (tempid int  unsigned not null auto_increment primary key) select pictureid,  thumb_filename from nucleus_plug_gallery_picture where albumid=2 order  by pictureid ASC: Access denied for user: 'u1000855_phalcon@' to  database 'db1000855_phalcon' <br />\r
14 mySQL error with query select tempid from temptableview where pictureid=2: Table 'db1000855_phalcon.temptableview' doesn't exist </p>\r
15 <p>A2. Find the line </p>\r
16 <p>sql_query('create temporary table temptableview (tempid int unsigned not null auto_increment primary key) '.$this-&gt;query);</p>\r
17 <p>in picture_class.php and change to (around line 157) </p>\r
18 <p>sql_query('create table temptableview (tempid int unsigned not null auto_increment primary key) '.$this-&gt;query);  </p>\r
19 <p>this is due to your server having temporary SQL tables turned off. this fix simply makes the table not temporary and would leave a trash table in your database, but its okay, it gets overwritten everytime its needed again. </p>\r
20 <p>Q3. why is there an empty space where my sidebar used to be on my photo gallery pages?</p>\r
21 <p>A3.     this is a common problem when you use a skin with a sidebar such as  leaf. what is happening is that even though you removed the sidebar  from the main index template, the container and content are sell  leaving room for a side bar.  <br />\r
22 </p>\r
23 <table align="center" border="0" cellpadding="3" cellspacing="1" width="90%">\r
24   <tbody>\r
25     <tr>\r
26       <td>Quote:</td>\r
27     </tr>\r
28     <tr>\r
29       <td>#container{ <br />\r
30         width: 100%; <br />\r
31         float: left; <br />\r
32         margin-right: -230px; <br />\r
33         } <br />\r
34         #content{ <br />\r
35         margin-right: 230px; <br />\r
36         padding: 25px 0; <br />\r
37         } <br />\r
38         #sidebar{ <br />\r
39         width: 230px; <br />\r
40         float: right; <br />\r
41         padding: 25px 0; <br />\r
42         text-align: left; <br />\r
43         }</td>\r
44     </tr>\r
45   </tbody>\r
46 </table>\r
47 <p> what you can do to fix this is put in an inline css style to override  the css file. ( you dont want to change the css file because that would  screw up the rest of your site, naturally) <br />\r
48   <br />\r
49   so go into the NPGallery skin (the clone you made of leaf) find the  main index template, and take a look at the code I made below <br />\r
50   <br />\r
51 </p>\r
52 <table align="center" border="0" cellpadding="3" cellspacing="1" width="90%">\r
53   <tbody>\r
54     <tr>\r
55       <td>Code:</td>\r
56     </tr>\r
57     <tr>\r
58       <td>&lt;%parsedinclude(head.inc)%&gt; <br />\r
59         &lt;!--header.inc--&gt; <br />\r
60         &lt;%parsedinclude(header.inc)%&gt; <br />\r
61         &lt;!--Start Main Index--&gt; <br />\r
62         &lt;div id=&quot;container&quot;&gt; <br />\r
63         &nbsp; &lt;div id=&quot;content&quot; style=&quot;width:700px&quot;&gt; <br />\r
64         &nbsp; &nbsp; &lt;div class=&quot;contentdiv&quot; style=&quot;width:700px&quot;&gt; <br />\r
65         &nbsp; &nbsp; &lt;h2 class=&quot;weblog&quot;&gt;Weblog&lt;/h2&gt; <br />\r
66         &nbsp; &nbsp; &nbsp; &lt;div class=&quot;divweblog&quot;&gt; <br />\r
67         &lt;!--Database Generated Content--&gt; <br />\r
68         &lt;%gallery(gnoo/short,10)%&gt; <br />\r
69         &lt;!--End Database Generated Content--&gt; <br />\r
70         &nbsp; &nbsp; &nbsp; &lt;/div&gt; <br />\r
71         &nbsp; &nbsp; &lt;/div&gt; <br />\r
72         &nbsp; &lt;/div&gt; <br />\r
73         &lt;/div&gt; <br />\r
74         &lt;!--sidebar.inc--&gt; <br />\r
75         <br />\r
76         &lt;!--footer.inc--&gt; <br />\r
77         &lt;%parsedinclude(footer.inc)%&gt;</td>\r
78     </tr>\r
79   </tbody>\r
80 </table>\r
81 <p><br />\r
82   <br />\r
83 notice the two inline styles for contentdiv and content <br />\r
84 <br />\r
85 style=&quot;width:700px&quot; <br />\r
86 <br />\r
87 go and add that to the main index template of your NPGallery skin  (change the 700px to the actual width for your skin, I think it is  actually 700px for leaf, but you can make it a little smaller, like  690px to avoid some IE6 bugs. keep tweaking it until its just right  because its different for everyone)</p>\r
88 <p>&nbsp;</p>\r
89 <p>Q4.                                  I've enabled fancyurls on my blog and everything works fine except the gallery.   </p>\r
90 <p>A4.                                  fancy URLs dont work unless your nucleus site root is the same at the site root. </p>\r
91 <p>&nbsp; </p>\r
92 </body>\r
93 \r
94 </html>\r