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

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

0 Members and 4 Guests are viewing this topic.

rinaldos

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #675 on: November 10, 2009, 04:18:26 PM »
Hi,
KurtW arbeitet nicht mehr daran. er hatte mal ein Release rausgebracht aber es wurde wieder zurückgezogen....

http://www.4homepages.de/forum/index.php?topic=24703.msg135329#msg135329

Gruß
Ingo

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #676 on: November 10, 2009, 04:26:29 PM »
Hi,
KurtW arbeitet nicht mehr daran. er hatte mal ein Release rausgebracht aber es wurde wieder zurückgezogen....

http://www.4homepages.de/forum/index.php?topic=24703.msg135329#msg135329

Gruß
Ingo


Wow.... hab auch die Gründe durchgelesen.... das Wundert mich nicht... hätt ich auch gemacht  :evil:
Schade drum, aber sehr verständlich  :(

Vielen Dank für diese Info.

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
Help: I wanna change my smilies
« Reply #677 on: November 29, 2009, 01:31:58 PM »
Hi all  :D

I just cant find the right file x___x

Installed: [MOD] PMv2 Tutorial Republished
http://www.4homepages.de/forum/index.php?topic=6692.0


I want to change my smilies and after I managed that  8O I wanna add them to comments too ^_^

* add more smilies
* switch positions and
* delete some I dont need

Files I found:
smilies.php (which doesnt rly help me x.x nothing to add there  :lol: )

function.php :
Code: [Select]
function get_smiles(){
  $smilesfrom = array(
      ":)" => "happy",
      "(:" => "happy",
      ":-))" => "very_happy",
      ":lol:" => "very_happy",
      ":D" => "big_smile",
      ":O" => "surprised",
      ":o" => "surprised",
      ";)" => "wink",
      ":wink:" => "wink",
      ":(" => "sad",
      ":*(" => "very_sad",
      ":cry:" => "very_sad",
      ":confused:" => "confused",
      ":shy:" => "embarrassed",
      ":vicious:" => "vicious",
      ":|" => "undecided",
      ":P" => "tongue",
      ":p" => "tongue",
      "B)" => "cool",
      ":B" => "nerd",
      "X(" => "angry",
      ":X" => "in_love",
      "|)" => "asleep",
      "=;" => "talk_to_hand",
      "@};-" => "rose",
      "8X" => "skull",
      "=:)" => "alien",
      "0:)" => "angel",
      ":devil:" => "devil",
      "(~~)" => "pumpkin",
      "[-(" => "huff",
      "*:)" => "bulb",
      ":$" => "shhh",
      "~o)" => "cup",
      "b(" => "beat_up",
      ":E:" => "peace",
      ":&" => "sick",
      "=*" => "kiss",
      ";;)" => "flirt",
      ":?)" => "what",
      ":mad:" => "mad",
      ":R:" => "praying",
      "[-x" => "nono",
      "[:D]" => "hugging",
      ":dance:" => "dancing",
      "=D" => "applause",
      "(?)" => "thinking",
      ":^o" => "liar",
      "@)" => "hypnotized",
      "8|" => "rolleyes",
      "8}" => "crazy",
      "?|" => "tired",
      "=p~" => "drooling",
      "$)" => "money",
      ":whistle:" => "whistling",
      "#o" => "doh",
      ":S" => "scared"
  );

But when I add a new smile there I get an error - so I have to change some more file - which one :( ? javascript x_x? *cries*
Deleting worked fine  :lol:

Want me to translate it in german? Let me know  :roll:


Hope some1 can help me out, sorries for that stupid question ><  :oops:

Greetings,
Habi

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #678 on: December 14, 2009, 01:36:15 PM »
how i can add Private Messages Pop Up when the member visit index.php etc
?

Offline Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [MOD] PMv2 Tutorial Republished here
« Reply #679 on: February 12, 2010, 08:36:16 AM »
Da es den MOD zur PMv3 Box lieder nicht mehr gibt, schreibe ich mal hier meine Frage dazu rein, vieleicht kann mir ja jemand weiter helfen.

Zu dem MOD gab es mal ein PN_view.php mit der man im Adminbereich, die PNs bearbeiten konnte.

Seit dem ich mit meiner Webseite zu alfahosting.de umgezogen bin und ich im Admincenter jetzt den PM Viewer Advanced aurufe und dort mir die PM anzeigen lassen will bekomme ich folgende Fehlermeldung.


Notice: Undefined variable: from_name in /var/www/admin/plugins/pm_viewer.php on line 747

Notice: Undefined variable: to_name in /var/www/admin/plugins/pm_viewer.php on line 751

Selbe Seite habe ich noch als Testsystem bei Ohost laufen, da kommt der Fehler nicht.
Ich hab alles Versucht aber ich hab den Fehler nicht gefunden...
« Last Edit: February 18, 2010, 06:13:51 PM by Tino23 »

Offline Sievert87

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #680 on: May 10, 2010, 09:06:49 PM »
Hi all,

I instal PMv2 but I want use bbcode.html and mod smile not use new bbcode2.html with new smile . Pls how change it ?

thx

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #681 on: May 10, 2010, 09:39:11 PM »
... I think, the easiest and fastest solution is ...
... make a copy of your bbcode.html and rename it bbcode2.html ...
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 Sievert87

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #682 on: May 10, 2010, 11:30:21 PM »
... I think, the easiest and fastest solution is ...
... make a copy of your bbcode.html and rename it bbcode2.html ...

This resolution not worked  :cry: some next resolution ? pls

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #683 on: May 10, 2010, 11:58:55 PM »
... and what "not worked" ... ?
... and I'm right ... you don't want bb-code-editor with smilies, you want the standard-bb-code-editor (your request is a little bit mystic) ...
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 GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: [MOD] PMv2 Tutorial Republished here
« Reply #684 on: May 22, 2010, 05:05:30 AM »
 8O Guys,, Does this works fine with 1.7.7  :roll:
I'm Back :)

Offline Crazymodder

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #685 on: May 26, 2010, 10:26:52 AM »
hi everybody,
I have installed that mod and it works nearly perfect. I only have one problem if I want to write a message in the input for the reciever (mail to) there is always a number at the moment it is the 7. its equal if i logged in as user 1 or 2 or 5. If I go to a profil and click write new message not the username is in the field mail to but also the number. Also if I will reply to a message.
I have make some test with echo the variable $username will be set right all the time but here:

"username" => stripslashes(($user_row['user_name']) ? $user_row['user_name'] : $username),

is the error. that variable $user_row['user_name'] have the number.

I hope you can help me. If I delete the number an write a name into the mail to field than i can send the pm without problems:)

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #686 on: August 06, 2010, 02:38:09 PM »
i was wondering if anyone here could help me. V@no if ur out there, i need ur assistance please..

ok in step 6 it is telling me to comment things out and open on includes/funtion.php and find comment it all the way to the replace_badwords but i cannot seem to find that out, i am using 1.7.7 and maybe the syntax is difference any ideas??

also he asks me to comment out any smilies but is he talking about this [MOD]  >> http://www.4homepages.de/forum/index.php?topic=6646.0

thank u

Offline zakaria6666

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #687 on: August 06, 2010, 02:52:53 PM »
guys im stuck on step 6, it is asking me to comments things out,

can somneone here be kind enough to point me in the right direction and tell me exactly what i need to comment out as i have installed VANO's media sites MOD and bbCode MOD, so im a bit confused as everything is mixed in together and really dont know what to comment it, also not to mention the replace_bad words in function.pphp has a different snytax and i cannot find it,

step 6 is confusing.

pleas ehelp

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #688 on: August 10, 2010, 08:11:58 PM »
Hello

Vano please dont be upset with me :( i am not bumping this topic up, i promise u, i just read what i said and it didnt make sense so i deleted it.. By the way i want to thank u again vano for the great assistence and help u gave me and it was greatly appreciated, without ur help i correected the mistakes and made it into zip fle so anyone who also has problem i can help them like u helped me.

vano if u seeing this, i have one question for this PM v2 mod it will be icing on the cake for me. Basiically i installed ur fantstic MOD on Media site 1.11, Below u will see a code that on step 6 off this MOD it is asking us to comment out, but i dont know as in the middle it has 1 line of code from the media site 1.11 and i dont know if i should comment it out, basiicailly here it is i have highlighted it Red below...

/////// Commenting out start /////////

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

  // Replace { to prevent parsing in templates
  global $site_template;
  $text = preg_replace(
    '='.preg_quote($site_template->start).'([A-Z0-9_]+)'.preg_quote($site_template->end).'=Usi',
    '&#123;\1&#125;',
    $text
  );

  if ($html !== 2) {
    $text = nl2br(trim($text));
    $text = replace_url($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\" rel=\"nofollow\">\\8</a>",
      "<a href=\"\\5\" target=\"_blank\" rel=\"nofollow\">\\7</a>",
      "<a href=\"http://www.\\5\" target=\"_blank\" rel=\"nofollow\">www.\\5</a>",
      "<a href=\"\\4\" target=\"_blank\" rel=\"nofollow\">\\4</a>",
      "<pre>Code:<hr size=1>\\5<hr size=1></pre>",
      "java script:",
      "about :"
    );
   
   /*
  MOD MEDIA SITES
  BEGIN INSERT
*/
    $text = media_sites_bbcode($text);
/*
  MOD MEDIA SITES
  END INSERT
*/


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

////////////  Commented it out /////////////

___
Also as u can see above i also have highlighted a line of code greeen, i just wanted to know if this was the line it was asking me to comment out until...

is
Code: [Select]
$text = replace_badwords($text);
  }

similar to

 
Code: [Select]
return replace_badwords($text);
}

Anyone who can answer this i will be more than grateful...

again i wil like to thank vano for ur great help.

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 #689 on: August 10, 2010, 08:31:12 PM »
no problem bumping a topic after a few days with no replies, it's when bumping several times a day - that is not a good sign ;)

I don't have at the moment any way to show what exactly you need replace, but I'll try to explain the concept.
Basically what you need to do is comment out the existing format_text function. What you need to know is that every function starts as function someName then it followed by parenthesizes and opened curly bracket:
function someName (arg, arg2) {
that is beginning of the function.
The end of the function is matching closing curly bracket: }
So, what you need is find beginning of the function and add above it: /* (that is beginning of a comment block)
then count opening and closing curly brackets (unless of course you are using special php editor, there are plenty free and good once to choose from, such editors will highlight the matching closing bracket for you), find the closing bracket for the function (4images is well formatted, so such bracket would be at first column, closes to the left side of a line). Once you found that bracket add below that bracket: */ (that is end of a comment block)
That will comment out the entire function.
Now, insert the new function as per instructions, and after that add the change from media sites mod.
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)