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

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

0 Members and 1 Guest are viewing this topic.

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 #180 on: December 17, 2005, 12:23:39 AM »
hmmm..didnt it work before? if so, then I dont know what you've changed...try reupload pm.php file.
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 Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #181 on: December 17, 2005, 10:27:55 AM »
Ok, I've done a reupload, but the problem is still there...

More details: when I click on the link I log automatically out and I have not enough rights to view that page and its also with other users know...

 :!: Hey I found the problem... It's only my computer, that means on other computers there's no problem  :twisted: 
 :!: Probably the cookies or something else... Try to fix it!!!

Thanks guys, espacially V@no  :wink:


---> the new firewall was the problem....

Offline Leppi

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #182 on: January 10, 2006, 09:55:38 PM »
Warum kann man die file nich saugen?! Vano's gallerie is down. gibt's die file auch irgendwo anders?!
------------------------------------------------------------------------------------------------------------------------------------------
Why can't I download the file?! Vano's gallery is down. Is it possible to download the file somewhere else?!

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] PMv2 Tutorial Republished here
« Reply #183 on: January 10, 2006, 10:09:58 PM »
I have uploaded the PMv2 MOD on my server - for the downtime of v@no´s server

Download:
http://www.snuup.de/4img_mods/pm_v2.zip

Project offline

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #184 on: January 10, 2006, 10:10:49 PM »
@Leppi,
... dann warte mal einige Stunden ... und gallery.vano.org wird wieder online sein ...  :roll:
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 Leppi

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #185 on: January 10, 2006, 10:17:58 PM »
k'sen werds später halt nochmal probieren!

cya & mfg Leppi

Offline pff

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #186 on: January 22, 2006, 05:54:07 PM »
Hallo zusammen, gibt es das PMv2-System irgendwo schon vorinstalliert zum Download, so dass einfach nur gerade diese Mod und sonst nichts darin ist (also einfach alle Dateien, die angepasst werden mussten fix fertig..), denn die lange Installation ist mir ein wenig zuwider, ich möchte aber dennoch ein solches System einbauen.
Wenn möglich in Deutsch.
Vielen Dank schon mal..

Offline deusxx

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #187 on: January 22, 2006, 08:20:31 PM »
Help at me a problem at performance 6 items(points) on installations gives out:


Quote
Step 6

Open /includes/functions.php
Find:
Code:

Fatal error: Call to undefined function: format_text() in /home/f/fotocarnus/deusweb/public_html/includes/functions.php on line 189


My page before change that

Quote
REMOVED
« Last Edit: January 22, 2006, 08:28:33 PM by V@no »

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 #188 on: January 22, 2006, 08:28:46 PM »
Restore backups and 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 deusxx

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #189 on: January 22, 2006, 09:42:43 PM »
At me a problem when I insert it  /*  and 
*/


Quote
Open /includes/functions.php
Find:
Code:

function format_text


just comment entire function by doing this:
Add before that line:
Code:

/*

and at the end of the function find (in default 4images it would be):
Code:

  return replace_badwords($text);
}

add after that closing bracket } add this:
Code:

*/


Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] PMv2 Tutorial Republished here
« Reply #190 on: January 22, 2006, 09:58:16 PM »
Quote
At me a problem when I insert it  /*  and 
*/

Do not insert this. This comments a code block out...
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline deusxx

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #191 on: January 22, 2006, 10:07:28 PM »
And as then it is necessary to execute 6 item(point) I shall not understand at me a smile only their code for example is not shown ?

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 #192 on: January 22, 2006, 10:46:16 PM »
Ok, here is an example:
in functions.php you have a block of code
Code: [Select]
function format_text($text)
{
...some more code here...
}
Now, you need to comment it out by inserting /* above the begining of code block (in php this represent beginning of comment) and */ below the code block (this represent end of comment)
So the end result should be:
Quote
/*
function format_text($text)
{
.... some more code here ....
}
*/

Hope this is more clear.
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 deusxx

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #193 on: January 22, 2006, 11:10:15 PM »

At me it turns out so!

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

  if ($html == 0) {
    $text = str_replace("&lt;", "&amp;lt;", $text);
    $text = str_replace("&gt;", "&amp;gt;", $text);
    $text = str_replace("<", "&lt;", $text);
    $text = str_replace(">", "&gt;", $text);
  }
  $text = str_replace("\n", "<br />", $text);
  $text = replace_url($text);

  if ($bbcode == 1) {
    $search_array = array(
      "/(\[)(list)(=)(['\"]?)([^\"']*)(\\4])(.*)(\[\/list)(((=)(\\4)([^\"']*)(\\4]))|(\]))/siU",
      "/(\[)(list)(])(.*)(\[\/list\])/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>",
      "<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 = str_replace("\\'", "'", $text);
  return replace_badwords($text);
}
*/


But if I so do(make) that at me and получаеться a mistake that!

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 #194 on: January 22, 2006, 11:19:31 PM »
First of all, can you see the difference between: \* and /* ?
Second, можно и по-русски ;)
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)