4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 02, 2014, 08:52:40 PM

Login with username, password and session length
Search:     Advanced search
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)
| | |-+  Plugins (Moderators: mawenzi, Rembrandt)
| | | |-+  [Plugin] View Users PM for PM 2.0
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: [Plugin] View Users PM for PM 2.0  (Read 18844 times)
b.o.fan
Sr. Member
****
Offline Offline

Posts: 314

Thank You
-Given: 4
-Receive: 2


View Profile WWW
« on: March 14, 2005, 05:24:23 PM »

EDIT FROM A FORUM ADMINISTRATOR:

This plugin requires the installation of the "[MOD] Private Message System (PMS) not supported anymore!"
http://www.4homepages.de/forum/index.php?topic=5374.0

i know PM are private.
but i think i show the code from my pms-viewer.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
<?php // PLUGIN_TITLE: Private Nachrichten anzeigen

$nozip 1;
define('IN_CP'1);

$root_path = (eregi("\/plugins\/"$PHP_SELF)) ? "./../../" "./../";
define('ROOT_PATH'$root_path);
require(
ROOT_PATH.'admin/admin_global.php');
show_admin_header();

if (
$sort == "") {
$sort "pm_id";
}

if (
$order == "") {
$order "ASC";
}

if (
$number == "") {
$number "100";
}

if (
$from == "") {
$from "0";
}

$nextfrom $from $number;

if (
$action == "") {
global 
$site_db;

   echo 
"<form action=\"pms_viewer.php\" method=\"post\" name=\"Viewer\" id=\"Viewer\">
Sortieren nach:
  <select name=\"sort\" id=\"sort\">
<option value=\"
$sort\" selected=\"selected\">$sort</option>
    <option value=\"pm_id\">pm_id</option>
    <option value=\"pm_from\">pm_from</option>
    <option value=\"pm_to\">pm_to</option>
    <option value=\"pm_subject\">pm_subject</option>
    <option value=\"pm_type\">pm_type</option>
  </select>
    <select name=\"order\" id=\"order\">
   <option value=\"
$order\" selected=\"selected\">$order</option>
    <option value=\"ASC\">ASC</option>
    <option value=\"DESC\">DESC</option>
  </select>
    Beginne bei Nachricht:
  <input name=\"from\" type=\"text\" id=\"from\" value=\"
$nextfrom\" size=\"4\">
  Nachrichten pro Seite:
  <input name=\"number\" type=\"text\" id=\"number\" value=\"
$number\" size=\"4\">
    <input type=\"submit\" class=\"button\" name=\"Submit\" value=\"Anzeigen\">
</form>"
;

   echo 
"<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td class=\"tableborder\"><table cellpadding=\"3\" cellspacing=\"1\" border=\"0\"><td class=\"tableheader\" colspan=\"4\">Private Nachrichten in der Datenbank</td>";

    
$sql "SELECT * FROM ".PM_TABLE."
           ORDER BY 
$sort $order
            LIMIT 
$from$number";
    
$result $site_db->query($sql);
    while(
$row $site_db->fetch_array($result)){

      
$id $row["pm_id"];
     
$from $row["pm_from"];
       
$to $row["pm_to"];
        
$subject $row["pm_subject"];
      
$type $row["pm_type"];
     if (
$type == 0) {
     
$pmtype "<b><font color=blue>gelöscht</font></b>&nbsp;<font color=gray>(Empfänger)</font>";
     }
     if (
$type == 1) {
     
$pmtype "<b><font color=blue>gelöscht</font></b>&nbsp;<font color=gray>(Absender)</font>";
     }
     if (
$type == 2) {
     
$pmtype "<b><font color=green>gelesen</font></b>";
     }
     if (
$type == 3) {
     
$pmtype "<b><font color=red>ungelesen</font></b>";
     }

     
$sql "SELECT ".get_user_table_field("""user_name")."
              FROM "
.USERS_TABLE."
              WHERE "
.get_user_table_field("""user_id")." LIKE '$from'";
      
$result_from $site_db->query($sql);
      if (
$result_from) {
       while (
$row $site_db->fetch_array($result_from)) {
        
$from_name $row["user_name"];
       }
       
$site_db->free_result($result_from);
      }
     if (
$from == 0) {
      
$from_name "anonym";
      }

     
$sql "SELECT ".get_user_table_field("""user_name")."
              FROM "
.USERS_TABLE."
              WHERE "
.get_user_table_field("""user_id")." LIKE '$to'";
      
$result_to $site_db->query($sql);
      if (
$result_to) {
       while (
$row $site_db->fetch_array($result_to)) {
        
$to_name $row["user_name"];
       }
       
$site_db->free_result($result_to);
      }

echo <<<END
  <tr class="tablerow2" valign="top">
    <td><b>ID:</b>&nbsp;
$id</td>
    <td><b>Von:</b>&nbsp;<a href="../../member.php?action=showprofile&user_id=
$from" target="_blank">$from_name</a></td>
    <td><b>An:</b>&nbsp;<a href="../../member.php?action=showprofile&user_id=
$to" target="_blank">$to_name</a></td>
    <td><b>Betreff:</b>&nbsp;<a href="pms_viewer.php?action=show&id=
$id&from_name=$from_name&to_name=$to_name" target="_blank">$subject</a></td>
   <td>
$pmtype</td>
  </tr>
END;

}
       
$site_db->free_result($result);
echo 
"</td></tr></table></table><br><br>";
}


if (
$action == "show") {
global 
$site_db;

     
$sql "SELECT *
              FROM "
.PM_TABLE."
              WHERE pm_id = 
$id";
            
$result $site_db->query($sql);

    while(
$row $site_db->fetch_array($result)){

     
$from $row["pm_from"];
       
$ip $row["pm_ip"];
       
$to $row["pm_to"];
        
$subject $row["pm_subject"];
      
$date format_date($config['date_format']." ".$config['time_format'], $row["pm_date"]);
      
$rcvd $row["pm_date_rcvd"];
     if (
$rcvd != 0) {
     
$received format_date($config['date_format']." ".$config['time_format'], $rcvd);
     }
     
$text $row["pm_text"];
     
$type $row["pm_type"];
     if (
$type == 0) {
     
$pmtype "<b><font color=blue>gelöscht</font></b>&nbsp;<font color=gray>(Empfänger)</font>";
     }
     if (
$type == 1) {
     
$pmtype "<b><font color=blue>gelöscht</font></b>&nbsp;<font color=gray>(Absender)</font>";
     }
     if (
$type == 2) {
     
$pmtype "<b><font color=green>gelesen</font></b>";
     }
     if (
$type == 3) {
     
$pmtype "<b><font color=red>ungelesen</font></b>";
     }

echo <<<END
<table cellpadding="0" cellspacing="0" border="0" align="center"><tr><td class="tableborder"><table cellpadding="3" cellspacing="1" border="0"><td class="tableheader" colspan="4">ID: $id</td>
  <tr class="tablerow2" valign="top">
    <td><b>Von:</b>&nbsp;<a href="../../member.php?action=showprofile&user_id=
$from" target="_blank">$from_name</a></td>
    <td><b>IP:</b>&nbsp;
$ip</td>
    <td><b>An:</b>&nbsp;<a href="../../member.php?action=showprofile&user_id=
$to" target="_blank">$to_name</a></td>
   </tr>
  <tr class="tablerow" valign="top">
      <td><b>gesendet:</b>&nbsp;
$date</td>
    <td><b>gelesen:</b>&nbsp;
$received</td>
   <td><b>Status:</b>&nbsp;
$pmtype</td>
</tr>
     <tr class="tablerow2" valign="top">
    <td colspan="3"><b>Betreff:</b>&nbsp;
$subject</td>
  </tr>
  <tr class="tablerow" valign="top">
    <td colspan="3"><b>Nachricht:</b><br>
$text</td>
   </tr>
</table>
</table>
<p align="center"><a href="javascript:window.close()">[schließen]</a></p>
END;
}
       
$site_db->free_result($result);
}

show_admin_footer();
?>

you must name it pms_viewer.php and you must drop it into admin/plugin


log into your ACP an have fun! ^^
b.o.fan
« Last Edit: March 14, 2005, 06:13:38 PM by Chris » Logged

www.wartenaufden15.de
i m using 1.78
ascanio
Hero Member
*****
Offline Offline

Posts: 569

Thank You
-Given: 0
-Receive: 2


View Profile WWW
« Reply #1 on: April 12, 2005, 02:55:05 PM »

Any body has make a modificatios of this file for the new version of the Private Messages MOD?
Logged
martrix
Hero Member
*****
Offline Offline

Posts: 755

Thank You
-Given: 0
-Receive: 6


View Profile WWW
« Reply #2 on: April 13, 2005, 12:54:16 AM »

Ah! another one who does not understand the meaning of "private" or "privacy" or just not respecting people's privacy
Sorry for that mess, but the impression of administrator-sleuths makes me feel somehow sick.
Logged

MAяTRIX

mentally
Newbie
*
Offline Offline

Posts: 24

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #3 on: August 30, 2005, 11:53:36 PM »

Any body has make a modificatios of this file for the new version of the Private Messages MOD?


update?
Logged
badass
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #4 on: August 31, 2005, 03:26:23 AM »

i tried this mod i got an error

Parse error: parse error in /home/www/aleali.farvista.net/dm/admin/plugins/pms_viewer.php on line 180



???
any  clues
Logged
beseech
Full Member
***
Offline Offline

Posts: 150

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: August 31, 2005, 11:28:09 PM »

this plugin give me that error too  =/
Logged
martrix
Hero Member
*****
Offline Offline

Posts: 755

Thank You
-Given: 0
-Receive: 6


View Profile WWW
« Reply #6 on: September 09, 2005, 10:58:56 AM »

Quote  [Expand]
This plugin requires the installation of the "[MOD] Private Message System (PMS) not supported anymore!"

please note, that the subject-name is wrong - if you use that (without modifications) on PM v.2 you will get an error.
Logged

MAяTRIX

beseech
Full Member
***
Offline Offline

Posts: 150

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #7 on: September 09, 2005, 03:37:16 PM »

I'm using the PMS version , and this still giving a error on line 180 (unspected $ ) .......


(sorry my english)
Logged
fast
Jr. Member
**
Offline Offline

Posts: 99

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #8 on: February 24, 2008, 10:42:51 PM »

leider wird in der email, die an die user gesendet wird, ein unvollständiger link angegeben. d.h. der anfang fehlt, es geht erst mit /pm... los.

kann das jmd fixen?


Logged
Bob
Jr. Member
**
Offline Offline

Posts: 79

Thank You
-Given: 0
-Receive: 1


View Profile
« Reply #9 on: May 27, 2008, 03:21:10 PM »

PERFEKT !!!
Logged
Mr Kennedy
Jr. Member
**
Offline Offline

Posts: 81

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #10 on: July 26, 2011, 01:11:43 PM »

Ich nutze dieses Plugin für den PM-Mod von KurtW, den es hier ja leider nicht mehr gibt...

An sich funktioniert der PM-Viewer, allerdings bewirkt der Klick auf "Anzeigen" nix.
Um weitere PMs zu sehen, muss man die Zahlen in der .php bearbeiten.
Vielleicht könnte ja einer das Plugin bearbeiten, dass es wieder voll funktionstüchtig ist? Smile
Logged
kumotobi
Pre-Newbie

Offline Offline

Posts: 5

Thank You
-Given: 3
-Receive: 0


View Profile
« Reply #11 on: September 14, 2012, 01:51:22 AM »

this plugin give me that error both Mad
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.112 seconds with 21 queries.