• [MOD] PMv2 Tutorial Republished here 5 0 5 1
Currently:  

Author Topic: [MOD] PMv2 Tutorial Republished here  (Read 773859 times)

0 Members and 3 Guests are viewing this topic.

Offline PartyPix

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #240 on: March 30, 2006, 02:54:46 PM »
Hallo
kann leider nicht so gut Englisch deshalb hoffe ich das auch Deutsch geht.
Ich habe ein Problem. Habe mir das PMS Sytsem installiert und es läuft auch ganz gut soweit.
Habe dann aber im Kontrollzenter bzw. in der member_editprofile.html einen Fehler feststellen müssen.
Wenn ich auf die Seite gehe sprich ins Kontrollzentrum, steht bei E-Mail folgendes: <a href=
Also das steht im input Feld. Den normalen von mir definierten Style wird auch nicht richtig angezeigt für dieses Input. Desweiteren steht hinter dem Input dieses hier: admin@yourdomain.com" class="input">
Das gleiche ist auch bei der Wiederholung der Emailadresse, sowie wenn ich im Homepage Feld eine Homepage eingebe und dann auf speichern drücke. Dann wird dieses so ähnlich angezeigt.
Der HTML Code ist meiner Meinung nach aber in Ordnung, habe ihn aber hier nochmal mit angehangen. Ich vermute das ein Fehler in meiner member.php sein muss. Genau wissen tue ich dies natürlich nicht. Ich hoffe jemand kennt dieses Problem oder weiß an was das liegen könnte.

EDIT: Ich habe festgestellt das es auch in mehreren Dateien so ist, also wird es vielleicht doch nicht an der member.php liegen. BITTE helft mir !!!

I try it in english.
I have a problem. I have installed PMS System and since when my member_editprofile is ceriously changed. In the input field email is an entry like this: <a href=
After the input field stand this: admin@yourdomain.com" class="input">
The same is by email2, too. And after i give a Homepage URL in the homepage field, it show the same how by email and email2. Where is the mistake ?? PLEASE HELP ME. I have the member_editprofile.html at this post. But i think the problem is in the member.php. Is here anyone who has an idea for this mistake ??? AND SORRY for my miserable english. ;)

EDIT: I have seen that the mistake is in other templates from me,too. So i think the mistake can't in the member.php but i don't know. PLEASE HELP ME BY THIS PROBLEM !!!

member.html
Code: [Select]
<IMG SRC="templates/default/navi/content_16.jpg" WIDTH="334" HEIGHT="20" BORDER="0" ALT=""><br><br>

<form method="post" action="{url_member}" enctype="multipart/form-data">
  <table width="350" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="350" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_profile_of} {user_name}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_email}</b></td>
            <td class="row1"><input type="text" name="user_email"  size="30" value="{user_email}" class="input"></td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_email_confirm}</b></td>
            <td class="row2"><input type="text" name="user_email2"  size="30" value="{user_email2}" class="input" /></td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_show_email}</b></td>
            <td class="row1">
              <input type="radio" name="user_showemail" value="1"{user_showemail_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_showemail" value="0"{user_showemail_no} />
              {lang_no}</td>
          </tr>
  <tr>
            <td class="row2"><b>{lang_allow_emails}</b></td>
            <td class="row2">
              <input type="radio" name="user_allowemails" value="1"{user_allowemails_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_allowemails" value="0"{user_allowemails_no} />
              {lang_no}
</td>
          </tr>
  <tr>
            <td class="row2"><b>{lang_user_pm_email}</b></td>
            <td class="row2">
              <input type="radio" name="user_pm_email" value="1"{user_pm_email_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_pm_email" value="0"{user_pm_email_no} />
              {lang_no}
            </td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_user_pm_popup}</b></td>
            <td class="row1">
              <input type="radio" name="user_pm_popup" value="1"{user_pm_popup_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_pm_popup" value="0"{user_pm_popup_no} />
              {lang_no}
            </td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_invisible}</b></td>
            <td class="row1">
              <input type="radio" name="user_invisible" value="1"{user_invisible_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_invisible" value="0"{user_invisible_no} />
              {lang_no}
</td>
          </tr>
          <tr>
            <td colspan="2" class="head1">{lang_optional_infos}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_homepage}</b></td>
            <td class="row1"><input type="text" name="user_homepage"  size="30" value="{user_homepage}" class="input" /></td>
          </tr><tr>
            <td class="row2"><b>{lang_icq}</b></td>
            <td class="row2"><input type="text" name="user_icq"  size="30" value="{user_icq}" class="input" /></td>
          </tr>
  {if userpic_allowed}
          <tr>
            <td class="row1" valign="top"><b>{lang_userpic}</b>
              <SPAN class="smalltext">
                <br /> <br /><br />
                <B>{lang_userpic_upload}</B>
              </SPAN>
            </td>
            <td class="row1">
              <INPUT type="file" name="userpic_file"  size="30" class="input" /><br /><br />
              {if userpic_img}<img src="{userpic_img}"><br /><input type="checkbox" name="userpic_del" value="1">&nbsp;{lang_userpic_del}{endif userpic_img}
            </TD>
          </TR>
{endif userpic_allowed}
         
        </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="updateprofile" />
  <p align="center">
    <input type="submit" value="{lang_save}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>
<br />
<form method="post" action="{url_member}">
  <table width="350" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="350" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_change_password}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_old_password}</b></td>
            <td class="row1"><input type="password" name="current_user_password" size="30" class="input" /></td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_new_password}</b></td>
            <td class="row2"><input type="password" name="user_password" size="30" class="input" /></td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_new_password_confirm}</b></td>
            <td class="row1"><input type="password" name="user_password2" size="30" class="input" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="updatepassword" />
  <p align="center">
    <input type="submit" value="{lang_change_password}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>


Hier ist noch ein Screenshot wie das ganze aussieht.
Here is a screenshot,too how it show on my page.






MFG Marcel
« Last Edit: April 01, 2006, 09:57:04 AM by PartyPix »

Offline roger13

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #241 on: April 02, 2006, 02:11:08 PM »
Hallo PartyPix,


Habe dann aber im Kontrollzenter bzw. in der member_editprofile.html einen Fehler feststellen müssen.
Wenn ich auf die Seite gehe sprich ins Kontrollzentrum, steht bei E-Mail folgendes: <a href=
Also das steht im input Feld. Den normalen von mir definierten Style wird auch nicht richtig angezeigt für dieses Input. Desweiteren steht hinter dem Input dieses hier: admin@yourdomain.com" class="input">
Das gleiche ist auch bei der Wiederholung der Emailadresse, sowie wenn ich im Homepage Feld eine Homepage eingebe und dann auf speichern drücke. Dann wird dieses so ähnlich angezeigt...

...I have a problem. I have installed PMS System and since when my member_editprofile is ceriously changed. In the input field email is an entry like this: <a href=
After the input field stand this: admin@yourdomain.com" class="input">
The same is by email2, too. And after i give a Homepage URL in the homepage field, it show the same how by email and email2. Where is the mistake ?? PLEASE HELP ME.


Du verwendest die Version 1.7.2 und nun tritt ein Kompatibilitätsproblem zu diesem [MOD] PMv2 auf.

You use Version 1.7.2 and got a compatibility problem with this [MOD] PMv2.

Um das Problem zu lösen / To fix this problem:


1. Öffne die Datei / open file->  \includes\functions.php

2. Finde Code / find code:
Code: [Select]
$text = replace_url($text);
3. Ersetze mit / remove with:
Code: [Select]
if ($html !== 2) {
      $text = nl2br(trim($text));
      $text = replace_url($text);
}

Nun sollten die Links in den Eingabefeldern korrekt angezeigt werden / Now the input fields show the correct text.



Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] PMv2 Tutorial Republished here
« Reply #242 on: April 02, 2006, 08:18:09 PM »
Hi i wonder if i could send a private message to all my users using phpmyadmin or making a modification in the mod so alow me to send pm to my users
thanks

Offline PartyPix

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #243 on: April 16, 2006, 05:58:43 PM »
Hi

@roger

Quote
Du verwendest die Version 1.7.2 und nun tritt ein Kompatibilitätsproblem zu diesem [MOD] PMv2 auf.

You use Version 1.7.2 and got a compatibility problem with this [MOD] PMv2.

Um das Problem zu lösen / To fix this problem:


1. Öffne die Datei / open file->  \includes\functions.php

2. Finde Code / find code:

Code:
$text = replace_url($text);
3. Ersetze mit / remove with:

Code:
if ($html !== 2) {
      $text = nl2br(trim($text));
      $text = replace_url($text);
}
Nun sollten die Links in den Eingabefeldern korrekt angezeigt werden / Now the input fields show the correct text.

Thanks a lot. It help me  afew. But i have seen that in the register_form.html is the same problem. When i give no or a bad amailadress in the input it will be the same in the input. How can i fix that ?



// EDIT
That Problem i could fixed but the following problem i have every time,too ...
Also das obige Problem hat sich nun gelöst. Bleibt aber immer noch dieses hier ...

@ all

Can anyone translate me the Links into german?
I mean this links:

Inbox  |  Sentbox  |  Outbox  |  New message

Specific the Links Sentbox and Outbox ? Isnt that the same ?

Sorry for my bad english ;)

Kann irgendjemand mir die Links übersetzen in ein gutes noirmales Deutsch ?
Diese Links:

Inbox  |  Sentbox  |  Outbox  |  New message

Speziell die Links Sentbox und Outbox, weil ist das nicht das selbe ?


MFG

PartyPix
« Last Edit: April 17, 2006, 11:25:23 PM by PartyPix »

Offline iraklis

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #244 on: April 20, 2006, 01:54:14 PM »
Hello

First of all, great MOD. It works, not everything like it should, but it's ok.

One thing that's really boring, my ACP. After the configuration of this MOD PM, some of my other MODs in the ACP doesn't work anymore. In the menu (left side) are free spaces and if I click on them I get a page, but not like it was before.

I tried to change files, without result. I don't know what the problem could be. I've attached two printscreens, so you can see how it looks like.

Any ideas, can someone help.

Thank you for your support.

greez

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #245 on: April 20, 2006, 02:21:03 PM »
probably made a misstake in step 4 or 5
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)

Offline PartyPix

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #246 on: April 21, 2006, 01:08:51 PM »
Hi
what must i change to display the folder in this way.

Checkbox    From    Date   Subject


????
(no Status)
I have try it and it go in the inbox good but when i have seen that in the other boxes is chaos and i have change it back. Do you have a idea ?

Please Help

Offline his-luke

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #247 on: April 21, 2006, 08:31:12 PM »
Hi,
I have a problem i can't solve. If i make Step 6 i get a parse Error. If i ignore Step 6 i don't get it. So i went on without Step 6 but then when i want to send a new message i get this Parse Error:

Fatal error: Call to undefined function get_smiles_text() in /www/01247/htdocs/4images/pm.php on line 427

I don't have this Smiley MOD.
Use 4images  1.7.2.

Who can help me?
If u need something like whole codes or the Parse Error if i make Step 6 please ask.

TY luke

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #248 on: April 21, 2006, 11:49:57 PM »
If i make Step 6 i get a parse Error.
then obviously you do it wrong. There is nothing much could be said on how to do that step, so try again.
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)

Offline iraklis

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #249 on: April 24, 2006, 02:09:39 PM »
Hello

First of all, great MOD. It works, not everything like it should, but it's ok.

One thing that's really boring, my ACP. After the configuration of this MOD PM, some of my other MODs in the ACP doesn't work anymore. In the menu (left side) are free spaces and if I click on them I get a page, but not like it was before.

I tried to change files, without result. I don't know what the problem could be. I've attached two printscreens, so you can see how it looks like.

Any ideas, can someone help.

Thank you for your support.

greez


ok, I could solve this problem, but now I've an other.

When I create a new message and I click "Preview" the message is ok. But the receiver, receives the message like this:
Quote
"Subject     selftest       | [Reply] | [Delete]
selftest
<br />ddfdfdfdf

so is anything not ok with the message settings for html messages?

Offline his-luke

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #250 on: April 24, 2006, 04:20:22 PM »
then obviously you do it wrong. There is nothing much could be said on how to do that step, so try again.

Code: [Select]
/*
function format_text($text, $html = 0, $word_wrap = 0, $bbcode = 0, $bbcode_img = 0) {
  if ($word_wrap && $text != "") {
    $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
  }

  if ($html == 0 || $html == 2) {
        $text = safe_htmlspecialchars($text);
  }

  if ($bbcode == 1) {
    $search_array = array(
      "/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
      "/(\[)(list)(])(.*)(\[\/list\])/siU",
      "/(\[\*\])/siU",
      "/(\[\/\*\])/siU",
      "/(\[)(url)(=)(['\"]?)(www\.)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
      "/(\[)(url)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/url\])/siU",
      "/(\[)(url)(])(www\.)([^\"]*)(\[\/url\])/siU",
      "/(\[)(url)(])([^\"]*)(\[\/url\])/siU",
      "/(\[)(code)(])(\r\n)*(.*)(\[\/code\])/siU",
      "/javascript:/si",
      "/about:/si"
    );
    $replace_array = array(
      "<ol type=\"\\5\">\\7</ol>",
      "<ul>\\4</ul>",
      "<li>",
      "</li>",
      "<a href=\"http://www.\\6\" target=\"_blank\">\\8</a>",
      "<a href=\"\\5\" target=\"_blank\">\\7</a>",
      "<a href=\"http://www.\\5\" target=\"_blank\">www.\\5</a>",
      "<a href=\"\\4\" target=\"_blank\">\\4</a>",
      "<pre>Code:<hr size=1>\\5<hr size=1></pre>",
      "java script:",
      "about :"
    );
    $text = preg_replace($search_array, $replace_array, $text);
    if (!$bbcode_img)  {
      $text = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<a href=\"\\5\" target=\"_blank\">\\5</a>", $text);
    }
    else  {
      $text = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<img src=\"\\5\">", $text);
    }
    $text = preg_replace("/(\[)(b)(])(\r\n)*([^\"]*)(\[\/b\])/siU", "<b>\\5</b>", $text);
    $text = preg_replace("/(\[)(i)(])(\r\n)*([^\"]*)(\[\/i\])/siU", "<i>\\5</i>", $text);
    $text = preg_replace("/(\[)(u)(])(\r\n)*([^\"]*)(\[\/u\])/siU", "<u>\\5</u>", $text);

    $text = replace_badwords($text);
  }
*/

Parse error: parse error, unexpected '}' in /www/01247/htdocs/4images/includes/functions.php on line 718
( line 718 is a closing bracket of this function:

Code: [Select]
if ($html !== 2) {
    $text = nl2br(trim($text));
    $text = replace_url($text);
  }

  $text = str_replace("\\'", "'", $text);

  return $text;
}

Could u please tell me how i should do step 6? TY

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #251 on: April 25, 2006, 02:09:56 AM »
I already see that you missed closing curly bracket at the end.
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)

Offline his-luke

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #252 on: April 26, 2006, 05:54:02 PM »
sry my english is bad... can't understand what u want me to say. What should i change in code?

Offline himu

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
    • Point Of View
Re: [MOD] PMv2 Tutorial Republished here
« Reply #253 on: April 28, 2006, 08:36:31 PM »
hey v@no,

somehow ... the style.css is not working with my pm.php  :(
What's wrong? format is all messed up.  :cry:

Offline PartyPix

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #254 on: May 02, 2006, 03:57:42 PM »
Hi
what must i change to make this: the subject field in new pm should be a defined max length ( max 20 letters ) ??

///

Hi
was muss ich im quellcodeändern damit das Feld "Betreff" in new PM eine maximale anzahl nur von Buchstaben haben darf (zB. maximal 20 Buchstaben) ???

MFG

PartyPix