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

Author Topic: [MOD] PMv2 Tutorial Republished here  (Read 705505 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 #690 on: August 11, 2010, 12:33:11 AM »
Hello sir im so sorry forgive me i think it was my fault i did not make alot of sense,

The problem is it shows me what to cmment out but the problem is within the function that the MOD is asking me to comment out it has 1 line of code from the Media Sites 1.11 MOD that u created. My question is, does that line of code also must be commented out because that 1 line of code is inside the function it is asking me to comment out, so im wondering if i should go ahead with it

Im so sorry sir it was my fault, i didnt not make sense

God bless u vano

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #691 on: August 11, 2010, 02:19:05 AM »
Well, as I said, once you comment out the original function and added new function from this mod, then add the line from the media sites mod to that new function.
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 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 #692 on: August 11, 2010, 03:53:18 PM »
you need comment out ENTIRE function, not part of it, the way it's commented now you'll get parse error. You've stuck with that replace_badwords I've mentioned in the original instructions, forget about that line, count the brackets (or get a proper php editor ;))

Hint: the end of the code you showed is the end of the function
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 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 #693 on: August 11, 2010, 05:07:52 PM »
Oh, for very mysterious reason there are missing steps in the instructions. Thanks to the "way back machine" we can recover it:
http://web.archive.org/web/20060529203926/www.4homepages.de/forum/index.php?topic=6692.msg30078#msg30078

OFFTOPIC:
Mysterious is because if you look at bottom of the post with instructions on that link, you'll see that I've edited that post on september 20, 2006, but on this link:
http://web.archive.org/web/20070515042126/www.4homepages.de/forum/index.php?topic=6692.msg30078#msg30078
which was captured on december 20, 2006 it still says that I was the last who edited that reply on sept 20, 2006, but that reply is no longer complete...

Im sorry to ask but u having 2 accounts yes? or just 1 account, everytime i seeing two vano's and maybe someone is trying to be u. sorry if im wrong.
Yes, I have two accounts, the second account (not administrator) I use when I'm on non-trusted computer
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 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 #694 on: August 11, 2010, 05:45:44 PM »
The links opens fine in all browsers I've tried...I won't have time to update the original post with recovered data any time soon (formatting takes quiet a lot of time), so if you managed open the first link, good, use it to complete the installation. if not, try this and select july 21,2006
http://web.archive.org/web/*/http://www.4homepages.de/forum/index.php?topic=6692.0

P.S.
even if someone used my account (which is doubtful), there would be different date when the reply was last edited...that's why it's mysterious
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 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 #695 on: August 12, 2010, 04:16:57 AM »
Redo step 6.2, I've updated the code.



P.S.
The mystery is solved. Nobody edited that post, it was not altered in any way. What changed was the SMF forum software which apparently behaved differently when posted a single [img] bbcode tag in version that was on july 2006 vs version on december 2006.
« Last Edit: August 12, 2010, 04:43:13 AM by V@no »
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 zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #696 on: August 21, 2010, 06:41:34 PM »
HELP please

When i go to send a new message for example (:example:) is inside the textbox. The only way to remove it is to highlight it and remove it but when i refresh page then :example: is appeared again. This and also how can i resize animated gifs. on comment bit, i can resize, but on PM sending i cannot seem to resize the animated gifs inside the bbcode as it looks very unorganized.

please help me,

here is example with arrows, in textbox i get something inside it everytime i try to send message and as u can see the animated gifs are to big and to small i want to resize to 1 size

« Last Edit: August 21, 2010, 10:48:38 PM by zakaria666 »

Offline damiro

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #697 on: August 25, 2010, 01:16:07 AM »
Hello guys,

first of all thank you V@no for this great explication to this usefull mod.
I tried to install the mod PMv2 on version 1.7.2 . Everything worked fine, i can switch between inbox, outbox and sentbox but by clicking on "new message" ( opening domain.com/pm.php?action=new ) i get a http 500 error site in the browser. For any reason it cannot load the template pm_new.html .
I appreciate your help in this, its very important for me. Thank you and regards.

Damiro


Edit: I just found the solution for the problem, in the functions.php there were two lines with "function format_text" so i got confused, after commenting out the second function at the end, the message writing seems to work :-)
« Last Edit: August 25, 2010, 11:47:49 AM by damiro »

Offline Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [MOD] PMv2 Tutorial Republished here
« Reply #698 on: August 26, 2010, 11:14:05 PM »
Ich hab bei mir im ACP unter User hinzugügen drei leere felder von dem PM MOD entdeckt mit denen ich nicht so recht was anzufangen weis.
Die Felder werden in der db_field_definitions.php erzeugt mit
Code: [Select]
$additional_user_fields['user_pm_inbox'] = array($lang['pm_user_inbox'], "text", 0);
$additional_user_fields['user_pm_sentbox'] = array($lang['pm_user_sentbox'], "text", 0);
$additional_user_fields['user_pm_outbox'] = array($lang['pm_user_outbox'], "text", 0);
Kann mit einer sagen wozu diese Felder dienen sollen?




Nachtrag:
Im Schritt 18 Steht in der 1.7.7 Version folgende Zeile
Code: [Select]
if (($user_info['user_level'] != GUEST && $user_info['user_level'] != USER_AWAITING)) {
    $site_sess->logout($user_info['user_id']);
Wird dieser dann gegen den im Schritt 18 Beschriebenen Teil ersetzt, oder muß das in der 1.7.7 Version anders lauten?
« Last Edit: September 01, 2010, 07:10:28 PM by Tino23 »

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #699 on: September 03, 2010, 01:39:51 AM »
@Vano

Hello sir. I just want to know how on this MOD on the left hand side to make the random images more than 1. On the index.php script the below is what i changed to LIMIT 18

Code: [Select]
  FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (".get_auth_cat_sql("auth_viewcat").")
        ORDER BY RAND()
        LIMIT 6";

and this problem doesnt just apply to this MOD but to many other MODS. I just want to know for the PM mod how i make the RANDOM images show more random images.

Thank man
« Last Edit: September 03, 2010, 02:56:49 PM by zakaria666 »

Offline Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [MOD] PMv2 Tutorial Republished here
« Reply #700 on: September 05, 2010, 03:04:40 PM »
Ist der Code für die logout.php Datei so richtig?

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: logout.php                                           *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.7                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 0;

$nozip 1;
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');

if ((
$user_info['user_level'] != GUEST && $user_info['user_level'] != USER_AWAITING)) {
    
$site_sess->logout($user_info['user_id']);
}

if (!
ereg("index.php"$url) && !ereg("lightbox.php"$url) && !ereg("login.php"$url) && !ereg("register.php"$url) && !ereg("member.php"$url) && !ereg("pm.php"$url))  {

else {
  
redirect("index.php");
}
?>

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 #701 on: September 06, 2010, 02:21:01 AM »
When i go to send a new message for example (:example:) is inside the textbox. The only way to remove it is to highlight it and remove it but when i refresh page then :example: is appeared again.
Is that AFTER you pressed submit button and after you pressed refresh in browser and it asked you if you want re-submit? Or it's type a text, delete it (clear out the textarea), then hit refresh and the text you deleted re-appear again? What browser?

This and also how can i resize animated gifs. on comment bit, i can resize, but on PM sending i cannot seem to resize the animated gifs inside the bbcode as it looks very unorganized.
How do you resize on comment_bit? Try modify this line in includes/functions.php
           $smileytocache[] = "\\1<img src=\"$imagesdir/$val.gif\" alt=\"\" border=\"0\">";

Edit: I just found the solution for the problem, in the functions.php there were two lines with "function format_text" so i got confused, after commenting out the second function at the end, the message writing seems to work :-)
You were supposed to comment out the first function, the original one. The function at the end is what you've added from Step 6.2 ;)


Missed step 3? Make sure you apply that step to every main.php in your gallery (each language has it's own main.php)

Ist der Code für die logout.php Datei so richtig?
Yes, it looks correct.
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 Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [MOD] PMv2 Tutorial Republished here
« Reply #702 on: September 08, 2010, 08:56:37 PM »
Bei der logout.php bekomme ich eine Fehlermeldung
Parse error: syntax error, unexpected T_ELSE in /logout.php on line 38

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #703 on: September 09, 2010, 12:15:44 AM »
To VANO

Quote
Is that AFTER you pressed submit button and after you pressed refresh in browser and it asked you if you want re-submit? Or it's type a text, delete it (clear out the textarea), then hit refresh and the text you deleted re-appear again? What browser?

As soon as i click on compose new message to send to someone the text box has something inside of it. I have followed the instructions 100% and i commented out the function on 6.2 and everyones ok. Except for everything i go to write a new message there is something inside of the textbox which is a smily bbcode.

this is the textbox html code
Code: [Select]
<textarea name="message" cols="125" rows="10" class="commenttextarea" wrap="virtual" {if bbcode2}onSelect="storeCaret(this);" onClick="storeCaret(this);" onKeyUp="storeCaret(this);"{endif bbcode2}   />{message}</textarea>
the problem i think its coming from the functions that we replaced in the includes/functions.php.

Please help me vano, ive had this problem 2 months now. Thank you man

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 #704 on: September 09, 2010, 01:24:47 AM »
@Tino23:
this will work:
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: logout.php                                           *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.7                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) fur weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 0;

$nozip 1;
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');

if ((
$user_info['user_level'] != GUEST && $user_info['user_level'] != USER_AWAITING)) {
    
$site_sess->logout($user_info['user_id']);
}

if (!
ereg("index.php"$url) && !ereg("lightbox.php"$url) && !ereg("login.php"$url) && !ereg("register.php"$url) && !ereg("member.php"$url) && !ereg("pm.php"$url)) {
  
redirect($url);
}
else {
  
redirect("index.php");
}
?>

(You've deleted two extra lines, that's why it was giving you error)


@zakaria666:
have you checked in different browsers?
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)