Image probleem
Ik ben zo een beetje een thema aan het scripten voor een communitysite en zit ik met het volgende probleem.
Code (php)
1
2
3
4
5
2
3
4
5
<td class='logobalk1'><img src='".THEME."images/blank.gif' width='1020' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk2'><img src='".THEME."images/blank.gif' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk3'><img src='".THEME."images/blank.gif' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk4'><img src='".THEME."images/blank.gif' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk5'><img src='".THEME."images/blank.gif' width='70' height='30' alt='' class='ffimgfix' /></td>
<td class='logobalk2'><img src='".THEME."images/blank.gif' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk3'><img src='".THEME."images/blank.gif' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk4'><img src='".THEME."images/blank.gif' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='logobalk5'><img src='".THEME."images/blank.gif' width='70' height='30' alt='' class='ffimgfix' /></td>
Als ik deze images. ( exacte images aangegeven in de css )
Logobalk 2 t/m 5 een link wil meegeven gaat dat niet.
Krijg altijd de error:
Parse error: syntax error, unexpected T_STRING in !!!
Weet iemand de juiste oplossing?
Mvg,
Tristan
( Ben overigens al een tijd lid maar was me accountinformatie vergeten + welke email ik had gebruik. *SHAME* )
Gewijzigd op 01/01/1970 01:00:00 door Tristan
Een unexpected T_STRING krijg je vaak omdat je een ; bent vergeten in de php code.
Laat anders wat van de php-code zien, zodat we de fout kunnen vinden.
Dit komma's staan niet goed bij allemaal;)
Het moet zo wezen
'".THEME."'
Ik denk dat het daar niet aan zal liggen.
Want hij opent het pad met ' en sluit het met '
".THEMA." is het pad van het thema ^^
Hier is de file opnieuw maar dan up-to-date en een andere vraag.
Iets naar ondere scrollen daar staat meer uitleg :-)
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<?php
if (!defined('e107_INIT')) { exit; }
// [multilanguage]
@include_once(e_THEME."blabla/languages/".e_LANGUAGE.".php");
@include_once(e_THEME."blabla/languages/English.php");
// [theme]
$themename = "blabla";
$themeversion = "1.0";
$themeauthor = "blabla";
$themeemail = "blabla";
$themewebsite = "blabla";
$themedate = "blabla";
$themeinfo = "blabla";
define("STANDARDS_MODE", TRUE);
$xhtmlcompliant = TRUE;
$csscompliant = TRUE;
define("IMODE", "dark");
define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");
define("USER_WIDTH","width:100%");
//[layout]
$layout = "_default";
// Add pages to custompages, means the left and right menus will be gone
if(
eregi(e_PAGE, "forum.php")
||eregi(e_PAGE, "forum_viewforum.php")
||eregi(e_PAGE, "forum_viewtopic.php")
||eregi(e_PAGE, "forum_post.php?nt")
||eregi(e_PAGE, "top.php?0.active")
||eregi(e_PAGE, "stats.php?1")
)
{
$register_sc[]='MARQUEE';
$HEADER = "
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix'/></td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /></td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='marquel'><img src='".THEME."images/blank.gif' width='53' height='25' alt='' class='ffimgfix' /></td>
<td class='marquem' style='width:100%;white-space:nowrap'>
{MARQUEE}
<td class='marquer'><img src='".THEME."images/blank.gif' width='270' height='25' alt='' class='ffimgfix' /></td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c1'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
<td class='r1m' style='width:100%;white-space:nowrap'>
<td class='r1_c3'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r2_c1'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
<td class='r2m' style='width:100%;white-space:nowrap'>
{SITELINKS_ALT=no_icons+noclick}
<td class='r2_c3'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r3_c1'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
<td class='r3m' style='width:100%;white-space:nowrap'>
<td class='r3_c3'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center' bgcolor='#171717'>
<tr>
<td class='r4_cleft'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
<td class='' style='width:0%; vertical-align:top;' class='ffimgfix' />
{SETSTYLE=leftmenu}
</td>
{SETSTYLE=default}
<td style='width:100%; vertical-align:top;'>
{MENU=2}
";
$FOOTER = "
</td>
<td class='r4_cright'><img src='".THEME."images/blank.gif' width='6' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r5_c1'><img src='".THEME."images/blank.gif' width='0' height='97' alt='' class='ffimgfix' /> </td>
<td class='r5m' style='width:100%;white-space:nowrap'>
<td class='r5_c3'><img src='".THEME."images/blank.gif' width='0' height='97' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r6_c1'><img src='".THEME."images/blank.gif' width='0' height='0' alt='' class='ffimgfix' /> </td>
<td class='r6m' style='width:100%;white-space:wrap'>
{SITEDISCLAIMER}
<td class='r6_c3'><img src='".THEME."images/blank.gif' width='0' height='0' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
// otherwise, use the following default header and footer
}else{
// Default Header and Footer -----------------------------------------------------------
$HEADER = "
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='marquel'><img src='".THEME."images/blank.gif' width='53' height='25' alt='' class='ffimgfix' /></td>
<td class='marquem' style='width:100%;white-space:nowrap'>
{MARQUEE}
<td class='marquer'><img src='".THEME."images/blank.gif' width='270' height='25' alt='' class='ffimgfix' /></td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c1'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
<td class='r1m' style='width:100%;white-space:nowrap'>
<td class='r1_c3'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r2_c1'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
<td class='r2m' style='width:100%;white-space:nowrap'>
{SITELINKS_ALT=no_icons+noclick}
<td class='r2_c3'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r3_c1'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
<td class='r3m' style='width:100%;white-space:nowrap'>
<td class='r3_c3'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center' bgcolor='#171717'>
<tr>
<td class='r4_cleft'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
<td class='' style='width:0%; vertical-align:top;' class='ffimgfix' />
{MENU=1}
</td>
{SETSTYLE=default}
<td style='width:100%; vertical-align:top;'>
{MENU=2}
";
$FOOTER = "
{MENU=3}
</td>
<td style='width:0%; vertical-align:top'>
{MENU=4}
</td>
<td class='r4_cright'><img src='".THEME."images/blank.gif' width='6' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r5_c1'><img src='".THEME."images/blank.gif' width='6' height='94' alt='' class='ffimgfix' /> </td>
<td class='r5m' style='width:100%;white-space:nowrap'>
<td class='r5_c3'><img src='".THEME."images/blank.gif' width='6' height='94' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r6_c1'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
<td class='r6m' style='width:100%;white-space:wrap'>
{SITEDISCLAIMER}
<td class='r6_c3'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
}
//[newsstyle]
$NEWSSTYLE = "
<table style='width:100%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='mt12'><img src='".THEME."images/blank.gif' width='103' height='31' alt='' class='ffimgfix' /> </td>
<td class='mtbg2' style='width:100%'>
{NEWSTITLE}
</td>
<td class='mt22'><img src='".THEME."images/blank.gif' width='6' height='31' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<div id='exp_news_{NEWSID}'>
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td class='mleft2'><img src='".THEME."images/blank.gif' width='6' alt='' />
<td class='middlemiddle2' style='width:100%'>
{NEWSBODY}
{EXTENDED}
<br />
<div class='divide_news' style='width:100%;white-space:nowrap'>
<img src='".THEME."images/blank.gif' width='10' height='12' alt='' />
</div>
</td>
<td class='mright2'><img src='".THEME."images/blank.gif' width='6' alt='' />
</td>
</tr>
</table>
</div>
<table style='width:100%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='md12'><img src='".THEME."images/blank.gif' width='6' height='33' alt='' class='ffimgfix' /> </td>
<td class='mdbg2' style='width:100%'>
<div class='newscomments' style='text-align:center'>
<span style='white-space:nowrap'>Gepost door {NEWSAUTHOR} op </span>
<span style='white-space:nowrap'>{NEWSDATE}</span>
</div>
<td class='md22'><img src='".THEME."images/blank.gif' width='6' height='33' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
//[newsbits]
define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", "Toevoegen/Lezen Reactie's: ");
define("COMMENTOFFSTRING", "Reactie's staan uit");
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
define("EXTENDEDSTRING", "Lees de rest ...");
define("POST_EXTENDEDSTRING", " ]<br />");
define("ICONMAIL", "iconmail.png");
define("ICONPRINT", "iconprint.png");
//[mainlinkstyle]
define(PRELINK, "<font color='#FFFFFF'>» ");
define(POSTLINK, "</div>");
define(LINKSTART, "");
//define(LINKEND, "<br /><img style='margin-top: 2px; margin-bottom: 2px;' width='190' height='1' src='".THEME."images/hr.png'><br />");
define(LINKEND, "<font color='#FFFFFF'>» ");
define(LINKALIGN, "center");
//[menustyle]
function tablestyle($caption, $text)
{
global $expand_menu_counter;
$expand_menu_counter += 1;
$expand_autohide_list = array("Select Theme");
if (in_array($caption, $expand_autohide_list)) { $expand_autohide = "display:none"; } else { unset($expand_autohide); }
echo "
<div style='cursor:pointer' onclick=\"expandit('exp_menu_$expand_menu_counter')\">
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='mt1'><img src='".THEME."images/blank.gif' width='30' height='32' alt='' class='ffimgfix' /> </td>
<td class='mtbg' style='width:100%;white-space:nowrap'>".$caption."</td>
<td class='mt2'><img src='".THEME."images/blank.gif' width='6' height='32' alt='' class='ffimgfix' /> </td>
</tr>
</table>
</div>
<div id='exp_menu_$expand_menu_counter' style='$expand_autohide'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='mleft'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
<td class='middlemiddle' style='width:100%'>".$text."</td>
<td class='mright'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
</tr>
</table>
</div>
<table style='width:100%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='md1'><img src='".THEME."images/blank.gif' width='6' height='10' alt='' class='ffimgfix' /> </td>
<td class='mdbg' style='width:100%'>
<img style='margin-top: auto; margin-bottom: auto; margin-left: auto; margin-right: auto;' src='".THEME."images/blank.gif' width='90' height='0' class='ffimgfix' />
<td class='md2'><img src='".THEME."images/blank.gif' width='6' height='10' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
}
// [commentstyle]
$COMMENTSTYLE = "
<table class='fborder' style='".USER_WIDTH."'>
<tr>
<td class='forumheader' style='width:20%; text-align:center'>{USERNAME}</td>
<td class='forumheader' style='width:80%; text-align:right'>{TIMEDATE}</td>
</tr>
<tr>
<td class='forumheader2' style='width:20%; text-align:center'>{AVATAR}<span class='smalltext'>{IPADDRESS}<br />{REPLY}</span></td>
<td class='forumheader3' style='width:80%; text-align:left'>{COMMENT}</td>
</tr>
</table>
";
// [chatboxstyle]
$CHATBOXSTYLE = "
<div class='spacer'>
<div class='forumheader3'>
<img src='".THEME."images/bullet2.png' alt='bullet' />
<b>{USERNAME}</b><br />
<span class='smalltext'>{TIMEDATE}</span><br />
{MESSAGE}
</div>
</div>";
?>
if (!defined('e107_INIT')) { exit; }
// [multilanguage]
@include_once(e_THEME."blabla/languages/".e_LANGUAGE.".php");
@include_once(e_THEME."blabla/languages/English.php");
// [theme]
$themename = "blabla";
$themeversion = "1.0";
$themeauthor = "blabla";
$themeemail = "blabla";
$themewebsite = "blabla";
$themedate = "blabla";
$themeinfo = "blabla";
define("STANDARDS_MODE", TRUE);
$xhtmlcompliant = TRUE;
$csscompliant = TRUE;
define("IMODE", "dark");
define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");
define("USER_WIDTH","width:100%");
//[layout]
$layout = "_default";
// Add pages to custompages, means the left and right menus will be gone
if(
eregi(e_PAGE, "forum.php")
||eregi(e_PAGE, "forum_viewforum.php")
||eregi(e_PAGE, "forum_viewtopic.php")
||eregi(e_PAGE, "forum_post.php?nt")
||eregi(e_PAGE, "top.php?0.active")
||eregi(e_PAGE, "stats.php?1")
)
{
$register_sc[]='MARQUEE';
$HEADER = "
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix'/></td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /></td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='marquel'><img src='".THEME."images/blank.gif' width='53' height='25' alt='' class='ffimgfix' /></td>
<td class='marquem' style='width:100%;white-space:nowrap'>
{MARQUEE}
<td class='marquer'><img src='".THEME."images/blank.gif' width='270' height='25' alt='' class='ffimgfix' /></td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c1'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
<td class='r1m' style='width:100%;white-space:nowrap'>
<td class='r1_c3'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r2_c1'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
<td class='r2m' style='width:100%;white-space:nowrap'>
{SITELINKS_ALT=no_icons+noclick}
<td class='r2_c3'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r3_c1'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
<td class='r3m' style='width:100%;white-space:nowrap'>
<td class='r3_c3'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center' bgcolor='#171717'>
<tr>
<td class='r4_cleft'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
<td class='' style='width:0%; vertical-align:top;' class='ffimgfix' />
{SETSTYLE=leftmenu}
</td>
{SETSTYLE=default}
<td style='width:100%; vertical-align:top;'>
{MENU=2}
";
$FOOTER = "
</td>
<td class='r4_cright'><img src='".THEME."images/blank.gif' width='6' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r5_c1'><img src='".THEME."images/blank.gif' width='0' height='97' alt='' class='ffimgfix' /> </td>
<td class='r5m' style='width:100%;white-space:nowrap'>
<td class='r5_c3'><img src='".THEME."images/blank.gif' width='0' height='97' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r6_c1'><img src='".THEME."images/blank.gif' width='0' height='0' alt='' class='ffimgfix' /> </td>
<td class='r6m' style='width:100%;white-space:wrap'>
{SITEDISCLAIMER}
<td class='r6_c3'><img src='".THEME."images/blank.gif' width='0' height='0' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
// otherwise, use the following default header and footer
}else{
// Default Header and Footer -----------------------------------------------------------
$HEADER = "
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix' /> </td>
<td class='r1_c3'><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='marquel'><img src='".THEME."images/blank.gif' width='53' height='25' alt='' class='ffimgfix' /></td>
<td class='marquem' style='width:100%;white-space:nowrap'>
{MARQUEE}
<td class='marquer'><img src='".THEME."images/blank.gif' width='270' height='25' alt='' class='ffimgfix' /></td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c1'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
<td class='r1m' style='width:100%;white-space:nowrap'>
<td class='r1_c3'><img src='".THEME."images/blank.gif' width='0' height='200' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r2_c1'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
<td class='r2m' style='width:100%;white-space:nowrap'>
{SITELINKS_ALT=no_icons+noclick}
<td class='r2_c3'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r3_c1'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
<td class='r3m' style='width:100%;white-space:nowrap'>
<td class='r3_c3'><img src='".THEME."images/blank.gif' width='6' height='12' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center' bgcolor='#171717'>
<tr>
<td class='r4_cleft'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
<td class='' style='width:0%; vertical-align:top;' class='ffimgfix' />
{MENU=1}
</td>
{SETSTYLE=default}
<td style='width:100%; vertical-align:top;'>
{MENU=2}
";
$FOOTER = "
{MENU=3}
</td>
<td style='width:0%; vertical-align:top'>
{MENU=4}
</td>
<td class='r4_cright'><img src='".THEME."images/blank.gif' width='6' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r5_c1'><img src='".THEME."images/blank.gif' width='6' height='94' alt='' class='ffimgfix' /> </td>
<td class='r5m' style='width:100%;white-space:nowrap'>
<td class='r5_c3'><img src='".THEME."images/blank.gif' width='6' height='94' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r6_c1'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
<td class='r6m' style='width:100%;white-space:wrap'>
{SITEDISCLAIMER}
<td class='r6_c3'><img src='".THEME."images/blank.gif' width='6' height='26' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
}
//[newsstyle]
$NEWSSTYLE = "
<table style='width:100%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='mt12'><img src='".THEME."images/blank.gif' width='103' height='31' alt='' class='ffimgfix' /> </td>
<td class='mtbg2' style='width:100%'>
{NEWSTITLE}
</td>
<td class='mt22'><img src='".THEME."images/blank.gif' width='6' height='31' alt='' class='ffimgfix' /> </td>
</tr>
</table>
<div id='exp_news_{NEWSID}'>
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td class='mleft2'><img src='".THEME."images/blank.gif' width='6' alt='' />
<td class='middlemiddle2' style='width:100%'>
{NEWSBODY}
{EXTENDED}
<br />
<div class='divide_news' style='width:100%;white-space:nowrap'>
<img src='".THEME."images/blank.gif' width='10' height='12' alt='' />
</div>
</td>
<td class='mright2'><img src='".THEME."images/blank.gif' width='6' alt='' />
</td>
</tr>
</table>
</div>
<table style='width:100%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='md12'><img src='".THEME."images/blank.gif' width='6' height='33' alt='' class='ffimgfix' /> </td>
<td class='mdbg2' style='width:100%'>
<div class='newscomments' style='text-align:center'>
<span style='white-space:nowrap'>Gepost door {NEWSAUTHOR} op </span>
<span style='white-space:nowrap'>{NEWSDATE}</span>
</div>
<td class='md22'><img src='".THEME."images/blank.gif' width='6' height='33' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
//[newsbits]
define("ICONSTYLE", "float: left; border:0");
define("COMMENTLINK", "Toevoegen/Lezen Reactie's: ");
define("COMMENTOFFSTRING", "Reactie's staan uit");
define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
define("EXTENDEDSTRING", "Lees de rest ...");
define("POST_EXTENDEDSTRING", " ]<br />");
define("ICONMAIL", "iconmail.png");
define("ICONPRINT", "iconprint.png");
//[mainlinkstyle]
define(PRELINK, "<font color='#FFFFFF'>» ");
define(POSTLINK, "</div>");
define(LINKSTART, "");
//define(LINKEND, "<br /><img style='margin-top: 2px; margin-bottom: 2px;' width='190' height='1' src='".THEME."images/hr.png'><br />");
define(LINKEND, "<font color='#FFFFFF'>» ");
define(LINKALIGN, "center");
//[menustyle]
function tablestyle($caption, $text)
{
global $expand_menu_counter;
$expand_menu_counter += 1;
$expand_autohide_list = array("Select Theme");
if (in_array($caption, $expand_autohide_list)) { $expand_autohide = "display:none"; } else { unset($expand_autohide); }
echo "
<div style='cursor:pointer' onclick=\"expandit('exp_menu_$expand_menu_counter')\">
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='mt1'><img src='".THEME."images/blank.gif' width='30' height='32' alt='' class='ffimgfix' /> </td>
<td class='mtbg' style='width:100%;white-space:nowrap'>".$caption."</td>
<td class='mt2'><img src='".THEME."images/blank.gif' width='6' height='32' alt='' class='ffimgfix' /> </td>
</tr>
</table>
</div>
<div id='exp_menu_$expand_menu_counter' style='$expand_autohide'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='mleft'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
<td class='middlemiddle' style='width:100%'>".$text."</td>
<td class='mright'><img src='".THEME."images/blank.gif' width='6' alt='' /> </td>
</tr>
</table>
</div>
<table style='width:100%' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='md1'><img src='".THEME."images/blank.gif' width='6' height='10' alt='' class='ffimgfix' /> </td>
<td class='mdbg' style='width:100%'>
<img style='margin-top: auto; margin-bottom: auto; margin-left: auto; margin-right: auto;' src='".THEME."images/blank.gif' width='90' height='0' class='ffimgfix' />
<td class='md2'><img src='".THEME."images/blank.gif' width='6' height='10' alt='' class='ffimgfix' /> </td>
</tr>
</table>
";
}
// [commentstyle]
$COMMENTSTYLE = "
<table class='fborder' style='".USER_WIDTH."'>
<tr>
<td class='forumheader' style='width:20%; text-align:center'>{USERNAME}</td>
<td class='forumheader' style='width:80%; text-align:right'>{TIMEDATE}</td>
</tr>
<tr>
<td class='forumheader2' style='width:20%; text-align:center'>{AVATAR}<span class='smalltext'>{IPADDRESS}<br />{REPLY}</span></td>
<td class='forumheader3' style='width:80%; text-align:left'>{COMMENT}</td>
</tr>
</table>
";
// [chatboxstyle]
$CHATBOXSTYLE = "
<div class='spacer'>
<div class='forumheader3'>
<img src='".THEME."images/bullet2.png' alt='bullet' />
<b>{USERNAME}</b><br />
<span class='smalltext'>{TIMEDATE}</span><br />
{MESSAGE}
</div>
</div>";
?>
Maar!
Nu is de vraag:
Hoe krijg ik in elk van deze afbeeldingen een link?
Als ik het welbekende a href code gebruikt krijg ik de error:
Parse error: syntax error, unexpected T_STRING in !!!
Kan iemand me helpen hoe ik dan alsnog een link in die afbeeldingen krijg?
Code (php)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix'/></td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /></td>
</tr>
</table>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix'/></td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /></td>
</tr>
</table>
Laat eens de code zien met de <a href.... ?
Geen compleet script.
SanThe.
Er werd mij om het hele script gevraagt om het goed te zien ^^
Dus vandaar..
Met de a href had ik het zo:
Code (php)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
<table style='width:1240px' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix'/></td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><a href="http://www.phphulp.nl/"><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /></a></td>
</tr>
</table>
<tr>
<td class='r1_c3'><img src='logobalk1.png' width='1020' height='30' alt='' class='ffimgfix'/></td>
<td class='r1_c3'><img src='logobalk2.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk3.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><img src='logobalk4.png' width='50' height='30' alt='' class='ffimgfix'/> </td>
<td class='r1_c3'><a href="http://www.phphulp.nl/"><img src='logobalk5.png' width='70' height='30' alt='' class='ffimgfix' /></a></td>
</tr>
</table>
Heb alleen de laatste even gedaan.
Tristan schreef op 28.12.2009 13:30:
@SanThe
Er werd mij om het hele script gevraagt om het goed te zien ^^
Dus vandaar..
Er werd mij om het hele script gevraagt om het goed te zien ^^
Dus vandaar..
Dan heb ik niks gezegd.... ;-)
Sorry.
<a href='http://www.phphulp.nl/'>
Erg dom van me. Vandaar ook de T_STRING error.
Bedankt allemaal!