4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2016, 10:22:24 AM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [MOD] Private Message System (PMS) not supported anymore!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: «« « 1 ... 3 4 5 6 [7] 8 » »» Print
This topic has not yet been rated!
Author Topic: [MOD] Private Message System (PMS) not supported anymore!  (Read 88228 times)
IngoT
Newbie
*
Offline Offline

Posts: 49

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #90 on: June 04, 2003, 11:33:56 PM »

Hallo, ich habe vermutlich einen Fehler entdeckt, warscheinlich ist er noch keinem weiter aufgefallen. Hier mal die "Anleitung" wie der Fehler zustande kommt:

Schritte wie folgt: Im Ordner Posteingang...oder Gesendet... oder Postausgang

1. Keine Nachrichten ausgewählt -> auf den Button alle Nachrichten löschen gedrückt-> Nein gewählt-> wieder zurück

2. Eine Nachricht gewählt -> Button "Ausgewählte Nachrichten löschen" gedrückt -> der gleiche Dialog mit der Frage "ALLE löschen?" erscheint und alle Nachrichten sind weg.

Das ist ziemlich gemein! Ist das nur bei mir oder könnt Ihr diesen Fehler auch bestätigen?

Gruß Ingo.
Logged
IngoT
Newbie
*
Offline Offline

Posts: 49

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #91 on: June 13, 2003, 03:40:48 PM »

Hallo, bin ich der einzigste, der diese Problematik hat? Muß das Thema noch einmal nach oben schieben.

Gruß Ingo.
Logged
Slammer
Newbie
*
Offline Offline

Posts: 21

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #92 on: June 14, 2003, 12:52:29 PM »

it works, and it's GREAT!!  Laughing
Logged

http://www.mobile-snapshots.com
made a great snapshot with your mobile? upload it now!
lakeside
Full Member
***
Offline Offline

Posts: 123

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #93 on: June 17, 2003, 07:55:58 PM »

Okay, Im posting my page_header.php and my stats.php here in code so that hopefully someone else can help me diagnose why I dont get the popup box, but instead get the error message:
Warning: Cannot add header information - headers already sent by (output started at /home/xxx/xxx-www/gallery/includes/stats.php:83) in /home/xxx/xxx-www/gallery/includes/page_header.php on line 126

Heres my stats.php file:
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
<?PHP

//-----------------------------------------------------
//--- Show number of Users ----------------------------
//-----------------------------------------------------
   $sql = "SELECT COUNT(*) as users
          FROM ".USERS_TABLE."
          WHERE user_id <> ".GUEST;
  $row = $site_db->query_firstrow($sql);

  $total_users = "".$lang['users']."<B> ".$row['users']."</B>\n";
   
  $site_template->register_vars("total_users", $total_users);
unset($total_users);

//-----------------------------------------------------
//--- Hits --------------------------------------------
//-----------------------------------------------------
    $sql = "SELECT SUM(image_hits) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_hits = "".$lang['total_hits']."<B> ".$row['sum']."</B>\n";
   
  $site_template->register_vars("total_hits", $total_hits);
unset($total_hits);

//-----------------------------------------------------
//--- Votes -------------------------------------------
//-----------------------------------------------------
    $sql = "SELECT SUM(image_votes) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_votes = "".$lang['total_votes']."<B> ".$row['sum']."</B>\n";
   
  $site_template->register_vars("total_votes", $total_votes);
unset($total_votes);

//-----------------------------------------------------
//--- Downloads ---------------------------------------
//-----------------------------------------------------
    $sql = "SELECT SUM(image_downloads) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_downloads = "".$lang['total_downloads']."<B> ".$row['sum']."</B>\n";
   
  $site_template->register_vars("total_downloads", $total_downloads);
unset($total_downloads);

//-----------------------------------------------------
//--- Comments ----------------------------------------
//-----------------------------------------------------
    $sql = "SELECT SUM(image_comments) AS sum
          FROM ".IMAGES_TABLE;
  $row = $site_db->query_firstrow($sql);

  $sum = (isset($row['sum'])) ? $row['sum'] : 0;
  $total_comments = "".$lang['total_comments']."<B> ".$row['sum']."</B>\n";
   
  $site_template->register_vars("total_comments", $total_comments);
unset($total_comments);

//-----------------------------------------------------
//--- New Member --------------------------------------
//-----------------------------------------------------
//   $sql = "SELECT *
//          FROM ".USERS_TABLE."
//          WHERE user_level > ".USER_AWAITING."
//          ORDER by user_joindate DESC";
//  $row = $site_db->query_firstrow($sql);
//
 // $new_member = "Welcome to our newest member, ".(($row['user_id']) ? " <a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&user_id=".$row['user_id'])."\"><B>".$row['user_name']."</B></a>\n" : "<B>".$row['user_name']."</B>");
 // $site_template->register_vars("new_member", $new_member);
 // unset($new_member);


?>


And here is my entire page_header.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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File&#58; page_header.php                                      *
 *        Copyright&#58; &#40;C&#41; 2002 Jan Sorgalla                                *
 *            Email&#58; jan@4homepages.de                                    *
 *              Web&#58; http&#58;//www.4homepages.de                             *
 *    Scriptversion&#58; 1.7                                                  *
 *                                                                        *
 *    Never released without support from&#58; Nicky &#40;http&#58;//www.nicky.net&#41;   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen &#40;Lizenz.txt&#41; für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    &#40;Licence.txt&#41; for further information.                              *
 *                                                                        *
 *************************************************************************/
if &#40;!defined&#40;'ROOT_PATH'&#41;&#41; &#123;
  
die&#40;"Security violation"&#41;;
&#125;
//----------------------------------------------------- 
//--- Maintenance      -------------------------------- 
//----------------------------------------------------- 
$maintenance $config['maintenance'&#93;; 
$redirect_url TEMPLATE_PATH."/maintenance.html"
if &
#40;$maintenance&#41;&#123; 
  
header&#40;"Location&#58; ".$site_sess->url&#40;$redirect_url, "&"&#41;&#41;; 
  
exit; 
&
#125; 

//----------------------------------------------------- 
//--- End of Maintenance      ------------------------- 
//-----------------------------------------------------
// Cache Templates
$template_list 'header,footer,category_dropdown_form,user_logininfo,user_loginform';
if &
#40;isset&#40;$templates_used&#41; && $templates_used != ""&#41; &#123;
  
$template_list $template_list.",".$templates_used;
&
#125;
$site_template->cache_templates&#40;$template_list&#41;;
$waktu=date&#40;"l, j F Y"&#41;;
$site_template->register_vars&#40;"date",$waktu&#41;;
//-----------------------------------------------------
//--- Register Global Vars ----------------------------
//-----------------------------------------------------
$total_images 0;
$total_categories 0;
$auth_cat_sql['auth_viewcat'&#93;['IN'&#93; = 0;
$auth_cat_sql['auth_viewcat'&#93;['NOTIN'&#93; = 0;
if &#40;!empty&#40;$cat_cache&#41;&#41; &#123;
  
foreach &#40;$cat_cache as $key => $val&#41; &#123;
    
if &#40;check_permission&#40;"auth_viewcat", $key&#41;&#41; &#123;
      
$total_categories++;
      if &
#40;isset&#40;$val['num_images'&#93;&#41;&#41; &#123;
        
$total_images += $val['num_images'&#93;;
      
&#125;
      
else &#123;
        
$cat_cache[$key&#93;['num_images'&#93; = 0;
      
&#125;
      
$auth_cat_sql['auth_viewcat'&#93;['IN'&#93; .= ", ".$key;
    
&#125;
    
else &#123;
      
$auth_cat_sql['auth_viewcat'&#93;['NOTIN'&#93; .= ", ".$key;
    
&#125;
  
&#125;
&#125;

  
$user_cat_id ""
foreach&
#40;$cat_cache as $key => $val&#41;&#123; 
    
if &#40;$user_info['user_name'&#93; == $cat_cache[$key&#93;['cat_name'&#93;&#41; &#123;
        
$user_cat_id $key
        break; 
    &
#125; 
&#125; 
//----------------------------------------------------- 
//--- PMS --------------------------------------------- 
//----------------------------------------------------- 
$sql "SELECT COUNT&#40;pms_id&#41; AS total 
                FROM "
.PMS_TABLE.
                WHERE pms_to = "
.$user_info['user_id'&#93;." AND &#40;pms_type = ".PMS_SENT." OR pms_type = ".PMS_SDLT." OR pms_type = ".PMS_UNREAD."&#41;"; 
$result $site_db->query_firstrow&#40;$sql&#41;; 
$pms_inbox $result['total'&#93;; 
$sql "SELECT COUNT&#40;pms_id&#41; AS total 
                FROM "
.PMS_TABLE.
                WHERE pms_from = "
.$user_info['user_id'&#93;." AND pms_type = ".PMS_UNREAD; 
$result $site_db->query_firstrow&#40;$sql&#41;; 
$pms_outbox $result['total'&#93;; 
$sql "SELECT COUNT&#40;pms_id&#41; AS total 
                FROM "
.PMS_TABLE.
                WHERE pms_from = "
.$user_info['user_id'&#93;." AND &#40;pms_type = ".PMS_SENT." OR pms_type = ".PMS_RDLT."&#41;"; 
$result $site_db->query_firstrow&#40;$sql&#41;; 
$pms_sentbox $result['total'&#93;; 
$sql "SELECT COUNT&#40;pms_id&#41; AS new 
                FROM "
.PMS_TABLE.
                WHERE pms_to = "
.$user_info['user_id'&#93;." AND pms_type = ".PMS_UNREAD; 
$result $site_db->query_firstrow&#40;$sql&#41;; 
$pms_new "<a href=\"".$site_sess->url&#40;ROOT_PATH."pms.php"&#41;."\">".&#40;&#40;$result['new'&#93;&#41; ? "<blink>".$result['new'&#93;."</blink>" &#58; 0&#41;."</a>"; 
$pms preg_replace&#40;"/".$site_template->start."msg_new_count".$site_template->end."/siU", $pms_new, $lang['pms_link'&#93;&#41;; 
$pms preg_replace&#40;"/".$site_template->start."inbox".$site_template->end."/siU", "<a href=\"".$site_sess->url&#40;ROOT_PATH."pms.php"&#41;."\">".$lang['pms_inbox'&#93;."</a>", $pms&#41;; 
// PMS Boxes 
$blink "<script language=\"JavaScript\">\n<!--\nvar flg=0;\nfunction blink&#40;&#41;&#123;\nvar myElement=document.getElementById&#40;'blnk'&#41;;\nflg^=1;\nif&#40;flg==1&#41;&#123;\nmyElement.style.visibility='hidden';\n&#125;\nelse&#123;\nmyElement.style.visibility='visible';\n&#125;\ntimerID = setTimeout&#40; 'blink&#40;&#41;' , 500 &#41;;\n&#125;\n//-->\n</script>\n"
$show_inbox = &#40;$result['new'&#93;&#41; ? $blink."<span id=\"blnk\">".$lang['pms_inbox'&#93;."</span><script language=\"JavaScript\">blink&#40;&#41;;</script>" &#58; $lang['pms_inbox'&#93;; 
$inbox "<a href=\"".$site_sess->url&#40;ROOT_PATH."pms.php?action=inbox"&#41;."\" title=\"".$lang['pms_total'&#93;." &#40;".$pms_inbox."&#41;\">".$show_inbox."</a>"; 
$sentbox "<a href=\"".$site_sess->url&#40;ROOT_PATH."pms.php?action=sentbox"&#41;."\" title=\"".$lang['pms_total'&#93;." &#40;".$pms_sentbox."&#41;\">".$lang['pms_sentbox'&#93;."</a>"; 
$outbox "<a href=\"".$site_sess->url&#40;ROOT_PATH."pms.php?action=outbox"&#41;."\" title=\"".$lang['pms_total'&#93;." &#40;".$pms_outbox."&#41;\">".$lang['pms_outbox'&#93;."</a>"; 
$newpms "<a href=\"".$site_sess->url&#40;ROOT_PATH."pms.php?action=new"&#41;."\">".$lang['pms_new'&#93;."</a>"; 

$sql "SELECT pms_date 
                FROM "
.PMS_TABLE.
                WHERE pms_to = "
.$user_info['user_id'&#93;." AND pms_type = ".PMS_UNREAD." 
                
ORDER BY pms_date DESC"; 
$result = $site_db->query_firstrow&#40;$sql&#41;; 
$pms_popup_script = ""; 
$pms_popup_header = ""; 
if &#40;
$result && $user_info['user_pms_popup'&#93; && !ereg&#40;"pms.php", $self_url&#41;&#41; &#123; 
    
$cookie_name = &#40;defined&#40;"COOKIE_NAME"&#41;&#41; ? COOKIE_NAME &#58; "4images_"; 
    
$cookie_pmsnewpopup = isset&#40;$HTTP_COOKIE_VARS[$cookie_name.'pmsnewpopup'&#93;&#41; ? unserialize&#40;stripslashes&#40;$HTTP_COOKIE_VARS[$cookie_name.'pmsnewpopup'&#93;&#41;&#41; &#58; 0; 
    
$pmsnewpopup = &#40;isset&#40;$session_info['pmsnewpopup'&#93;&#41;&#41; ? $session_info['pmsnewpopup'&#93; &#58; $cookie_pmsnewpopup
    if &#40;
$pmsnewpopup < $result['pms_date'&#93;&#41; &#123; 
        
$cookie_expire = time&#40;&#41; + 60 * 60 * 24 * 90; 
        setcookie&#40;
$cookie_name.'pmsnewpopup', serialize&#40;$result['pms_date'&#93;&#41;, $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE&#41;; 
        
$site_sess->set_session_var&#40;"pmsnewpopup", $result['pms_date'&#93;&#41;; 
        
$pms_popup_script = "<script language=\"JavaScript\"> 
        <!-- 
        function confirm_newpm&#40;&#41; &#123; 
            input_box=confirm&#40;'"
.$lang['pms_popup_confirm'&#93;."'&#41;; 
            
if &#40;input_box==true&#41; &#123; // Output when OK is clicked 
                
second_box=confirm&#40;'".$lang['pms_popup_newwindow'&#93;."'&#41;; 
                
if &#40;second_box==true&#41; &#123; 
                    
window.open&#40;'".$site_sess->url&#40;ROOT_PATH."pms.php"&#41;."','pmnew','width=600,height=500,menubar=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,resizable=yes,top=50,left=50'&#41;; 
                
&#125; else &#123; 
                    
window.location='".$site_sess->url&#40;ROOT_PATH."pms.php"&#41;."'
                &
#125; 
            
&#125; else &#123; 
            // Output when Cancel is clicked 
            
&#125; 
        
&#125; 
        // --> 
        
</script>"; 
        $pms_popup_header = "onload=\"Javascript&#58;confirm_newpm&#40;&#41;\""; 
    &#125; 
&#125; 

$site_template->register_vars&#40;array&#40; 
    "pms_boxes" => &#40;$user_info['user_level'&#93; < USER&#41; ? "" &#58; $inbox."&nbsp;&nbsp;|&nbsp;&nbsp;".$sentbox."&nbsp;&nbsp;|&nbsp;&nbsp;".$outbox."&nbsp;&nbsp;|&nbsp;&nbsp;".$newpms, 
    "pms_popup_script" => $pms_popup_script, 
    "pms_popup_header" => $pms_popup_header, 
  "media_url" => MEDIA_PATH, 
"user_cat_url" => &#40;$user_cat_id&#41; ? "<a href=\"".$site_sess->url&#40;ROOT_PATH."categories.php?cat_id=".$user_cat_id&#41;."\" class=\"box2\">My Gallery</a>" &#58; "",
  "thumb_url" => THUMB_PATH,
  "icon_url" => ICON_PATH,
  "template_url" => TEMPLATE_PATH,
  "template_image_url" => TEMPLATE_PATH."/images",
  "template_lang_image_url" => TEMPLATE_PATH."/images_".$config['language_dir'&#93;,
  "site_name" => $config['site_name'&#93;,
  "site_email" => $config['site_email'&#93;,
  "self" => $site_sess->url&#40;$self_url&#41;,
  "self_full" => $site_sess->url&#40;$script_url."/".$self_url&#41;,
  "script_version" => SCRIPT_VERSION,
  "cp_link" => &#40;$user_info['user_level'&#93; != ADMIN&#41; ? "" &#58; "\n<p align=\"center\">[<a href=\"".$site_sess->url&#40;ROOT_PATH."admin/index.php"&#41;."\">Control Panel</a>&#93;</p>\n",
  "total_categories" => $total_categories,
  "total_images" => $total_images,
  "url_new_images" => $site_sess->url&#40;ROOT_PATH."search.php?search_new_images=1"&#41;,
  "url_top_images" => $site_sess->url&#40;ROOT_PATH."top.php"&#41;,
  "url_top_cat_images" => $site_sess->url&#40;ROOT_PATH."top.php".&#40;&#40;$cat_id && preg_match&#40;"/categories.php/", $self_url&#41;&#41; ? "?".URL_CAT_ID."=".$cat_id &#58; ""&#41;&#41;,
  "url_register" => &#40;!empty&#40;$url_register&#41;&#41; ? $site_sess->url&#40;$url_register&#41; &#58; $site_sess->url&#40;ROOT_PATH."register.php"&#41;,
  "url_search" => $site_sess->url&#40;ROOT_PATH."search.php"&#41;,
  "url_lightbox" => $site_sess->url&#40;ROOT_PATH."lightbox.php"&#41;,
  "url_control_panel" => &#40;!empty&#40;$url_control_panel&#41;&#41; ? $site_sess->url&#40;$url_control_panel&#41; &#58; $site_sess->url&#40;ROOT_PATH."member.php?action=editprofile"&#41;,
  "url_categories" => $site_sess->url&#40;ROOT_PATH."categories.php"&#41;,
  "url_home" => $site_sess->url&#40;ROOT_PATH."index.php"&#41;,
  "url_login" => &#40;!empty&#40;$url_login&#41;&#41; ? $site_sess->url&#40;$url_login&#41; &#58; $site_sess->url&#40;ROOT_PATH."login.php"&#41;,
  "url_logout" => &#40;!empty&#40;$url_logout&#41;&#41; ? $site_sess->url&#40;$url_logout&#41; &#58; $site_sess->url&#40;ROOT_PATH."logout.php"&#41;,
  "url_member" => &#40;!empty&#40;$url_member&#41;&#41; ? $site_sess->url&#40;$url_member&#41; &#58; $site_sess->url&#40;ROOT_PATH."member.php"&#41;,
  "url_upload" => &#40;!empty&#40;$url_upload&#41;&#41; ? $site_sess->url&#40;$url_upload&#41; &#58; $site_sess->url&#40;ROOT_PATH."member.php?action=uploadform"&#41;,
  "url_lost_password" => &#40;!empty&#40;$url_lost_password&#41;&#41; ? $site_sess->url&#40;$url_lost_password&#41; &#58; $site_sess->url&#40;ROOT_PATH."member.php?action=lostpassword"&#41;,
  "guest" => &#40;$user_info['user_level'&#93; == GUEST&#41; ? 1 &#58; 0
&#41;&#41;;

if &#40;!empty&#40;$additional_urls&#41;&#41; &#123;
  $register_array = array&#40;&#41;;
  foreach &#40;$additional_urls as $key => $val&#41; &#123;
    $register_array[$key&#93; = $site_sess->url&#40;$val&#41;;
  &#125;
  $site_template->register_vars&#40;$register_array&#41;;
&#125;

// Replace Globals in $lang
$lang = $site_template->parse_array&#40;$lang&#41;;

$site_template->register_vars&#40;array&#40;
  "lang_site_stats" => $lang['site_stats'&#93;,
  "lang_registered_user" => $lang['registered_user'&#93;,
  "lang_random_image" => $lang['random_image'&#93;,
  "lang_categories" => $lang['categories'&#93;,
  "lang_sub_categories" => $lang['sub_categories'&#93;,
  "lang_new_images" => $lang['new_images'&#93;,
  "lang_top_images" => $lang['top_images'&#93;,
  "lang_search" => $lang['search'&#93;,
  "lang_advanced_search" => $lang['advanced_search'&#93;,
  "lang_lightbox" => $lang['lightbox'&#93;,
  "lang_register" => $lang['register'&#93;,
  "lang_reregister" => $lang['reregister'&#93;,
  "lang_control_panel" => $lang['control_panel'&#93;,
  "lang_login" => $lang['login'&#93;,
  "lang_auto_login" => $lang['lang_auto_login'&#93;,
  "lang_logout" => $lang['logout'&#93;,
  "lang_lost_password" => $lang['lost_password'&#93;,
  "lang_user_name" => $lang['user_name'&#93;,
  "lang_password" => $lang['password'&#93;,
  "lang_go" => $lang['go'&#93;,
  "lang_images_per_page" => $lang['images_per_page'&#93;,
  "lang_user_online" => $lang['user_online'&#93;,
  "lang_user_online_detail" => $lang['user_online_detail'&#93;,
  "charset" => $lang['charset'&#93;,
  "direction" => $lang['direction'&#93;,
  "memberbar" => $lang['memberbar'&#93;
&#41;&#41;;

//-----------------------------------------------------
//--- Category Dropdown -------------------------------
//-----------------------------------------------------
$category_dropdown_selfjump = get_category_dropdown&#40;$cat_id, 1&#41;;
$site_template->register_vars&#40;"category_dropdown_selfjump", $category_dropdown_selfjump&#41;;
$category_dropdown_form = $site_template->parse_template&#40;"category_dropdown_form"&#41;;
$site_template->register_vars&#40;array&#40;"category_dropdown_form" => $category_dropdown_form&#41;&#41;;

$site_template->un_register_vars&#40;"category_dropdown_selfjump"&#41;;
unset&#40;$category_dropdown_selfjump&#41;;
unset&#40;$category_dropdown_form&#41;;

//-----------------------------------------------------
//--- Random Image ------------------------------------
//-----------------------------------------------------
$random_image = &#40;defined&#40;"SHOW_RANDOM_IMAGE"&#41; && SHOW_RANDOM_IMAGE == 0&#41; ? "" &#58; get_random_image&#40;&#41;;
$site_template->register_vars&#40;"random_image", $random_image&#41;;
unset&#40;$random_image&#41;;
//----------------------------------------------------- 
//--- Photo Of The Day -------------------------------- 
//----------------------------------------------------- 

$potd_image = &#40;defined&#40;"SHOW_POTD_IMAGE"&#41; && SHOW_POTD_IMAGE == 0&#41; ? "" &#58; get_potd_image&#40;&#41;; 
$site_template->register_vars&#40;"potd_image", $potd_image&#41;; 
$site_template->register_vars&#40;array&#40;"lang_potd_title" => $lang['potd_title'&#93;&#41;&#41;; 
switch &#40;POTD_SELECT_MODE&#41; &#123; 
    case "by_rating"    &#58; $site_template->register_vars&#40;array&#40;"lang_potd_type" => $lang['potd_type_rating'&#93;&#41;&#41;; break; 
    case "by_votes"     &#58; $site_template->register_vars&#40;array&#40;"lang_potd_type" => $lang['potd_type_votes'&#93;&#41;&#41;; break; 
    case "by_comments"  &#58; $site_template->register_vars&#40;array&#40;"lang_potd_type" => $lang['potd_type_comments'&#93;&#41;&#41;; break; 
    case "by_downloads" &#58; $site_template->register_vars&#40;array&#40;"lang_potd_type" => $lang['potd_type_downloads'&#93;&#41;&#41;; break; 
    case "by_hits"      &#58; $site_template->register_vars&#40;array&#40;"lang_potd_type" => $lang['potd_type_hits'&#93;&#41;&#41;; break; 
&#125; 
unset&#40;$potd_image&#41;; 

//--- End Photo Of The Day ----------------------------
//-----------------------------------------------------
//--- Set Paging Vars ---------------------------------
//-----------------------------------------------------
if &#40;isset&#40;$HTTP_POST_VARS['setperpage'&#93;&#41;&#41; &#123;
  $setperpage = intval&#40;$HTTP_POST_VARS['setperpage'&#93;&#41;;
  if &#40;$setperpage&#41; &#123;
    $site_sess->set_session_var&#40;"perpage", $setperpage&#41;;
    $session_info['perpage'&#93; = $setperpage;
  &#125;
&#125;

if &#40;isset&#40;$session_info['perpage'&#93;&#41;&#41; &#123;
  $perpage = $session_info['perpage'&#93;;
&#125;
else &#123;
  $perpage = ceil&#40;$config['default_image_rows'&#93; * $config['image_cells'&#93;&#41;;
&#125;

//-----------------------------------------------------
//--- Set Perpage Dropdown ----------------------------
//-----------------------------------------------------
$setperpage_dropdown = "\n<select name=\"setperpage\" class=\"setperpageselect\">\n";
for&#40;$i = 1; $i <= $config['custom_row_steps'&#93;; $i++&#41; &#123;
  $setvalue = $config['image_cells'&#93; * $i;
  $setperpage_dropdown .= "<option value=\"".$setvalue."\"";
    if &#40;$setvalue == $perpage&#41; &#123;
    $setperpage_dropdown .= " selected=\"selected\"";
  &#125;
  $setperpage_dropdown .= ">";
  $setperpage_dropdown .= $setvalue;
  $setperpage_dropdown .= "</option>\n";
&#125;
$setperpage_dropdown .= "</select>\n";
if &#40;$cat_id != 0&#41; &#123;
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"cat_id\" value=\"".$cat_id."\" />\n";
&#125;
if &#40;isset&#40;$show_result&#41; && $show_result == 1&#41; &#123;
  $setperpage_dropdown .= "<input type=\"hidden\" name=\"show_result\" value=\"1\" />\n";
&#125;
$site_template->register_vars&#40;"setperpage_dropdown", $setperpage_dropdown&#41;;
$setperpage_dropdown_form = $site_template->parse_template&#40;"setperpage_dropdown_form"&#41;;
$site_template->register_vars&#40;"setperpage_dropdown_form", $setperpage_dropdown_form&#41;;

$site_template->un_register_vars&#40;"setperpage_dropdown"&#41;;
unset&#40;$setperpage_dropdown&#41;;
unset&#40;$setperpage_dropdown_form&#41;;

//-----------------------------------------------------
//--- Add & Delete from Lists -------------------------
//-----------------------------------------------------
if &#40;$action == "addtolightbox" && $id&#41; &#123;
  if &#40;$user_info['user_level'&#93; >= USER&#41; &#123;
    $msg = &#40;add_to_lightbox&#40;$id&#41;&#41; ? $lang['lightbox_add_success'&#93; &#58; $lang['lightbox_add_error'&#93;;
  &#125;
  else &#123;
    $msg = $lang['lightbox_register'&#93;;
  &#125;
&#125;
if &#40;$action == "removefromlightbox" && $id&#41; &#123;
  if &#40;$user_info['user_level'&#93; >= USER&#41; &#123;
    $msg = &#40;remove_from_lightbox&#40;$id&#41;&#41; ? $lang['lightbox_remove_success'&#93; &#58; $lang['lightbox_remove_error'&#93;;
  &#125;
  else &#123;
    $msg = $lang['lightbox_register'&#93;;
  &#125;
&#125;
if &#40;$action == "clearlightbox"&#41; &#123;
  if &#40;$user_info['user_level'&#93; >= USER&#41; &#123;
    $msg = &#40;clear_lightbox&#40;&#41;&#41; ? $lang['lightbox_delete_success'&#93; &#58; $lang['lightbox_delete_error'&#93;;
  &#125;
  else &#123;
    $msg = $lang['lightbox_register'&#93;;
  &#125;
&#125;

//-----------------------------------------------------
//--- Save Rating -------------------------------------
//-----------------------------------------------------
if &#40;$action == "rateimage" && $id&#41; &#123;
  $rating = intval&#40;$HTTP_POST_VARS['rating'&#93;&#41;;
  $cookie_name = &#40;defined&#40;"COOKIE_NAME"&#41;&#41; ? COOKIE_NAME &#58; "4images_";
  $cookie_rated = isset&#40;$HTTP_COOKIE_VARS[$cookie_name.'rated'&#93;&#41; ? unserialize&#40;stripslashes&#40;$HTTP_COOKIE_VARS[$cookie_name.'rated'&#93;&#41;&#41; &#58; array&#40;&#41;;
  if &#40;$rating && $rating <= MAX_RATING && $id&#41; &#123;
    if &#40;!isset&#40;$session_info['rated_imgs'&#93;&#41;&#41; &#123;
      $session_info['rated_imgs'&#93; = $site_sess->get_session_var&#40;"rated_imgs"&#41;;
    &#125;    
    $split_list = array&#40;&#41;;
    if &#40;!empty&#40;$session_info['rated_imgs'&#93;&#41;&#41; &#123;
      $split_list = explode&#40;" ", $session_info['rated_imgs'&#93;&#41;;
    &#125;
    if &#40;!in_array&#40;$id, $split_list&#41; && !in_array&#40;$id, $cookie_rated&#41;&#41; &#123;
      $session_info['rated_imgs'&#93; .= " ".$id;
      $session_info['rated_imgs'&#93; = trim&#40;$session_info['rated_imgs'&#93;&#41;;
      $site_sess->set_session_var&#40;"rated_imgs", $session_info['rated_imgs'&#93;&#41;;
      $cookie_rated[&#93; = $id;
      $cookie_expire = time&#40;&#41; + 60 * 60 * 24 * 4;
      setcookie&#40;$cookie_name.'rated', serialize&#40;$cookie_rated&#41;, $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE&#41;;
      update_image_rating&#40;$id, $rating&#41;;
      $msg = $lang['voting_success'&#93;;
    &#125;
    else &#123;
      $msg = $lang['already_voted'&#93;;
    &#125;
  &#125;
  else &#123;
    $msg = $lang['voting_error'&#93;;
  &#125;
&#125;

//-----------------------------------------------------
//--- Parse Header & Footer ---------------------------
//-----------------------------------------------------
if &#40;isset&#40;$main_template&#41; && $main_template&#41; &#123;
  $header = $site_template->parse_template&#40;"header"&#41;;
  $footer = $site_template->parse_template&#40;"footer"&#41;;
  $site_template->register_vars&#40;array&#40;
    "header" => $header,
    "footer" => $footer
  &#41;&#41;;
  unset&#40;$header&#41;;
  unset&#40;$footer&#41;;
&#125;

//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
if &#40;$user_info['user_level'&#93; >= USER&#41; &#123;
  $site_template->register_vars&#40;"lang_loggedin_msg", preg_replace&#40;"/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'&#93;, $lang['lang_loggedin_msg'&#93;&#41;&#41;;
  $user_box = $site_template->parse_template&#40;"user_logininfo"&#41;;
  $site_template->register_vars&#40;array&#40;
    "user_box" => $user_box,
    "user_loggedin" => 1,
    "user_loggedout" => 0,
    "is_admin" => &#40;$user_info['user_level'&#93; == ADMIN&#41; ? 1 &#58; 0

  &#41;&#41;;  
  $site_template->un_register_vars&#40;"user_logininfo"&#41;;
  unset&#40;$user_box&#41;;
&#125;
else &#123;
  $user_box = $site_template->parse_template&#40;"user_loginform"&#41;;
  $site_template->register_vars&#40;array&#40;
    "user_box" => $user_box,
    "user_loggedin" => 0,
    "user_loggedout" => 1,
    "is_admin" => 0
  &#41;&#41;;
  $site_template->un_register_vars&#40;"user_loginform"&#41;;
  unset&#40;$user_box&#41;;
&#125;
?>
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 560

mmm PHP...


View Profile WWW
« Reply #94 on: June 18, 2003, 12:17:47 AM »

it didnt give any error messages, but popup didnt showed up either...can I see your site?
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
lakeside
Full Member
***
Offline Offline

Posts: 123

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #95 on: June 18, 2003, 12:44:45 AM »

URL sent in private (to protect the innocent) hehehehe
Logged
spoiledRHOtten
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #96 on: June 21, 2003, 10:10:39 PM »

OKay...I have a style question.

The PMS Boxes are set up to show like this:

INbox | Sentbox | Outbox | New Message

okay...that's great...

but what if in a different template... I want it to show up as

Inbox{br}
Sentbox{br}
Outbox{br}
New Message{br}

I would like to keep the original set up...it's just that in a different template, I'd like them to show up straight down instead of side by side.

Any ideas?
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 560

mmm PHP...


View Profile WWW
« Reply #97 on: June 21, 2003, 11:19:15 PM »

sorry, its not possible in current version, the boxes created in .php files...
will change it in next version Wink
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
spoiledRHOtten
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #98 on: June 21, 2003, 11:20:53 PM »

Quote from: V@no   [Expand]
sorry, its not possible in current version, the boxes created in .php files...
will change it in next version Wink


*CHEESE* I figured out how to do it. Smile
Logged
spoiledRHOtten
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #99 on: June 23, 2003, 03:03:05 AM »

what about this?

Is there a way to include the from user's avatar in the PM?

Most of my users upload their own photos as their avatars. It would be great if that could be visible in the PM as it is in the Comments.

Any ideas how?
Logged
Tarps
Pre-Newbie

Offline Offline

Posts: 1

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #100 on: March 11, 2005, 07:26:00 PM »

hm dead link ?! Shocked
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 560

mmm PHP...


View Profile WWW
« Reply #101 on: March 12, 2005, 12:11:19 AM »

sorry, this mod is not supported for a year now, there was version 2 which is different from this...

Sorry, please wait a few days (or maybe weeks) untill I post the v2 instructions.
If u installed this mod already, I'd suggest u uninstall it (u'll need to do so anyway if u want to use v2)
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Tarzan
Pre-Newbie

Offline Offline

Posts: 6

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #102 on: May 16, 2005, 02:44:12 AM »

Hallo zusammen,

ich kann nach der installation des Mods meine Galerie nicht mehr öffnen. Bekomme folgende Fehlermeldung:

Parse error: parse error, unexpected T_STRING in /mnt/kw2/08/926/00000017/htdocs/geschuetzt/pics/4Images/4images/includes/page_header.php on line 116


die page_header.php sieht in dem Bereich folgendermaßen aus:

$result = $site_db->query_firstrow($sql);
$pms_new = "<a href=\"".$site_sess->url(ROOT_PATH."pms.php")."\">".(($result['new']) ? "<blink>".$result['new']."</blink>" : 0)."</a>";
$pms = preg_replace("/".$site_template->start."msg_new_count".$site_template->end."/siU", $pms_new, $lang['pms_link']);
$pms = preg_replace("/".$site_template->start."inbox".$site_template->end."/siU", "<a href=\"".$site_sess->url(ROOT_PATH."pms.php")."\">".$lang['pms_inbox']."</a>", $pms);
// PMS Boxes
$blink = "<script language=\"JavaScript\">\n<!--\nvar flg=0;\nfunction blink(){\nvar myElement=document.getElementById('blnk');\nflg^=1;\nif(flg==1){\nmyElement.style.visibility='hidden';\n}\nelse{\nmyElement.style.visibility='visible';\n}\ntimerID = setTimeout( 'blink()' , 500 );\n}\n//-->\n</script>\n";
$show_inbox = ($result['new']) ? $blink."<span id=\"blnk\">".$lang['pms_inbox']."</span><script language=\"JavaScript\">blink();</script>" : $lang['pms_inbox'];
$inbox = "<a href=\"".$site_sess->url(ROOT_PATH."pms.php?action=inbox")."\" title=\"".$lang['pms_total']." (".$pms_inbox.")\">".$show_inbox."</a>";
$sentbox = "<a href=\"".$site_sess->url(ROOT_PATH."pms.php?action=sentbox")."\" title=\"".$lang['pms_total']." (".$pms_sentbox.")\">".$lang['pms_sentbox']."</a>";
$outbox = "<a href=\"".$site_sess->url(ROOT_PATH."pms.php?action=outbox")."\" title=\"".$lang['pms_total']." (".$pms_outbox.")\">".$lang['pms_outbox']."</a>;
$newpms = "<a href=\"".$site_sess->url(ROOT_PATH."pms.php?action=new")."\">".$lang['pms_new']."</a>";

$sql = "SELECT pms_date
                                    FROM ".PMS_TABLE."
                                    WHERE pms_to = ".$user_info['user_id']." AND pms_type = ".PMS_UNREAD."
                                    ORDER BY pms_date DESC";
$result = $site_db->query_firstrow($sql);
$pms_popup_script = "";
$pms_popup_header = "";
if ($result && $user_info['user_pms_popup'] && !ereg("pms.php", $self_url)) {
         $cookie_name = (defined("COOKIE_NAME")) ? COOKIE_NAME : "4images_";
         $cookie_pmsnewpopup = isset($HTTP_COOKIE_VARS[$cookie_name.'pmsnewpopup']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookie_name.'pmsnewpopup'])) : 0;
         $pmsnewpopup = (isset($session_info['pmsnewpopup'])) ? $session_info['pmsnewpopup'] : $cookie_pmsnewpopup;
         if ($pmsnewpopup < $result['pms_date']) {

Die fettgedruckte ist Zeile 116


Ich hoffe, Ihr könnt mir schnell helfen und danke euch schon mal im vorraus

Tarzan
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 560

mmm PHP...


View Profile WWW
« Reply #103 on: May 16, 2005, 02:50:39 AM »

since this mod is not supported and obsolete, there is no point to continue discuss it.

Topic locked.
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
Pitt
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #104 on: June 27, 2005, 01:58:47 PM »

Hallo rundrum,
ich habe mir die ältere Version des PMS eingebaut, kann mans noch irgendwo so umgestalten, dass beispielsweise unter eingeloggt als xxxx eine Meldung erscheint, wieviel neue Nachrichten in der Box sind?

Tnx im Voaus...
Pitt
Logged
Pages: «« « 1 ... 3 4 5 6 [7] 8 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.176 seconds with 19 queries.