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

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

0 Members and 1 Guest are viewing this topic.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #270 on: June 02, 2006, 02:30:15 AM »
Hi ascanio,

without using phpmyadmin ... but a nice Plugin in ACP ...

[Plugin] Pm to Members http://www.4homepages.de/forum/index.php?topic=6732.0
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #271 on: June 02, 2006, 11:10:40 PM »
Greetings, how make this mod work with default smileys (bbcode smileys MOD) and not with this new pm2 smileys ?

b.o.fan

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #272 on: June 04, 2006, 12:45:30 AM »
Hello @ all.

i've found out to create a WELCOME PM to a new user...!

on this request http://www.4homepages.de/forum/index.php?topic=8409.msg46069#msg46069

i test this on 1.72!


open register.php

find there:
Code: [Select]
    $sql = "INSERT INTO ".USERS_TABLE."
            (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").$additional_field_sql.")
            VALUES
            ($user_id, $user_level, '$user_name', '".md5($user_password)."', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq'".$additional_value_sql.")";
    $result = $site_db->query($sql);

add after this
Code: [Select]
    $sql = "INSERT INTO ".PM_TABLE."
                        (pm_date, pm_to, pm_from, pm_subject, pm_type, pm_text, pm_bbcode, pm_html, pm_ip, pm_smiles)
                  VALUES
                        (".time().", ".$user_id.", '1', '".$lang['welcome_subject']."', ".PM_UNREAD.", '".addslashes($lang['welcome_text'])."', '1', '1', '".$session_info['session_ip']."', '1')";
    $result = $site_db->query($sql);

in these example the user with the ID 1 send the PM! you can change this here:
Code: [Select]
(".time().", ".$user_id.", '1', set there your ID!

then open lang/<your lang>/main.php

add before
Code: [Select]
?>
Your Mail. something like this!

Code: [Select]
$lang['welcome_subject'] = "Hello and welcome on {site_name}";
$lang['welcome_text'] = "Thanks that you registered on {site_name}<br>blabla<br>Your Admin";

You can use Smilies and html.

When The new User logged in, he will get the PM!

b.o.fan
« Last Edit: June 04, 2006, 10:29:36 AM by b.o.fan »

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #273 on: June 04, 2006, 03:31:08 PM »
Hello @ all.

i've found out to create a WELCOME PM to a new user...!

on this request http://www.4homepages.de/forum/index.php?topic=8409.msg46069#msg46069

i test this on 1.72!


open register.php

find there:
Code: [Select]
    $sql = "INSERT INTO ".USERS_TABLE."
            (".get_user_table_field("", "user_id").get_user_table_field(", ", "user_level").get_user_table_field(", ", "user_name").get_user_table_field(", ", "user_password").get_user_table_field(", ", "user_email").get_user_table_field(", ", "user_showemail").get_user_table_field(", ", "user_allowemails").get_user_table_field(", ", "user_invisible").get_user_table_field(", ", "user_joindate").get_user_table_field(", ", "user_activationkey").get_user_table_field(", ", "user_lastaction").get_user_table_field(", ", "user_lastvisit").get_user_table_field(", ", "user_comments").get_user_table_field(", ", "user_homepage").get_user_table_field(", ", "user_icq").$additional_field_sql.")
            VALUES
            ($user_id, $user_level, '$user_name', '".md5($user_password)."', '$user_email', $user_showemail, $user_allowemails, $user_invisible, $current_time, '$activationkey', $current_time, $current_time, 0, '$user_homepage', '$user_icq'".$additional_value_sql.")";
    $result = $site_db->query($sql);

add after this
Code: [Select]
    $sql = "INSERT INTO ".PM_TABLE."
                        (pm_date, pm_to, pm_from, pm_subject, pm_type, pm_text, pm_bbcode, pm_html, pm_ip, pm_smiles)
                  VALUES
                        (".time().", ".$user_id.", '1', '".$lang['welcome_subject']."', ".PM_UNREAD.", '".addslashes($lang['welcome_text'])."', '1', '1', '".$session_info['session_ip']."', '1')";
    $result = $site_db->query($sql);

in these example the user with the ID 1 send the PM! you can change this here:
Code: [Select]
(".time().", ".$user_id.", '1', set there your ID!

then open lang/<your lang>/main.php

add before
Code: [Select]
?>
Your Mail. something like this!

Code: [Select]
$lang['welcome_subject'] = "Hello and welcome on {site_name}";
$lang['welcome_text'] = "Thanks that you registered on {site_name}<br>blabla<br>Your Admin";

You can use Smilies and html.

When The new User logged in, he will get the PM!

b.o.fan


Work  8O thanks b.o.fan  :P

b.o.fan

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #274 on: June 04, 2006, 03:38:06 PM »
ok. please :D

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #275 on: June 05, 2006, 12:21:18 AM »
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 !!!


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






MFG Marcel


I have the same probleme. And the help din't work:

Quote
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);
}


I don't no, what is wrong, can please anybody help me?

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #276 on: June 05, 2006, 02:10:06 AM »
Thats my functions.php after i install this mod an it will be the error! With the backup-functions before i install this mod i haven't the error i post above!

Code: [Select]
removed
« Last Edit: June 05, 2006, 05:14:54 AM by V@no »

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #277 on: June 05, 2006, 06:19:52 AM »
I installed this mode when this come out, but now i disable and I like to disable to send the welcome PM for the users
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline Sir Sky-Walker

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #278 on: June 05, 2006, 04:28:05 PM »
Hat keiner eine Idee warum bei mir die Emailadressen im Profil und Adminmenü nicht richtig angezeigt werden ?

---------------------

Have anybody an idea, because of the error?

Offline Thana

  • Pre-Newbie
  • Posts: 1
  • php Neuling...
    • View Profile
    • Die kleine Kellergalerie
Re: [MOD] PMv2 Tutorial Republished here
« Reply #279 on: June 06, 2006, 12:06:50 AM »
Hab die Korrektur grade ausprobiert... funktioniert.. keine komischen Zeichen mehr in den email-Feldern, Formatierung auch wieder okay. Thanks

Just uploaded the fix...now it works properly again. thanks

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #280 on: June 09, 2006, 03:18:57 AM »
http://www.4homepages.de/forum/index.php?topic=6692.msg71064#msg71064

Hi boys, I am with the same problem talked above.
I installed MOD PM and this presenting this mistake.
Version of the 4images: 1.7.2

I thank can help :cry: :cry:

Offline aletapety

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #281 on: June 09, 2006, 09:35:54 AM »
http://www.4homepages.de/forum/index.php?topic=6692.msg71064#msg71064

Hi boys, I am with the same problem talked above.
I installed MOD PM and this presenting this mistake.
Version of the 4images: 1.7.2

I thank can help :cry: :cry:
\

i'm have many mod's and 1.7.2 and work good uinstall and install again 

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #282 on: June 09, 2006, 01:16:01 PM »
I only have been installing MOD PM. :cry:

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 #283 on: June 12, 2006, 02:42:17 PM »
1) the person who commented must NOT be a guest
2) the person who is trying to PM must NOT be a guest and must NOT be the same person who commented
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)

b.o.fan

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #284 on: June 13, 2006, 03:21:08 PM »
i ve got a problem with my controlpanel.

i think it was after this mod.

look at the attechment!