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

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

0 Members and 2 Guests are viewing this topic.

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #705 on: September 09, 2010, 03:03:54 AM »
Hello vano,

Yes sir i have checked all major browsers. I had this problem in the past also but ive never known what and why these occurs.  :? :(


Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #706 on: September 09, 2010, 06:46:08 AM »
I'd not see anything in the code that could possibly cause what you've describing...
Can I test it myself? (PM to "other" me if you wish)
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #707 on: September 09, 2010, 07:59:14 PM »
Hello Vano,

I sent you a message but my internet connection kept on saying error pm, so i dont know if you have recieved the PM i sent you on your other account. I was just asking you to send me your IP address so that i can include your ip into the htaccess, so that you can gain access and look at the problem that im having. Thank you VANO

Also vano, when you view the site, can you tell me how i can change the width and size of the bbcode inside of the pm, i have managed to change it via your advice but what i mean is the smily faces are now very pixilated.

God bless u man
« Last Edit: September 09, 2010, 08:13:19 PM by zakaria666 »

Offline Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [MOD] PMv2 Tutorial Republished here
« Reply #708 on: September 10, 2010, 07:29:41 PM »
OK, ich habe den Fehler von meinem Beitrag http://www.4homepages.de/forum/index.php?topic=6692.msg150464#msg150464 gefunden. Es ist ein Fehler in dem PMv3 von KurtW. da es den Originalen Beitrag nicht mehr gibt, veröffentliche ich die Änderrungen hier einmal. Ich hoffe das stört keinen!?

Öffne /lang/<yourlanguage>/main.php  und suche
Code: [Select]
//-----------------------------------------------------
//--- PM (Private Messenging) -------------------------
//-----------------------------------------------------

füge danach folgendes ein

Code: [Select]
$lang['pm_user_inbox'] = "Inbox limit<span class=\"smalltext\"><br />set to <font color=red><b>0</b></font> to use global settings<br>or <font color=red><b>-1</b></font> for unlimited</span>";
$lang['pm_user_sentbox'] = "Sentbox limit<span class=\"smalltext\"><br />set to <font color=red><b>0</b></font> to use global settings<br>or <font color=red><b>-1</b></font> for unlimited</span>";
$lang['pm_user_outbox'] = "Outbox limit<span class=\"smalltext\"><br />set to <font color=red><b>0</b></font> to use global settings<br>or <font color=red><b>-1</b></font> for unlimited</span>";

suche
Code: [Select]
"s" => "Durchgestrichen: [s]text[/s] (alt+s)",
ersetze es durch
Code: [Select]
"st" => "Durchgestrichen: [s]text[/s] (alt+s)",
Öffne templates/<yourtemplate>/pm_new.html

suche
Code: [Select]
<input type="button" class="bbcbutton" accesskey="" name="addbbcode6" value="S" style="text-decoration: line-through; width: 30px" onClick="bbstyle(6)" onMouseOver="helpline('s')" />
ersetze es mit
Code: [Select]
<input type="button" class="bbcbutton" accesskey="" name="addbbcode6" value="S" style="text-decoration: line-through; width: 30px" onClick="bbstyle(6)" onMouseOver="helpline('st')" />
Das war es dann auch schon. KurtW fehlt halt immer noch hier  :!:
« Last Edit: December 18, 2010, 07:32:44 PM by Tino23 »

Offline Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [MOD] PMv2 Tutorial Republished here
« Reply #709 on: October 10, 2010, 12:05:00 PM »
Für die Version 1.7.8 muß es da in der logout.php am Ende so lauten?
Code: [Select]
if (!preg_match("/index\.php/", $url) && !preg_match("/lightbox\.php/", $url) && !preg_match("/login\.php/", $url) && !preg_match("/register\.php/", $url) && !preg_match("/member\.php/", $url)&& !preg_match("/pm\.php/", $url)) {
  redirect($url);
}
else {
  redirect("index.php");
}
?>

Offline tutton

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #710 on: December 24, 2010, 12:28:03 PM »
will this mod still work with the newest version?

i'm going to try anyways but i just wanted to ask if most of these modifications will still work with the newer versions? (1.7)

thanks.

Offline juewei

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #711 on: February 08, 2011, 09:28:45 AM »
hallo ich kann bei mir die pm_install.php  nicht ausführen und muss die Datenbank manuell ausführen über phpmyadmin
kann mir jemand schreiben, was ich bei phpmyadmin anlegen muss?

Danke :D

Offline salehalnass

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #712 on: July 27, 2011, 12:43:39 AM »
xxx: gallery. vano. org/file55dl  Der Link funktioniert nicht

Ich hoffe, Link

Ich warte darauf,

Rembrandt

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #713 on: July 27, 2011, 05:15:26 AM »
Willkommen im Forum!
...Ich hoffe, Link
Ich warte darauf,
auf was wartest du?
im Mod Thread im Atachment hast du alle files:
http://www.4homepages.de/forum/index.php?action=dlattach;topic=6692.0;attach=963

mfg Andi

Offline FairyCosmo

  • Pre-Newbie
  • Posts: 9
  • ...for the lulz
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #714 on: November 26, 2014, 09:12:34 PM »
Tja dieser Mod funktioniert scheinbar nicht mehr mit der aktuellsten 1.7.11 Der will das ich sachen finde u. ersetzte die es gar nicht mehr im Quellcode gibt.

Eins vorne weg. Ich finde es richtig klasse das hier so viele Mods gibt die man sich einbauen kann. Allerdings was ich eine bodenlose frechheit finde ist das ich nen haufen Geld für eine lizenz bezahlt habe und der großteil der Mods einfach nicht mehr weiter gepflegt werden oder sich die user einfach verkrümeln. Wenn man sowas in die Welt ruft sollte man damit rechnen das man es nunmal auch weiterführen muss auf dauer. Microsoft stellt auch einfach nicht ihre updateserver für Windows 7 aus.

Klar diese Mods sind ein reines hobbyprojekt aber warum dann Geld für die Gallerie verlangen, die meiner meinung nach eh ziemlich mager mit extras und co. ausgestattet ist und spambots (Ja auch mit dem mathe captcha) wie fliegen anlockt), und dann nicht einmal mehr die benötigten Mods mehr bereit gestellt werden.

Hätte man nen vernünftigen PM Mod und nen paar smilies oder nen gescheiten Spamschutz mit anboard geholt hätten wir dieses dilemma jetzt nicht! Ich glaube ich spreche für alle gefrusteten käufer oder user dieser gallerie die sich hier registriert haben, um sich ihre mods einzubauen um dann bei schritt 5 sich dann zu vergewissern das der mod steinalt ist und man sich erst hunderte forenseiten in deutsch/englisch mischmasch durchlesen muss um sich selber den code zusammen zu frieckeln - das kanns echt nicht sein leute! Dann werden Mods offline genommen weil rumgeflennt wird "Die entfernen meine copyrightlinks.. und darum lösch ich alles.." Solls das gewesen sein? Liebe Programierer - Wenn ihr das macht um eure webseiten oder Nicknamen zu promoten oder um Geld abzustauben, dann sucht euch gefällist ne gescheite Arbeit oder fangt an Grafity zu sprayen - dann sieht mit sicherheit jeder euren Namen! Ich bin stinksauer und überlege mir mein Geld zurück zu verlangen! Oder soll ich mir für nen haufen Geld einen programierer anheuern? Ne danke!

Schönen abend noch!
« Last Edit: November 27, 2014, 05:01:19 PM by FairyCosmo »

Offline Aleksey

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #715 on: May 22, 2020, 07:05:47 PM »
I fixed this MOD, and now it works for gallery 1.8 and php 7+

After install, you need to make these changes:

New correct Step 6

Open /includes/functions.php
Find:
Code: [Select]
function format_text
just comment entire function by doing this:
Add before that line:
Code: [Select]
/*
and at the end of the function find (in default 4images ver:1.8 it would be):
Code: [Select]
  $text = str_replace("\\'", "'", $text);

  return $text;
}

add after that closing bracket } add this:
Code: [Select]
*/
After Step 6.2

Open /includes/functions.php
Find:
Code: [Select]
     $text = preg_replace("/\[php\](.*?)\[\/php\]/esi", "phphighlite('\\1')", $text);
      $text = preg_replace("/\[code\](.*?)\[\/code\]/esi", "bb_code('\\1')", $text);
Replace with:
Code: [Select]
     $text = preg_replace_callback("/\[php\](.*?)\[\/php\]/si", "phphighlite", $text);
      $text = preg_replace_callback("/\[code\](.*?)\[\/code\]/si", "bb_code", $text);

Find:
Code: [Select]
    $text = preg_replace("/\[thumb=([0-9]+)(,([0-9]+)?)?(,([a-zA-Z]+))?\]/esi","thumb('\\1','\\3','\\5')",$text);
Replace with:
Code: [Select]
    $text = preg_replace_callback("/\[thumb=([0-9]+)(,([0-9]+)?)?(,([a-zA-Z]+))?\]/si","thumb",$text);

After Step 7

Open /includes/page_header.php
Find:
Code: [Select]
      if (ereg("pm.php", $self_url) && $action == "inbox") {Replace with:
Code: [Select]
      if (preg_match("/pm.php/", $self_url) && $action == "inbox") {
Find:
Code: [Select]
      }elseif (!ereg("pm.php", $self_url) || (ereg("pm.php", $self_url) && ($action == "sentbox" || $action == "outbox"))){
Replace with:
Code: [Select]
      }elseif (!preg_match("/pm.php/", $self_url) || (preg_match("/pm.php/", $self_url) && ($action == "sentbox" || $action == "outbox"))){

After Step 18

Open logout.php
Find:
Code: [Select]
if (!preg_match("/index\.php/", $url) && !preg_match("/lightbox\.php/", $url) && !preg_match("/login\.php/", $url) && !preg_match("/register\.php/", $url) && !preg_match("/member\.php/", $url)) {Replace with:
Code: [Select]
if (!preg_match("/index\.php/", $url) && !preg_match("/lightbox\.php/", $url) && !preg_match("/login\.php/", $url) && !preg_match("/register\.php/", $url) && !preg_match("/member\.php/", $url) && !preg_match("/pm\.php/", $url)) {
Download the new files attached to this message: pm.php and /includes/paging.php is archived and unarchived in your gallery.

Enjoy! :D
« Last Edit: May 22, 2020, 07:17:17 PM by Aleksey »

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.804
  • I ♥ 4I
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #716 on: September 13, 2020, 03:26:15 PM »
Nice !