Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<title>Coppermine Photo Gallery - Thme upgrade guide</title>
5
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
6
<meta name="language"    content="en">
7
<meta name="author"      content="Coppermine dev team">
8
<meta name="copyright"   content="Coppermine dev team">
9
<meta name="description" content="Coppermine Photo Gallery project - Coppermine is an easily set-up, fast, feature-rich photo gallery script with mySQL database, user management, private galleries, automatic thumbnail creation, ecard feature and a template system for easy customization to match the rest of a site.">
10
<meta name="keywords"    content="photo,gallery,galery,image,coppermine,php,mysql,easy,feature,phpnuke,thumbnail,automatic,creation,gd,Image Magick,ecard">
11
<meta name="page-topic"    content="photo,gallery,galery,image,coppermine,php,mysql,easy,feature,phpnuke,thumbnail,automatic,creation,gd,Image Magick,ecard">
12
<meta http-equiv="Content-Style-Type" content="text/css">
13
<meta name="MSSmartTagsPreventParsing" content="true">
14
<meta http-equiv="imagetoolbar" content="no">
15
<!--
16
CVS version info:
17
$Id: theme.htm,v 1.7 2005/04/19 03:17:12 gaugau Exp $
18
-->
19
<style type=text/css>
20
 
21
body {
22
        font-size: 12px; background: #F7F7F7; margin: 2%; color: black; font-family: verdana, arial, helvetica, sans-serif;
23
        scrollbar-face-color: #DEE3E7;
24
        scrollbar-highlight-color: #FFFFFF;
25
        scrollbar-shadow-color: #DEE3E7;
26
        scrollbar-3dlight-color: #D1D7DC;
27
        scrollbar-arrow-color:  #006699;
28
        scrollbar-track-color: #EFEFEF;
29
        scrollbar-darkshadow-color: #98AAB1;
30
}
31
td {
32
        font-size: 12px
33
}
34
h1 {
35
        font-weight: bolder; font-size: 24px; color: #0E72A4; line-height: 120%; font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; text-decoration: none
36
}
37
h2 {
38
        font-size: 20px; color: #0E72A4; font-family: Arial, Helvetica, sans-serif; text-decoration: none;
39
}
40
h3 {
41
        font-weight: bolder; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #0E72A4;
42
}
43
h4 {
44
        font-weight: bold; font-size: 14px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; color: #0E72A4;
45
}
46
p {
47
        font-size: 12px; margin: 10px 10px 0px 0px; font-family: Verdana, Arial, Helvetica, sans-serif
48
}
49
pre {
50
        border-right: #999999 1px solid; padding-right: 5px; border-top: #999999 1px solid; padding-left: 5px; font-size: 12px; padding-bottom: 5px; margin: 10px 10px 0px 0px; border-left: #999999 1px solid; padding-top: 5px; border-bottom: #999999 1px solid; font-style: normal; font-family: "Courier New", Courier, mono; background-color: #E0E0E0
51
}
52
ul {
53
        padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 10px 0px 10px 5px; padding-top: 0px
54
}
55
ul.content {
56
        padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 5px 5px 0px 0px; padding-top: 0px
57
}
58
li {
59
        padding-right: 0px; margin-top: 4px; padding-left: 0px; list-style-position: outside; margin-bottom: 4px; padding-bottom: 0px; margin-left: 10px; padding-top: 0px;
60
}
61
li.content {
62
        padding-right: 0px; margin-top: 0px; padding-left: 0px; list-style-position: outside; margin-bottom: 5px; padding-bottom: 0px; margin-left: 10px; padding-top: 0px; list-style-type: none;
63
}
64
hr {
65
        border-right: #000000 0px solid; border-top: #000000 1px solid; border-left: #000000 0px solid; border-bottom: #000000 0px solid; height: 0px
66
}
67
.navbar {
68
        font-weight: bold; font-size: 10px; background: url(/coppermine/themes/pixel-rave-blue100/images/nav-bar-button.gif) #72a5cc no-repeat; vertical-align: middle; color: #A5C6DF; font-family: Arial, Helvetica, sans-serif
69
}
70
a.navbar {
71
        display: block; vertical-align: middle; width: 100px; color: #A5C6DF; line-height: 25px; position: relative; height: 25px; text-align: center; text-decoration: none
72
}
73
a.navbar:hover {
74
        color: #ffffff; text-decoration: none
75
}
76
 
77
.back {
78
        margin-top: 10px; font-size: 10px; margin-bottom: 10px
79
}
80
.important { color: red }
81
.menu1 {font-weight:bolder;font-stretch:expanded;font-size:120%}
82
.menu2 {font-weight:bold;font-stretch:normal;font-size:100%}
83
.menu3 {font-weight:normal;font-stretch:condensed }
84
</style>
85
</head>
86
<body>
87
<h1>Converting cpg1.2.x themes to cpg1.3.3</h1>
88
<p>To make your custom made theme from cpg1.2.0 work with cpg1.3.3, you'll have to change some places.<br />
89
Remember to back up your original files, so you can go back to a working version in case something goes wrong with the modifications.</p>
90
<ol>
91
<li>Create a new css class for the properties of the html around the intermediate sized pic (visible in displayimage.php):<br />
92
Edit style.css and find
93
<pre>.image {
94
        border-style: solid;
95
        border-width:1px;
96
        border-color: #000000;
97
        margin: 2px;
98
}
99
</pre>
100
Add after it
101
<pre>.imageborder {
102
        border: 1px solid #000000;
103
        background-color: #FFFFFF;
104
        margin-top: 30px;
105
        margin-bottom: 30px;
106
}
107
</pre>
108
</li>
109
<li>Create a new css class for the debug output:<br />
110
Edit style.css, go to the very end of the file and add this code:
111
<pre>.debug_text {
112
        border: #BDBEBD;
113
        background-color: #EFEFEF;
114
        width : 100%;
115
        margin : 0px;
116
}</pre></li>
117
<li>Create a new css class for the clickable options in the config:<br />
118
Edit style.css, go to the very end of the file and add this code:
119
<pre>.clickable_option {
120
        border-bottom : 1px dotted blue;
121
        cursor : hand;
122
}</pre></li>
123
<li>Create a new css class for the dropdown boxes for theme and language selection:<br />
124
Edit style.css, go to the very end of the file and add this code:
125
<pre>.listbox_lang {
126
        color: #000000;
127
        background-color: #D1D7DC;
128
        border: 1px solid #D1D7DC;
129
        font-size: 80%;
130
        font-family: Arial, Helvetica, sans-serif;
131
        vertical-align : middle;
132
}</pre></li>
133
<li>Choose a place where the language and theme selection should be located on your coppermine pages. It's recommended to do this even if you're not planning to actually use the language and theme selection options, since they can be enable/disabled at any time in Coppermine config:<br />
134
Edit template.html and find a place anywhere between <tt class="code">&lt;body&gt;</tt> and <tt class="code">&lt;/body&gt;</tt> where you want the selectors to appear. Add <tt class="code">{LANGUAGE_SELECT_LIST}</tt> for the language selection dropdown, <tt class="code">{LANGUAGE_SELECT_FLAGS}</tt> for the language-by-flag selector and <tt class="code">{THEME_SELECT_LIST}</tt> for the theme selection dropdown.</li>
135
<li>Make the header information of your local file match the version you have updated to.<br />
136
Edit theme.php and find
137
<pre>// Coppermine Photo Gallery 1.2.0                                            //</pre>
138
and change it to
139
<pre>// Coppermine Photo Gallery 1.3.3                                            //</pre>
140
</li>
141
<li>Find a place where the memberlist list should appear in your coppermine navigation. It's recommended to do this even if you're not planning to actually use the feature, since it can be enable/disabled at any time in Coppermine config.<br />
142
Edit theme.php and find
143
<pre>&lt;!-- END my_gallery --&gt;</pre>
144
and add after it
145
<pre>&lt;!-- BEGIN allow_memberlist --&gt;
146
                &lt;a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}"&gt;{MEMBERLIST_LNK}&lt;/a&gt;  ::
147
&lt;!-- END allow_memberlist --&gt;</pre>. You may have to adopt the html that is usually wrapped around your menu items for the memberlist menu item as well.</li>
148
<li>Find a place where the user FAQ should appear in your coppermine navigation. It's recommended to do this even if you're not planning to actually use the feature, since it can be enable/disabled at any time in Coppermine config.<br />
149
Edit theme.php and find
150
<pre>&lt;!-- END my_profile --&gt;</pre>
151
and add after it
152
<pre>&lt;!-- BEGIN faq --&gt;
153
                    &lt;a href="{FAQ_TGT}" title="{FAQ_TITLE}"&gt;{FAQ_LNK}&lt;/a&gt; ::
154
&lt;!-- END faq --&gt;</pre>. You may have to adopt the html that is usually wrapped around your menu items for the user faq menu item as well.</li>
155
<li>Find a place where the Ecards-Log should appear in your admin menu.<br />
156
Edit theme.php and find
157
<pre>&lt;td class="admin_menu"&gt;&lt;a href="banning.php" title=""&gt;{BAN_LNK}&lt;/a&gt;&lt;/td&gt;</pre> Add after it
158
<pre>&lt;td class="admin_menu"&gt;&lt;a href="db_ecard.php" title=""&gt;{DB_ECARD_LNK}&lt;/a&gt;&lt;/td&gt;</pre></li>
159
<li>Add clickable album feature:<br />
160
Edit theme.php and find
161
<pre>&lt;b&gt;{ALBUM_TITLE}&lt;/b&gt;</pre>
162
. Replace it with
163
<pre>&lt;a href="{ALB_LINK_TGT}" class="alblink"&gt;&lt;b&gt;{ALBUM_TITLE}&lt;/b&gt;&lt;/a&gt;</pre>
164
(This code is twice in theme.php, so you will have to replace it two times).
165
</li>
166
<li>Correct the missing link to tile.gif in the fimstrip display:<br />
167
Edit theme.php and find<br />
168
<pre>&lt;td valign="top" background='themes/igames/images/tile.gif' align="center" height='30'&gt;&amp;nbsp;&lt;/td&gt;</pre>.<br />
169
Replace <tt class="code">igames</tt> in this line with the name of your theme. This line exists twice in your theme.php - you'll have to change both times the reference from <tt class="code">igames</tt> to <tt class="code">your_theme</tt>.
170
</li>
171
<li>Copy the file <i>tile.gif</i> from any theme that comes with coppermine (e.g. <i>themes/default/images/tile.gif</i>) into them images-folder of your own custom theme (e.g. <i>themes/your_theme/images/</i>)</li>
172
<li>Add the Downloadable favorites option:<br />
173
Edit theme.php and find
174
<pre>// HTML template for thumbnails display</pre>
175
and add before it
176
<pre>// HTML template for title row of the fav thumbnail view (album title + download)
177
$template_fav_thumb_view_title_row = &lt;&lt;&lt;EOT
178
 
179
                        &lt;table width="100%" cellpadding="0" cellspacing="0"&gt;
180
                        &lt;tr&gt;
181
                                &lt;td width="100%" class="statlink"&gt;&lt;h2&gt;{ALBUM_NAME}&lt;/h2&gt;&lt;/td&gt;
182
                                &lt;td&gt;&lt;img src="images/spacer.gif" width="1"&gt;&lt;/td&gt;
183
                                &lt;td class="sortorder_cell"&gt;
184
                                        &lt;table height="100%" cellpadding="0" cellspacing="0"&gt;
185
                                                &lt;tr&gt;
186
                                                        &lt;td class="sortorder_options"&gt;&lt;span class="statlink"&gt;&lt;a href="zipdownload.php"&gt;{DOWNLOAD_ZIP}&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
187
                                                &lt;/tr&gt;
188
                                                &lt;/table&gt;
189
                                &lt;/td&gt;
190
                        &lt;/tr&gt;
191
                        &lt;/table&gt;
192
 
193
EOT;</pre>
194
Make sure there are no spaces in front of or after the <tt class="code">EOT;</tt> in the last line.</li>
195
<li>Replace hardcoded format of intermediate pic with css format: <br />
196
Edit theme.php and find
197
<pre>          &lt;table cellspacing="2" cellpadding="0" style="border: 1px solid #000000; background-color: #FFFFFF; margin-top: 30px; margin-bottom: 30px;"&gt;
198
                                &lt;tr&gt;
199
                                        &lt;td&gt;</pre>
200
and replace with
201
<pre>                        &lt;table cellspacing="2" cellpadding="0" class="imageborder"&gt;
202
                                &lt;tr&gt;
203
                                        &lt;td align="center"&gt;</pre>
204
</li>
205
<li>Move debug output from theme to functions:<br />
206
Edit theme.php and find
207
<pre>    if ($CONFIG['debug_mode']) {
208
        $time_end = getmicrotime();
209
        $time = round($time_end - $time_start, 3);
210
 
211
        $query_count = count($query_stats);
212
        $query_times = '';
213
        $total_query_time = 0;
214
        foreach ($query_stats as $qtime) {
215
            $query_times .= round($qtime, 3) . "s ";
216
            $total_query_time += $qtime;
217
        }
218
        $total_query_time = round($total_query_time, 3);
219
 
220
        starttable('100%', 'Debug info');
221
        echo "&lt;tr&gt;&lt;td class=\"tableb\"&gt;";
222
        echo "USER: &lt;pre&gt;";
223
        print_r($USER);
224
        echo "&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;td class=\"tableb\"&gt;";
225
        echo "&lt;tr&gt;&lt;td class=\"tableb\"&gt;";
226
        echo "USER DATA: &lt;pre&gt;";
227
        print_r($USER_DATA);
228
        echo "&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;td class=\"tableb\"&gt;";
229
        echo "&lt;tr&gt;&lt;td class=\"tableb\"&gt;";
230
        echo "Queries: &lt;pre&gt;";
231
        print_r($queries);
232
        echo "&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;td class=\"tableb\"&gt;";
233
        echo "GET :&lt;pre&gt;";
234
        print_r($HTTP_GET_VARS);
235
        echo "&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;td class=\"tableb\"&gt;";
236
        echo "POST :&lt;pre&gt;";
237
        print_r($HTTP_POST_VARS);
238
        echo "&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;td class=\"tableb\" &gt;";
239
        echo &lt;&lt;&lt;EOT
240
                Page generated in &lt;b&gt;$time&lt;/b&gt; seconds - &lt;b&gt;$query_count&lt;/b&gt; queries in &lt;b&gt;$total_query_time&lt;/b&gt; seconds - Album set : $ALBUM_SET
241
EOT;
242
        echo "&lt;/td&gt;&lt;/tr&gt;";
243
        echo "&lt;tr&gt;&lt;td class=\"tableb\"&gt;";
244
        echo "&lt;a href=\"phpinfo.php\"&gt;Advanced debug mode&lt;/a&gt; (phpinfo)";
245
        echo "&lt;/td&gt;&lt;/tr&gt;";
246
        endtable();
247
    }</pre>
248
and replace with
249
<pre>    if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {
250
    cpg_debug_output();
251
    }</pre>
252
</li>
253
<li>Add switches for memberlist and faq:<br />
254
Edit theme.php and find
255
<pre>    if (USER_ID || !$CONFIG['allow_user_registration']) {
256
        template_extract_block($template_main_menu, 'register');
257
    }</pre>and add after it
258
<pre>    if (!USER_ID || !$CONFIG['allow_memberlist']) {
259
        template_extract_block($template_main_menu, 'allow_memberlist');
260
    }
261
 
262
    if (!$CONFIG['display_faq']) {
263
        template_extract_block($template_main_menu, 'faq');
264
    }</pre>
265
</li>
266
<li>Enable new coppermine menu entries:<br />
267
Edit theme.php and find
268
<pre>        '{MY_GAL_LNK}' => $lang_main_menu['my_gal_lnk'],</pre>
269
and add after it
270
<pre>        '{MEMBERLIST_TGT}' => "usermgr.php",
271
        '{MEMBERLIST_TITLE}' => $lang_main_menu['memberlist_title'],
272
        '{MEMBERLIST_LNK}' => $lang_main_menu['memberlist_lnk'],
273
        '{FAQ_TGT}' => "faq.php",
274
        '{FAQ_TITLE}' => $lang_main_menu['faq_title'],
275
        '{FAQ_LNK}' => $lang_main_menu['faq_lnk'],</pre>
276
</li>
277
<li>Enable new admin menu entries:<br />
278
<pre>            '{BAN_LNK}' => $lang_gallery_admin_menu['ban_lnk'],</pre>
279
and add after it
280
<pre>            '{DB_ECARD_LNK}' => $lang_gallery_admin_menu['db_ecard_lnk'],</pre>
281
</li>
282
<li>Enable category thumbnail:<br />
283
Edit theme.php and find
284
<pre>    $template_noabl = template_extract_block($template_cat_list, 'catrow_noalb');
285
    $template = template_extract_block($template_cat_list, 'catrow');
286
    foreach($cat_data as $category) {
287
        if (count($category) == 2) {
288
            $params = array('{CAT_TITLE}' => $category[0],
289
                '{CAT_DESC}' => $category[1]
290
                );
291
            echo template_eval($template_noabl, $params);
292
        } elseif (isset($category['cat_albums']) && ($category['cat_albums'] != '')) {
293
            $params = array('{CAT_TITLE}' => $category[0],
294
                '{CAT_DESC}' => $category[1],
295
                '{CAT_ALBUMS}' => $category['cat_albums'],
296
                '{ALB_COUNT}' => $category[2],
297
                '{PIC_COUNT}' => $category[3],
298
                );
299
            echo template_eval($template, $params);
300
        } else {
301
            $params = array('{CAT_TITLE}' => $category[0],
302
                '{CAT_DESC}' => $category[1],
303
                '{CAT_ALBUMS}' => '',
304
                '{ALB_COUNT}' => $category[2],
305
                '{PIC_COUNT}' => $category[3],
306
                );
307
            echo template_eval($template, $params);
308
        }
309
    }</pre>
310
and replace with
311
<pre>    $template_noabl = template_extract_block($template_cat_list, 'catrow_noalb');
312
    $template = template_extract_block($template_cat_list, 'catrow');
313
    foreach($cat_data as $category) {
314
        if (count($category) == 3) {
315
            $params = array('{CAT_TITLE}' => $category[0],
316
                    '{CAT_THUMB}' => $category['cat_thumb'],
317
                '{CAT_DESC}' => $category[1]
318
                );
319
            echo template_eval($template_noabl, $params);
320
        } elseif (isset($category['cat_albums']) && ($category['cat_albums'] != '')) {
321
            $params = array('{CAT_TITLE}' => $category[0],
322
                '{CAT_THUMB}' => $category['cat_thumb'],
323
                '{CAT_DESC}' => $category[1],
324
                '{CAT_ALBUMS}' => $category['cat_albums'],
325
                '{ALB_COUNT}' => $category[2],
326
                '{PIC_COUNT}' => $category[3],
327
                );
328
            echo template_eval($template, $params);
329
        } else {
330
            $params = array('{CAT_TITLE}' => $category[0],
331
                '{CAT_THUMB}' => $category['cat_thumb'],
332
                '{CAT_DESC}' => $category[1],
333
                '{CAT_ALBUMS}' => '',
334
                '{ALB_COUNT}' => $category[2],
335
                '{PIC_COUNT}' => $category[3],
336
                );
337
            echo template_eval($template, $params);
338
        }
339
    }</pre>
340
</li>
341
<li>Enable favorites - global settings:<br>
342
Edit theme.php and find
343
<pre>    global $template_thumb_view_title_row, $lang_thumb_view, $template_tab_display, $template_thumbnail_view;</pre>
344
and replace with
345
<pre>    global $template_thumb_view_title_row,$template_fav_thumb_view_title_row, $lang_thumb_view, $template_tab_display, $template_thumbnail_view;
346
</pre>
347
</li>
348
<li>Enable favorites - switch:<br />
349
Edit theme.php and find
350
<pre>    $tabs_html = $display_tabs ? create_tabs($nbThumb, $page, $total_pages, $theme_thumb_tab_tmpl) : '';
351
    // The sort order options are not available for meta albums
352
    if ($sort_options) {
353
        $param = array('{ALBUM_NAME}' => $album_name,
354
            '{AID}' => $aid,
355
            '{PAGE}' => $page,
356
            '{NAME}' => $lang_thumb_view['name'],
357
            '{TITLE}' => $lang_thumb_view['title'],
358
            '{DATE}' => $lang_thumb_view['date'],
359
            '{SORT_TA}' => $lang_thumb_view['sort_ta'],
360
            '{SORT_TD}' => $lang_thumb_view['sort_td'],
361
            '{SORT_NA}' => $lang_thumb_view['sort_na'],
362
            '{SORT_ND}' => $lang_thumb_view['sort_nd'],
363
            '{SORT_DA}' => $lang_thumb_view['sort_da'],
364
            '{SORT_DD}' => $lang_thumb_view['sort_dd'],
365
            );
366
        $title = template_eval($template_thumb_view_title_row, $param);
367
    } else {
368
        $title = $album_name;
369
    }
370
 
371
    if ($mode == 'thumb') {
372
        starttable('100%', $title, $thumbcols);
373
    } else {
374
        starttable('100%');
375
    }
376
 
377
    echo $header;</pre>
378
and replace with
379
<pre>    $tabs_html = $display_tabs ? create_tabs($nbThumb, $page, $total_pages, $theme_thumb_tab_tmpl) : '';
380
    // The sort order options are not available for meta albums
381
    if ($sort_options) {
382
        $param = array('{ALBUM_NAME}' => $album_name,
383
            '{AID}' => $aid,
384
            '{PAGE}' => $page,
385
            '{NAME}' => $lang_thumb_view['name'],
386
            '{TITLE}' => $lang_thumb_view['title'],
387
            '{DATE}' => $lang_thumb_view['date'],
388
            '{SORT_TA}' => $lang_thumb_view['sort_ta'],
389
            '{SORT_TD}' => $lang_thumb_view['sort_td'],
390
            '{SORT_NA}' => $lang_thumb_view['sort_na'],
391
            '{SORT_ND}' => $lang_thumb_view['sort_nd'],
392
            '{SORT_DA}' => $lang_thumb_view['sort_da'],
393
            '{SORT_DD}' => $lang_thumb_view['sort_dd'],
394
            );
395
        $title = template_eval($template_thumb_view_title_row, $param);
396
    } else if ($aid == 'favpics' && $CONFIG['enable_zipdownload'] == 1) { //Lots of stuff can be added here later
397
       $param = array('{ALBUM_NAME}' => $album_name,
398
                             '{DOWNLOAD_ZIP}'=>$lang_thumb_view['download_zip']
399
                               );
400
       $title = template_eval($template_fav_thumb_view_title_row, $param);
401
    }else{
402
        $title = $album_name;
403
    }
404
 
405
 
406
    if ($mode == 'thumb') {
407
        starttable('100%', $title, $thumbcols);
408
    } else {
409
        starttable('100%');
410
    }
411
 
412
    echo $header;</pre>
413
</li>
414
<li>Clean up:<br />
415
Edit theme.php and find
416
<pre>    if ((!$template)) {
417
        $template = $template_film_strip;
418
        $thumb_cell = template_extract_block($template, 'thumb_cell');
419
        $empty_cell = template_extract_block($template, 'empty_cell');
420
        // $spacer = template_extract_block($template, 'spacer');
421
    }
422
    // if ($header == '') {}
423
    $cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
424
 
425
    $theme_thumb_tab_tmpl = $template_tab_display;
426
 
427
    if ($mode == 'thumb') {
428
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['pic_on_page']));
429
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'thumbnails.php?album=' . $aid . $cat_link . '&page=%d'));
430
    } else {
431
        $theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['user_on_page']));
432
        $theme_thumb_tab_tmpl['inactive_tab'] = strtr($theme_thumb_tab_tmpl['inactive_tab'], array('{LINK}' => 'index.php?cat=' . $cat . '&page=%d'));
433
    }
434
</pre>and replace with
435
<pre>    if ((!$template)) {
436
        $template = $template_film_strip;
437
        $thumb_cell = template_extract_block($template, 'thumb_cell');
438
        $empty_cell = template_extract_block($template, 'empty_cell');
439
    }
440
 
441
    $cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;</pre>
442
</li>
443
<li>gain some room for the admin menu to display the additional entries:<br />
444
Edit style.css and find
445
<pre>.admin_menu a {
446
        color: #000000;
447
        text-decoration: none;
448
        display: block;
449
        position: relative;
450
        padding-top: 1px;
451
        padding-bottom: 1px;
452
        padding-left: 10px;
453
        padding-right: 10px;
454
}</pre>Replace it with
455
<pre>.admin_menu a {
456
        color: #000000;
457
        text-decoration: none;
458
        display: block;
459
        position: relative;
460
        padding-top: 1px;
461
        padding-bottom: 1px;
462
        padding-left: 2px;
463
        padding-right: 2px;
464
}</pre></li>
465
<li>Replace some missing/wrong formating:<br />
466
Edit theme.php and find
467
<pre>
468
&lt;td class="tableh2" colspan="3"&gt;&lt;span class="catlink"&gt;&lt;b&gt;{CAT_TITLE}&lt;/b&gt;&lt;/span&gt;{CAT_DESC}&lt;/td&gt;</pre>. Replace it with
469
<pre>&lt;td class="tableh2" colspan="3"&gt;&lt;table border=0 &gt;&lt;tr&gt;&lt;td&gt;{CAT_THUMB}&lt;/td&gt;&lt;td&gt;&lt;span class="catlink"&gt;&lt;b&gt;{CAT_TITLE}&lt;/b&gt;&lt;/span&gt;{CAT_DESC}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;</pre>
470
</li>
471
<li>Replace some missing/wrong formating:<br />
472
Edit theme.php and find
473
<pre>&lt;td class="tableb"&gt;&lt;span class="catlink"&gt;&lt;b&gt;{CAT_TITLE}&lt;/b&gt;&lt;/span&gt;{CAT_DESC}&lt;/td&gt;</pre>. Replace it with
474
<pre>&lt;td class="tableb"&gt;&lt;table border=0 &gt;&lt;tr&gt;&lt;td&gt;{CAT_THUMB}&lt;/td&gt;&lt;td&gt;&lt;span class="catlink"&gt;&lt;b&gt;{CAT_TITLE}&lt;/b&gt;&lt;/span&gt;{CAT_DESC}&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;</pre>
475
</li>
476
<li>Add closing table to fix a bug:<br />
477
Edit theme.php and find
478
<pre>function theme_display_breadcrumb($breadcrumb, &$cat_data)
479
{
480
    /**
481
     * ** added breadcrumb as a seperate element
482
     */
483
    global $template_breadcrumb, $lang_breadcrumb;
484
 
485
    starttable('100%');
486
    if ($breadcrumb) {
487
        $template = template_extract_block($template_breadcrumb, 'breadcrumb');
488
        $params = array('{BREADCRUMB}' => $breadcrumb
489
            );
490
        echo template_eval($template, $params);
491
    }
492
}</pre>. Replace it with
493
<pre>function theme_display_breadcrumb($breadcrumb, &$cat_data)
494
{
495
    /**
496
     * ** added breadcrumb as a seperate element
497
     */
498
    global $template_breadcrumb, $lang_breadcrumb;
499
 
500
    starttable('100%');
501
    if ($breadcrumb) {
502
        $template = template_extract_block($template_breadcrumb, 'breadcrumb');
503
        $params = array('{BREADCRUMB}' => $breadcrumb
504
            );
505
        echo template_eval($template, $params);
506
    }
507
    endtable();
508
}</pre>
509
</li>
510
</ol>
511
<p>Save all your open files and upload them to your webserver; test-drive both as admin and as "regular" user.</p>
512
</body>
513
</html>