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

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

0 Members and 2 Guests are viewing this topic.

Offline barabangel

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #495 on: September 28, 2007, 09:56:14 AM »
 :D

Everything is ok.Thank you!!!

Offline barabangel

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #496 on: October 02, 2007, 09:53:22 AM »
{lang_limit_prc} , <img src="{template_image_url}/scale.gif">,<img src="{template_image_url}/scale-end.gif"><img src="{template_image_url}/scale-bar.gif" width="{limit_img}" height="7"><img src="{template_image_url}/scale-end.gif">

in pm_folder.html not desplay.....

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #497 on: October 02, 2007, 01:11:27 PM »
Quote
lang_limit_prc

Check in PHP source file and check in lang file if lang definition exist.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline barabangel

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #498 on: October 02, 2007, 01:47:10 PM »
nothing came of it     :(

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #499 on: October 02, 2007, 11:52:33 PM »
Quote
nothing came of it

I no have this debugger for precise text for this. Can you send to me if exists for say: nothing came of it ? Is so human understand text ... anyone can understand this easy.

Now, please post all steps you do for say there is nothing.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline fast

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #500 on: October 12, 2007, 06:50:39 PM »
hallo leute...

gibt es eine möglichkeit hinter "private nachrichten" in der navigation einen hinweis einzubauen (bspw. "neu"), wenn eine neue nachricht eingegangen ist? oder ist das bereits im mod integriert und ich habe nur nicht alles installiert?

danke für eure hilfe...

Offline UFOSWORLD

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #501 on: October 18, 2007, 07:04:58 PM »
Kann mir jemand mal Schritt 6.2 genau erlären??  ich finde in der functions.php das
Code: [Select]
return replace_badwords($text);   nicht

Habe den Smilie Mod installiert...

der ensprechende Abschnitt in meiner File sieht so aus

Code: [Select]
function replace_badwords($text) {
  global $config, $split_badwords;
  if ($config['badword_list'] != "") {
    if (!isset($split_badwords)) {
      $badwords = trim($config['badword_list']);
      $badwords = preg_replace("/[\n\r]/is", " ", $badwords);
      $badwords = str_replace(","," ",$badwords);
      $badwords = preg_quote($badwords);
      $badwords = str_replace('/', '\\/', $badwords);
      $split_badwords = preg_split("/\s+/", $badwords);
    }

    foreach ($split_badwords as $key => $val) {
      if ($val != "") {
        if (substr($val, 0, 2) == "\\{") {
          $val = substr($val, 2, -2);
          $text = trim(preg_replace("/([^A-Za-z])".$val."(?=[^A-Za-z])/si", "\\1".str_repeat($config['badword_replace_char'], strlen($val)), " $text "));
        }
        else {
          $text = trim(preg_replace("/$val/si", str_repeat($config['badword_replace_char'], strlen($val)), " $text "));
        }
      }
    }
  }
  return $text;
}

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(
     

habe ausserdem 1.7.2 installiert...

wer kann mir weiterhelfen?  ich will den Mod unbedingt auf meiner Seite zur Verfügung stellen

merci UFO

Offline UFOSWORLD

  • Full Member
  • ***
  • Posts: 102
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #502 on: October 30, 2007, 12:52:23 AM »
Kann mir jemand sagen ob der Mod auf einem absolut unangetasteten 1.7.4 System fehlerfrei läuft?

Tutto kompletto frisch installiertes System..

thx UFO

Offline dlmlmd

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #503 on: November 06, 2007, 06:06:39 AM »
function "format_text" when edit userCP at email

Email: <input ... vlue="<a href=">admin@yourdomain.com" class="input" />
email : <input ... vlue="<a href=">admin@yourdomain.com" class="input" />
please help me!!!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #504 on: November 06, 2007, 01:52:09 PM »
function "format_text" when edit userCP at email

Email: <input ... vlue="<a href=">admin@yourdomain.com" class="input" />
email : <input ... vlue="<a href=">admin@yourdomain.com" class="input" />
please help me!!!


Sorry ... I no get question ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline dlmlmd

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #505 on: November 06, 2007, 04:28:27 PM »
Sorry ... I no get question ...

sorry!
I repaid "format_text" function for PM v2 but when i go to userCP to edit profile -> textbox email error!
in old code have set html==2, in new code html==0 only!
with old code "format_text" of 4images is ok.
i want use it for bbcode2  but function error.
i set "//" for some line have "<a href" in infunction but not ok.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #506 on: November 06, 2007, 04:37:31 PM »
Hum ... is possible conflict with fix:

http://www.4homepages.de/forum/index.php?topic=18256.0

if so, you no need format_text replace. Tabulator fix is good. ;)

Thing bad is no replace chars for bbcode if no use edit format_text.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #507 on: November 07, 2007, 12:47:33 AM »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline dlmlmd

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #508 on: November 07, 2007, 04:03:52 AM »
Wait - I find here:

http://www.4homepages.de/forum/index.php?topic=4745.msg20105#msg20105

Is correct patch. ;)

first: Thank you very much!!!
sorry about my question.
in 4images old code is  set html=2.
when view sourcecode with brown is:
<tr>
            <td class="row1"><b>&#272&#7883a ch&#7881 Email:</b></td>
            <td class="row1"><input type="text" name="user_email"  size="30" value="<a href="mailto:admin@yourdomain.com">admin@yourdomain.com</a>" class="input" /></td>
          </tr>
          <tr>
            <td class="row2"><b>&#272&#7883a ch&#7881 email l&#7853p l&#7841i:</b></td>
            <td class="row2"><input type="text" name="user_email2"  size="30" value="<a href="mailto:admin@yourdomain.com">admin@yourdomain.com</a>" class="input" /></td>
          </tr>

i think it replace to html hyperlink -> error!
THANK YOU VERY MUCH!
i don't known everyone not see this bug! ( :() oh! my pc very bad  :evil: ->pc

oh!
bug:
  //$text = replace_url($text);  <--- my bug
  if ($word_wrap && $text != "") {
    $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
  }
  $text = str_replace("\n", "<br />", $text);
  $text = str_replace("\\'", "'", $text);
  $text = str_replace("\\\"", "&quot;", $text);
  $text = replace_badwords(stripslashes($text));

if i set "//" , can my gallery have error?

a! my comment textarea name is "comment_text", pm textarea name is message.
in my comment javascript error. i can't use bbcode.
i will test repaid JS code!
« Last Edit: November 07, 2007, 04:39:46 AM by dlmlmd »

Offline fast

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #509 on: November 12, 2007, 08:51:05 PM »
is this mod working with 1.74. has someone with this version runnig this mod successfully?