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

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

0 Members and 2 Guests are viewing this topic.

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #660 on: September 25, 2009, 03:20:11 PM »
i uploaded you file and  i get this error

Fatal error: Call to undefined function smilies() in /home/arabcine/public_html/test1/includes/functions.php on line 1935



i removed this line and the script work fine but i still get this error

 http://i34.tinypic.com/2rmnvk4.jpg

and in admin setting badword get same error



Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD] PMv2 Tutorial Republished here
« Reply #661 on: September 25, 2009, 03:42:10 PM »
Ok , i made a update

try this.

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #662 on: September 25, 2009, 04:05:38 PM »
fixed yes bit badword list not

if i add any word in badword list it's will change to **** in admin setting,....


see : http://i34.tinypic.com/2ihkow3.jpg

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: [MOD] PMv2 Tutorial Republished here
« Reply #663 on: September 25, 2009, 05:37:49 PM »
in your functions.php

find
Code: [Select]
}
     $text = str_replace("[hr]", "<hr>", $text);
  }
  if ($html !== 2) {
      $text = nl2br(trim($text));
      $text = replace_url($text);
}
  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);
  return replace_badwords(stripslashes($text));
}

replace with

Code: [Select]
}
    $text = str_replace("[hr]", "<hr>", $text);
}
  if ($html !== 2) {
      $text = nl2br(trim($text));
      $text = replace_url($text);
}
  if ($word_wrap && $text != "") {
      $text = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$word_wrap."})/i", " \\1\n", $text);
      $text = replace_badwords($text);  
}
  $text = str_replace("\n", "<br />", $text);
  $text = str_replace("\\'", "'", $text);
  $text = str_replace("\\\"", "&quot;", $text);

  return $text;
}

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #664 on: September 25, 2009, 05:51:18 PM »
thank you to much it's all fixed i think , i will test it now i hope no errors or bugs later

thank you again impss  realy you the best guy,


Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #665 on: September 26, 2009, 11:22:16 PM »
i got new error in edit image by admin i got this space

http://i36.tinypic.com/30u79f8.jpg

how i can fix it

thanks

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #666 on: September 28, 2009, 11:17:04 PM »
please i need help anyone can help me ?

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #667 on: October 02, 2009, 04:19:44 PM »
'V@nо'  please help me to fix this please

Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #668 on: October 02, 2009, 04:34:31 PM »
We need for an update. The modification must be grouped together again.
Wir brauchen dafür mal ein Update. Die Modifikation muss einmal zusammengefasst werden.

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
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 qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #670 on: October 02, 2009, 04:39:01 PM »
Dont work. Only for Admin / Mod

Offline arabcine

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #671 on: October 03, 2009, 12:34:58 AM »
[MOD] PMv3 - 1.7.4 / 1.7.6 - Tutorial Republished here


An Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.  



please all fine its work but i have only this problem how i can fix it please just this

http://i36.tinypic.com/30u79f8.jpg

how i can fix it

thanks
« Last Edit: October 03, 2009, 12:45:06 AM by arabcine »

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #672 on: November 08, 2009, 04:43:56 PM »
Hi all   :wink:  :)

4images Version: 1.7.7
PMv1 - nie installiert

Problem:
BBCode bei PN funktioniert nicht - Smilies werden nicht angezeigt (auch bei den Kommentaren nicht - da hätt ich sie auch gern *gg* )
Kommentare: BBCode funktioniert einwandfrei.

Habe diesen Thread genau durchforstet und meine PN zum laufen gebracht - leider machen mir die BBcodes Sorgen :cry: irgendwas läuft da schief ><

Da ich nicht wusste welche Datei siehts bei mir so aus:

3 Files in templates: :(

BBCODE.html
bbcode.html
bbcode2.htm
l

BBCODE.html
Code: [Select]
<br />

<script language="JavaScript" type="text/javascript">

tag_prompt = "{lang_tag_prompt}";



link_text_prompt = "{lang_link_text_prompt}";

link_url_prompt = "{lang_link_url_prompt}";

link_email_prompt = "{lang_link_email_prompt}";



list_type_prompt = "{lang_list_type_prompt}";

list_item_prompt = "{lang_list_item_prompt}";



tags = new Array();



function getarraysize(thearray) {

  for (i = 0; i < thearray.length; i++) {

    if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) {

      return i;

    }

  }

  return thearray.length;

}



function arraypush(thearray,value) {

  thearraysize = getarraysize(thearray);

  thearray[thearraysize] = value;

}



function arraypop(thearray) {

  thearraysize = getarraysize(thearray);

  retval = thearray[thearraysize - 1];

  delete thearray[thearraysize - 1];

  return retval;

}



function bbcode(theform,bbcode,prompttext) {

  inserttext = prompt(tag_prompt+"\n["+bbcode+"]xxx[/"+bbcode+"]",prompttext);

  if ((inserttext != null) && (inserttext != "")) {

    theform.comment_text.value += "["+bbcode+"]"+inserttext+"[/"+bbcode+"] ";

    theform.comment_text.focus();

  }

}



function namedlink(theform,thetype) {

  linktext = prompt(link_text_prompt,"");

  var prompttext;

  if (thetype == "URL") {

    prompt_text = link_url_prompt;

    prompt_contents = "http://";

  }

  else {

    prompt_text = link_email_prompt;

    prompt_contents = "";

  }

  linkurl = prompt(prompt_text,prompt_contents);

  if ((linkurl != null) && (linkurl != "")) {

    if ((linktext != null) && (linktext != "")) {

      theform.comment_text.value += "["+thetype+"="+linkurl+"]"+linktext+"[/"+thetype+"] ";

    }

    else {

      theform.comment_text.value += "["+thetype+"]"+linkurl+"[/"+thetype+"] ";

    }

  }

  theform.comment_text.focus();

}



function dolist(theform) {

  listtype = prompt(list_type_prompt, "");

  if ((listtype == "a") || (listtype == "1")) {

    thelist = "[list="+listtype+"]\n";

    listend = "[/list="+listtype+"] ";

  }

  else {

    thelist = "[list]\n";

    listend = "[/list] ";

  }

  listentry = "initial";

  while ((listentry != "") && (listentry != null)) {

    listentry = prompt(list_item_prompt, "");

    if ((listentry != "") && (listentry != null)) {

      thelist = thelist+"[*]"+listentry+"[/*]\n";

    }

  }

  theform.comment_text.value += thelist+listend;

  theform.comment_text.focus();

}

</script>

<table border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td>

      <table border="0" cellspacing="1" cellpadding="3">

        <tr>

          <td class="head1">{lang_bbcode}</td>

        </tr>

        <tr>

          <td class="row1">

            <input type="button" value=" B " onclick="bbcode(this.form,'B','')" name="button" class="button" />

            <input type="button" value=" I " onclick="bbcode(this.form,'I','')" name="button" class="button" />

            <input type="button" value=" U " onclick="bbcode(this.form,'U','')" name="button" class="button" />

            <input type="button" value="IMG" title="IMG" onclick="bbcode(this.form,'IMG','http://')" name="button" class="button" />

            <input type="button" value="http://" title="URL" onclick="namedlink(this.form,'URL')" name="button" class="button" />

            <input type="button" value="Code" title="CODE" onclick="bbcode(this.form,'code','')" name="button" class="button" />

            <input type="button" value="List" title="LIST" onclick="dolist(this.form)" name="button" class="button" />

          </td>

        </tr>

      </table>

    </td>

  </tr>

</table>

bbcode.html
Code: [Select]
<br />

<script language="JavaScript" type="text/javascript">

tag_prompt = "{lang_tag_prompt}";



link_text_prompt = "{lang_link_text_prompt}";

link_url_prompt = "{lang_link_url_prompt}";

link_email_prompt = "{lang_link_email_prompt}";



list_type_prompt = "{lang_list_type_prompt}";

list_item_prompt = "{lang_list_item_prompt}";



tags = new Array();



function getarraysize(thearray) {

  for (i = 0; i < thearray.length; i++) {

    if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) {

      return i;

    }

  }

  return thearray.length;

}



function arraypush(thearray,value) {

  thearraysize = getarraysize(thearray);

  thearray[thearraysize] = value;

}



function arraypop(thearray) {

  thearraysize = getarraysize(thearray);

  retval = thearray[thearraysize - 1];

  delete thearray[thearraysize - 1];

  return retval;

}



function bbcode(theform,bbcode,prompttext) {

  inserttext = prompt(tag_prompt+"\n["+bbcode+"]xxx[/"+bbcode+"]",prompttext);

  if ((inserttext != null) && (inserttext != "")) {

    theform.comment_text.value += "["+bbcode+"]"+inserttext+"[/"+bbcode+"] ";

    theform.comment_text.focus();

  }

}



function namedlink(theform,thetype) {

  linktext = prompt(link_text_prompt,"");

  var prompttext;

  if (thetype == "URL") {

    prompt_text = link_url_prompt;

    prompt_contents = "http://";

  }

  else {

    prompt_text = link_email_prompt;

    prompt_contents = "";

  }

  linkurl = prompt(prompt_text,prompt_contents);

  if ((linkurl != null) && (linkurl != "")) {

    if ((linktext != null) && (linktext != "")) {

      theform.comment_text.value += "["+thetype+"="+linkurl+"]"+linktext+"[/"+thetype+"] ";

    }

    else {

      theform.comment_text.value += "["+thetype+"]"+linkurl+"[/"+thetype+"] ";

    }

  }

  theform.comment_text.focus();

}



function dolist(theform) {

  listtype = prompt(list_type_prompt, "");

  if ((listtype == "a") || (listtype == "1")) {

    thelist = "[list="+listtype+"]\n";

    listend = "[/list="+listtype+"] ";

  }

  else {

    thelist = "[list]\n";

    listend = "[/list] ";

  }

  listentry = "initial";

  while ((listentry != "") && (listentry != null)) {

    listentry = prompt(list_item_prompt, "");

    if ((listentry != "") && (listentry != null)) {

      thelist = thelist+"[*]"+listentry+"[/*]\n";

    }

  }

  theform.comment_text.value += thelist+listend;

  theform.comment_text.focus();

}

</script>

<table border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td>

      <table border="0" cellspacing="1" cellpadding="3">

        <tr>

          <td class="head1">{lang_bbcode}</td>

        </tr>

        <tr>

          <td class="row1">

            <input type="button" value=" B " onclick="bbcode(this.form,'B','')" name="button" class="button" />

            <input type="button" value=" I " onclick="bbcode(this.form,'I','')" name="button" class="button" />

            <input type="button" value=" U " onclick="bbcode(this.form,'U','')" name="button" class="button" />

            <input type="button" value="IMG" title="IMG" onclick="bbcode(this.form,'IMG','http://')" name="button" class="button" />

            <input type="button" value="http://" title="URL" onclick="namedlink(this.form,'URL')" name="button" class="button" />

            <input type="button" value="Code" title="CODE" onclick="bbcode(this.form,'code','')" name="button" class="button" />

            <input type="button" value="List" title="LIST" onclick="dolist(this.form)" name="button" class="button" />

          </td>

        </tr>

      </table>

    </td>

  </tr>

</table>

bbcode2.html
Code: [Select]
<br />
<script language="JavaScript" type="text/javascript">
// Helpline messages
{bbc_help}
</script>
<script language="JavaScript" type="text/javascript" src="bbcode2.js"></script>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="head1">{lang_bbcode}</td>
</tr>
<tr>
<td class="row1">
<table border="0" cellspacing="0" cellpadding="1" width="300">
<tr>
<td onMouseOver="helpline('sm')">
{smiles_text}&nbsp;<a href="smiles.php" onclick="window.open('smiles.php', '_4imagessmilies', 'resizable=yes,scrollbars=yes,WIDTH=225, HEIGHT=310');return false;" target="_4imagessmilies">{lang_all}</a>
</td>
</tr>
            </table>
<table border="0" cellspacing="0" cellpadding="1" width="305">
<tr>
<td>
<input type="button" class="bbcbutton" accesskey="b" name="addbbcode0" value="B" style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="i" name="addbbcode2" value="i" style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="u" name="addbbcode4" value="u" style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode6" value="S" style="text-decoration: line-through; width: 30px" onClick="bbstyle(6)" onMouseOver="helpline('st')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode8" value="Sub" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('sb')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode10" value="Sup" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('sp')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode12" value="Shadow" style="width: 55px" onClick="bbstyle(12)" onMouseOver="helpline('sh')" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="1" width="300">
<tr>
<td>
<input type="button" class="bbcbutton" accesskey="w" name="addbbcode27" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(27)" onMouseOver="helpline('w')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="e" name="addbbcode29" value="Email" style="width: 50px" onClick="bbstyle(29)" onMouseOver="helpline('e')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="q" name="addbbcode21" value="Quote" style="width: 50px" onClick="bbstyle(21)" onMouseOver="helpline('q')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode14" value="Glow" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('g')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode31" value="Flash" style="width: 50px" onClick="bbstyle(31)" onMouseOver="helpline('fl')" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="p" name="addbbcode25" value="Img" style="width: 40px"  onClick="bbstyle(25)" onMouseOver="helpline('p')" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td nowrap>
<select class="select" name="addbbcode34" onChange="bbfontstyle('[color=' + this.form.addbbcode34.options[this.form.addbbcode34.selectedIndex].value + ']','[/color]');this.form.addbbcode34.selectedIndex=0;" onmouseover="helpline('s')">
<option style="color:black; background-color: #FAFAFA" value="black" >Font colour</option>
<option style="color:black; background-color: #FAFAFA" value="#444444" >Default</option>
<option style="color:darkred; background-color: #FAFAFA" value="darkred" >Dark Red</option>
<option style="color:red; background-color: #FAFAFA" value="red" >Red</option>
<option style="color:orange; background-color: #FAFAFA" value="orange" >Orange</option>
<option style="color:brown; background-color: #FAFAFA" value="brown" >Brown</option>
<option style="color:yellow; background-color: #FAFAFA" value="yellow" >Yellow</option>
<option style="color:green; background-color: #FAFAFA" value="green" >Green</option>
<option style="color:olive; background-color: #FAFAFA" value="olive" >Olive</option>
<option style="color:cyan; background-color: #FAFAFA" value="cyan" >Cyan</option>
<option style="color:blue; background-color: #FAFAFA" value="blue" >Blue</option>
<option style="color:darkblue; background-color: #FAFAFA" value="darkblue" >Dark Blue</option>
<option style="color:indigo; background-color: #FAFAFA" value="indigo" >Indigo</option>
<option style="color:violet; background-color: #FAFAFA" value="violet" >Violet</option>
<option style="color:white; background-color: #FAFAFA" value="white" >White</option>
<option style="color:black; background-color: #FAFAFA" value="black" >Black</option>
</select>
<select class="select" name="addbbcode35" onChange="bbfontstyle('[size=' + this.form.addbbcode35.options[this.form.addbbcode35.selectedIndex].value + ']','[/size]');this.form.addbbcode35.selectedIndex=0;" onmouseover="helpline('f')">
<option value="" >Font size</option>
<option value="7" >Tiny (7px)</option>
<option value="9" >Small (9px)</option>
<option value="10" >Medium (10px)</option>
<option value="12" >Normal (12px)</option>
<option value="16" >X-Large (16px)</option>
<option value="18" >Large (18px)</option>
<option  value="24" >Huge (24px)</option>
</select>
<select class="select" name="addbbcode36" onChange="bbfontstyle('[font=' + this.form.addbbcode36.options[this.form.addbbcode36.selectedIndex].value + ']','[/font]');this.form.addbbcode36.selectedIndex=0;" onmouseover="helpline('ff')">
<option value="" >Font face</option>
<option value="Arial" >Arial</option>
<option value="Courier New" >Courier New</option>
<option value="Helvetica" >Helvetica</option>
<option value="Impact" >Impact</option>
<option value="sans-serif" >sans-serif</option>
<option value="Tahoma" >Tahoma</option>
<option value="Times New Roman" >Times New Roman</option>
<option value="Verdana" >Verdana</option>
</select>
</td>
</tr>
<tr>
  <td>
&nbsp;<a href="javascript:bbstyle(-1)" onMouseOver="helpline('a')">{lang_close_tags}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right">
  <div class="gensmall"><textarea name="helpbox" size="100" maxlength="100" class="helpline" readonly>{bbc_help_default}</textarea></div>
</td>
</tr>
</table>

Soll ich eine andere Datei zeigen? Sagt mir bitte bescheid welche für die Behebung notwendig ist :wink:

Ich möchte auch gerne meinen Dank aussprechen für die Leistung in diesem Forum - Habe schon ein paar Mods installiert und möchte nicht mehr ohne sie sein.
Vielen Dank ^_^

und V@no wird hier ja richtig angehimmelt *gg* niedlich
*auchanhimmel :)*

Ich hoffe hier eine Lösung für mein Problem zu finden - wäre echt schade um den PN Mod wegen den doofen BBCodes ^.^

Liebe Grüße,
Habi


----------------------------------
english:

PMv1 - not installed

BBCode doesnt work with the PM's - also the smilies dont show up
Comments: BBCode works perfect - and no smilies again (I'd like some there too *hehe* )

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

Screenshot:
orchids.manime.net/screen-1.jpg
orchids.manime.net/screen-2.jpg


Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #673 on: November 08, 2009, 09:05:02 PM »
Diese Modifikation fehlt wirklich :D

Offline Habi86

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #674 on: November 10, 2009, 04:15:40 PM »
Diese Modifikation fehlt wirklich :D

Ja ist sehr schade :( Kurt arbeitet scheinbar daran (hab ich in diesem Thread Universum gelesen)
@Kurt kann man dir irgendwie dabei helfen?  :(

Oder ist das alles eh nicht mehr aktuell :/

 

Post your comments here