Seite 3 von 3

Re: PM Weiterleitung

Verfasst: 01.08.2012 22:21
von Miriam
Naja, da hat der Coder auf den letzten Metern verrissen. :roll:

Finde in der includes/constants.php danach füge ein:
  • Code: Alles auswählen

    define('PRIVMSGS_TO_TABLE',         $table_prefix . 'privmsgs_to');
finde in der includes/functions_account_link: tausche alle Vorkommen (2 Stück) aus gegen:

Re: PM Weiterleitung

Verfasst: 01.08.2012 23:12
von Secretly
Okay, darauf wäre ich nicht gekommen, auch wenn ich in der constants.php geguckt habe. Danke auf jeden Fall, dass du dir sone Mühe machst und es ist perfekt :)

Re: PM Weiterleitung

Verfasst: 02.08.2012 06:27
von Miriam
Das war die Idee des Coders. Ich habe damit nichts zu tun. :P

Aber schön, daß es paßt.

Re: PM Weiterleitung

Verfasst: 31.08.2012 12:29
von Secretly
Huhu,

ich habe eine Fehlermeldung, wenn ich Debug anmache und ich glaube die hängt mit der PM-Weiterleitung zusammen.

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_account_link.php on line 900: Undefined variable: u_account_link
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4857: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3880)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4859: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3880)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4860: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3880)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4861: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3880)

includes/functions_account_link.php on line 900:

Code: Alles auswählen

	$u_account_link_pm = $u_account_link . '&switch_acct=' . $id . '&redirect=' . $phpbb_root_url . '/ucp.php?i=pm&folder=inbox';

Code: Alles auswählen

    4856   // application/xhtml+xml not used because of IE
    4857      header('Content-type: text/html; charset=UTF-8');
    4858   
    4859      header('Cache-Control: private, no-cache="set-cookie"');
    4860      header('Expires: 0');
    4861      header('Pragma: no-cache');
    4862
    4863      if (!empty($user->data['is_bot']))
    4864      {
    4865         // Let reverse proxies know we detected a bot.
    4866         header('X-PHPBB-IS-BOT: yes');
    4867      }
Hast du eine Idee was ich ändern muss?

Re: PM Weiterleitung

Verfasst: 31.08.2012 18:43
von BNa
Secretly hat geschrieben:

Code: Alles auswählen

    $u_account_link_pm = $u_account_link . '&switch_acct=' . $id . '&redirect=' . $phpbb_root_url . '/ucp.php?i=pm&folder=inbox';
 
Ändere die Zeile mal testweise auf

Code: Alles auswählen

    $u_account_link_pm = (isset($u_account_link) && !empty($u_account_link)) ?  $u_account_link . '&switch_acct=' . $id . '&redirect=' . $phpbb_root_url . '/ucp.php?i=pm&folder=inbox' : false; 

Re: PM Weiterleitung

Verfasst: 31.08.2012 20:49
von Secretly
danke klappt super. Darf ich mal fragen, was jetzt die Ursache war? Ist der Mod veraltet gewesen oder lag es an der Änderung? Nur, dass ich vielleicht verstehe woran es lag, weil die Zeile ist genau die gleiche wie im Ursprungsmod.

Re: PM Weiterleitung

Verfasst: 31.08.2012 20:56
von BNa
Secretly hat geschrieben:oder lag es an der Änderung?

Natürlich, falls Du die hier meinst. Die Variable ist in nicht bestimmungsgemässen Situation einfach leer und die Änderung sorgt dafür, das dies geprüft wird. Wenn nicht definiert oder leer, dann false. Ein wirklicher Fehler ist es nicht. Eher vom Programmierer unentdeckt. Normal gilt eine nicht "abgefangene" Variable als "Schnitzer" und kommt schon mal vor. Man kann ja nicht jede, noch so seltene Board-Konstellation vorhersehen.

Re: PM Weiterleitung

Verfasst: 31.08.2012 21:08
von Secretly
Ah oki, danke auf jeden Fall :)

Re: PM Weiterleitung

Verfasst: 03.10.2013 10:35
von schattenblind
Wieder, raus mit dem Thema :D

Klappt das ganze auch bei der Version 0.7.9?

Und muss ich erst bei diesem Beitrag einsteigen oder hat das Vorangegangene trotzdem noch Relevanz, wenn ich keine Weiterleitung will sondern bloß die Anzeige?
Denn da gab es ja irgendwie ein Problem mit der PN Weiterletung, die ich gar nicht brauche ö.ö

Und schließlich: Ich brauche dann alle 2 Änderungen, oder? ö.ö

Grüßchen

Re: PM Weiterleitung

Verfasst: 01.02.2014 13:18
von schattenblind
Also ich bin jetzt hier eingestiegen:
viewtopic.php?f=87&t=220891&start=10#p1279438

Der Mod klappte eigentlich auch ganz gut, aber jetzt ist mir aufgefallen, dass die PNs auf den linked Accounts nicht immer angezeigt werden.
Sprich, ich habe mich umgeloggt und hatte eine PN von vor 2 Tagen, die mir auf den anderen beiden Accounts nicht angezeigt wurden. Habe das ganze dann auch nochmal getestet, die PN die ich mir selbst geschickt habe ist nicht angezeigt worden.
Das ist mir zum ersten Mal aufgefallen, seit ich 3 Usernamen miteinander verbunden habe; als ich nur 2 hatte ging es einwandfrei.

Nach ein paar Tests hab ich aber gesehen, dass das Problem jetzt auch bei nur 2 Accounts besteht.
Ich schätze, der Fehler liegt vllt in meinem selbstgebastelten Posteingang. Sobald Account 1 eine PN hat, wird es Account 1 angezeigt, Account 2 aber nicht. Haben beide Accounts eine PN, werden in beiden Accounts beide PNs angezeigt. Öffne ich eine PN, bekommt wieder nur derjenige die PN angezeigt, der sie hat, der andere Account nicht.
Hier mein Posteingang:

Code: Alles auswählen

<!-- IF S_USER_LOGGED_IN -->
<div align="center"><table class="tablebg" width="900px" cellspacing="0" align="center">
   <tr>
<tr align="center" style="padding:-20px; margin:-20px; height:5px; overflow:auto;" bgcolor="#302f2f">
<td colspan=5 style="padding:0; margin:0;"><img src="/php/styles/Gemeinschaftsraum/imageset/linie.png"></td></tr>
   </tr>


   <tr><td class="row1" width="110px" align="center">
<!-- IF S_USER_UNREAD_PRIVMSG --><img src="http://i1243.photobucket.com/albums/gg560/_Poughkeepsie/tuumlrkis_zps5c362723.png" alt="" /><!-- ELSE -->
<img src="http://i1243.photobucket.com/albums/gg560/_Poughkeepsie/eule_alt_zps11a41211.png" alt="" />
<!-- ENDIF -->
</td>


   <td class="row1">

<!-- IF S_USER_UNREAD_PRIVMSG --><div style="text-align: justify;"><p class="forumdesc">
<b>POSTEINGANG</b><br><br>
DIE EULEN HABEN
<!-- IF S_DISPLAY_PM --><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}
<!-- IF PRIVATE_MESSAGE_INFO_UNREAD --><!-- ENDIF --></a><!-- ENDIF -->
AUF DEM FRÜHSTÜCKSTELLER HINTERLASSEN.<br>
IN DER <a href="{U_PRIVATEMSGS}">EULEREI</a> KANNST DU AUSSERDEM NACH DEINER ALTEN POST SEHEN.<p>
<!-- ELSE -->

<p class="forumdesc"><b>POSTEINGANG</b><br><br>
DIE EULEN HABEN DIR HEUTE LEIDER KEINEN BRIEF IN DIE GROSSE HALLE GEBRACHT.<br>
ABER SIEH DOCH MAL IN DER <a href="{U_PRIVATEMSGS}">EULEREI</a> NACH DEINER ALTEN POST.<br><p>
</div>
<!-- ENDIF -->

</td>  <td class="row1"></td> </tr> 
   <tr>
<tr align="center" style="padding:-20px; margin:-20px; height:5px; overflow:auto;" bgcolor="#302f2f">
<td colspan=5 style="padding:0; margin:0;"><img src="/php/styles/Gemeinschaftsraum/imageset/linie.png"></td></tr>
   </tr>
  </table></div>

<!-- ENDIF --> 
Jemand eine Idee? ;3