[ABD] phpBB Social Network 0.7.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Sshadow
Registered User
Posts: 299
Joined: Thu Aug 20, 2009 3:54 pm
Name: Chris C.
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Sshadow »

You must have not done the SQL queries correctly as the reason your getting that error is the table is missing.
mut2nt wrote:it doesnt work, it crashes

Code: Select all

SQL ERROR [ mysql4 ]

Table 'force_forum.USERS_IM_TABLE' doesn't exist [1146]

SQL

SELECT u.user_id, u.user_type, u.username, u.user_avatar, u.user_avatar_type, s.session_user_id, s.session_time, ims.user_deny_im FROM phpbb_sessions AS s, phpbb_users AS u LEFT OUTER JOIN USERS_IM_TABLE AS ims ON ims.user_id = u.user_id WHERE u.user_id = s.session_user_id AND s.session_time >= 1277421806 AND s.session_user_id <> 1 AND u.user_id <> 2 AND u.user_type <> 2 AND u.user_id IN ('54', '2', '77', '2', '79', '2', '65', '2', '2', '65', '81', '2', '2', '54', '2', '92', '2', '97', '2', '102', '2', '130', '2', '118', '55', '2', '115', '2', '118', '2', '213', '2', '95', '2', '294', '2', '53', '2', '203', '2', '174', '2', '67', '2', '112', '2', '78', '2', '72', '2', '70', '2', '98', '2', '96', '2', '92', '2', '103', '2', '100', '2', '114', '2', '128', '2', '125', '2', '133', '2', '137', '2', '144', '2', '145', '2', '151', '2', '153', '2', '149', '2', '158', '2', '173', '2', '183', '2', '195', '2', '206', '2', '220', '2', '223', '2', '2', '203', '85', '2', '119', '2', '154', '2', '275', '2', '218', '2', '373', '2', '293', '2', '352', '2', '298', '2', '369', '2', '2', '244', '68', '2', '130', '2', '2', '454', '454', '2') ORDER BY u.username ASC

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: instant_messenger.php
LINE: 309
CALL: dbal_mysql->sql_query()

FILE: instant_messenger.php
LINE: 61
CALL: showOnlineList()

FILE: common.php
LINE: 251
CALL: include_once('instant_messenger.php')

FILE: adm/index.php
LINE: 20
CALL: require('common.php')
Danielx64
Registered User
Posts: 1369
Joined: Wed Nov 04, 2009 5:51 am
Location: In a server room in Australia
Name: Daniel
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Danielx64 »

I give up
Please note that I will not be porting any of my mods to phpBB 3.1. Sorry for the inconvenience this may cause.
Image
User avatar
Sshadow
Registered User
Posts: 299
Joined: Thu Aug 20, 2009 3:54 pm
Name: Chris C.
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Sshadow »

*Daniel wrote:I give up
Well I wouldn't do that yet :) It's a BETA and I am not so sure what is so hard to grasp on that. All the problems we see in this release will be fixed in the next as has been said many times. Also its important to follow instructions so that you don't get SQL errors like you see above.
mut2nt
Registered User
Posts: 47
Joined: Sun Feb 21, 2010 8:22 pm
Location: HELL
Name: none mut2nt
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by mut2nt »

and what is the solution for my problem above ?
Lastpost
Registered User
Posts: 74
Joined: Thu Feb 04, 2010 7:09 am

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Lastpost »

Great potential in this mod, but it is just not working the way it should.
Messages are stored in the database but 9/10 times they are not shown in the chat display, when I refresh the page or browse the text is just gone etc.
But I will be following this, could turn out great. :)
User avatar
Culprit
Registered User
Posts: 356
Joined: Fri Oct 22, 2004 8:43 am
Location: prague
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Culprit »

mut2nt wrote:and what is the solution for my problem above ?
constants.php file was not modified successfully.
Image
mut2nt
Registered User
Posts: 47
Joined: Sun Feb 21, 2010 8:22 pm
Location: HELL
Name: none mut2nt
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by mut2nt »

ok, i solve that, next is this error

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4298: Cannot modify header information - headers already sent by (output started at /instant_messenger.php:460)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4300: Cannot modify header information - headers already sent by (output started at /instant_messenger.php:460)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4301: Cannot modify header information - headers already sent by (output started at /instant_messenger.php:460)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4302: Cannot modify header information - headers already sent by (output started at /instant_messenger.php:460)
User avatar
Culprit
Registered User
Posts: 356
Joined: Fri Oct 22, 2004 8:43 am
Location: prague
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Culprit »

mut2nt wrote:ok, i solve that, next is this error
Remove common.php change.
This line put into includes/functions.php BEFORE

Code: Select all

  // application/xhtml+xml not used because of IE
   header('Content-type: text/html; charset=UTF-8');
should be in function page_header.
THEN instant_messenger.php
FIND

Code: Select all

           
        }

    // Start session management
           $user->session_begin();
           $auth->acl($user->data);
           $user->setup();

        session_name( $user->data['session_id']);
        session_id( $user->data['session_id']);
        session_start();
REPLACE WITH

Code: Select all

       // Start session management
       $user->session_begin();
       $auth->acl($user->data);
       $user->setup();
    }


    session_name( $user->data['session_id']);
    session_id( $user->data['session_id']);
    session_start();
Should be working
Image
mut2nt
Registered User
Posts: 47
Joined: Sun Feb 21, 2010 8:22 pm
Location: HELL
Name: none mut2nt
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by mut2nt »

i dont understand this part
This line put into includes/functions.php BEFORE

Code: Select all

      // application/xhtml+xml not used because of IE
       header('Content-type: text/html; charset=UTF-8');
should be in function page_header.
Be more precise please :-S
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by keith10456 »

mut2nt wrote:i dont understand this part
This line put into includes/functions.php BEFORE

Code: Select all

      // application/xhtml+xml not used because of IE
       header('Content-type: text/html; charset=UTF-8');
should be in function page_header.
Be more precise please :-S
I believe he's stating that the code that was placed in common.php should be removed and placed in includes/functions.php.

The referenced code (that you're moving) needs to be placed in functions.php above/before the lines of code in the quote.
mut2nt
Registered User
Posts: 47
Joined: Sun Feb 21, 2010 8:22 pm
Location: HELL
Name: none mut2nt
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by mut2nt »

That error disappeared only when i dont include this line in neither one of the files ! Strange ...

Code: Select all

include_once( $phpbb_root_path . 'instant_messenger.' . $phpEx);
So when we gone see the next version? :D it is too cool, anyway ca you add smiles to the chat ? and a ignore list?
goinv8huntin
Registered User
Posts: 53
Joined: Thu Mar 25, 2010 8:31 pm
Name: john doe

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by goinv8huntin »

I got word that 0.4.2 is finishing up. Hopefully, it should be done within the next few weeks... hopefully?
Exp: HTML/CSS/PHP/SQL
Danielx64
Registered User
Posts: 1369
Joined: Wed Nov 04, 2009 5:51 am
Location: In a server room in Australia
Name: Daniel
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Danielx64 »

I know that this is in beta, now my problem is that when I go to the gallery, it will play up and give me errors. On all other part of the forum, it works. I found that when I go into the gallery it heading to <root>/forums/gallery/index.php where the rest is <root/forums/index.php viewforum.php and so on
Please note that I will not be porting any of my mods to phpBB 3.1. Sorry for the inconvenience this may cause.
Image
User avatar
Kamahl19
Registered User
Posts: 1598
Joined: Tue Nov 06, 2007 3:33 pm
Location: Slovakia
Name: Martin
Contact:

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by Kamahl19 »

please give us the new screen with error, the last one is not working.
geishinhan
Registered User
Posts: 31
Joined: Thu May 28, 2009 2:56 am

Re: [BETA] Instant Messenger + User status MOD 0.4.1

Post by geishinhan »

So to fix the code must add a language code and fix like that
source at : http://chipchip.haclonghoi.co.cc/mod-ph ... -t144.html

Tại instant_messenger.php Tìm

Code: Select all

} 

   // Start session management 
   $user->session_begin(); 
   $auth->acl($user->data); 
$user->setup('mods/instant_messenger'); 


session_name( $user->data['session_id']); 
session_id( $user->data['session_id']); 
session_start();  


Thay bằng

Code: Select all

  // Start session management 
   $user->session_begin(); 
   $auth->acl($user->data); 
} 

$user->setup('mods/instant_messenger'); 

session_name( $user->data['session_id']); 
session_id( $user->data['session_id']); 
session_start();  


[highlight=#ff0000]Xóa phần cài đặt trong common.php và common.php trong folder language[/highlight]
[highlight=#ff0000]Remove the change common.php and common.php in folder language[/highlight]



Trong includes/functions.php

Tỉm

Code: Select all

    // application/xhtml+xml not used because of IE 
   header('Content-type: text/html; charset=UTF-8');
  


Thêm vào trước

Code: Select all

include_once( $phpbb_root_path . 'instant_messenger.' . $phpEx);  
[font=Courier New]Tạo file instant_messenger.php trong language/../mods/[/font]

[font=Courier New]nội dung là[/font]

Code: Select all

<?php 
/** 
* LANGUAGE MOD BY mafiaWolf :D.. Just add for fun
* Please visit [url=http://chipchip.haclonghoi.co.cc]http://chipchip.haclonghoi.co.cc[/url] for more info. 
*/ 
/** 
* DO NOT CHANGE 
*/ 
if (!defined('IN_PHPBB')) 
{ 
 exit; 
} 
  
if ( empty ( $lang ) || !is_array ( $lang ) ) 
{ 
 $lang = array ( ); 
} 
  
// 
$lang = array_merge ( $lang, array ( 
/* 
  * INSTANT MESSANGER -- START 
  */ 
  
 'IM'    => 'Chat', 
 'IM_NOT_LOGGED_IN'   => 'Guests can not chat', 
 'IM_SENT'    => 'Sent at ', 
 'START_IM'    => 'Open chat', 
 'IM_WITH'    => 'Chat with', 
 'GOOGLE_SEARCH'   => 'Google search', 
  'BOARD_SEARCH'   => 'Board search', 
 'REMEMBER_ME'   => 'Remember me', 
 'BY'   => 'by', 
 'COMPOSE_MESSAGE'   => 'Compose new message', 
 'INBOX'   => 'Go to your Inbox', 
 'OUTBOX'   => 'Go to your Outbox', 
 'SENT_MESSAGES'   => 'Go to your Sent messages', 
 'UPDATE_STATUS'    => 'Update status', 
 'STATUS_ADDED'    => 'Status has been updated.', 
 'STATUS_DELETED'    => 'Status has been removed.', 
 'ACCOUNT'      => 'Account', 
 'MANAGE_FRIENDS'      => 'Manage friends', 
 'MANAGE_BOOKMARKS'      => 'Manage bookmarks', 
 'ACCOUNT_SETTINGS'      => 'Account settings', 
 'COULD_NOT_OBTAIN_ONLINE_USER_LIST'  => 'Could not obtain online users list', 
 'IM_UPDATE_BROSWER' =>  'Update browser', 
 'INSTALL' =>  'Install', 
 'TELL_ME_MORE' =>  'Tell me more', 
 /* 
  * INSTANT MESSANGER -- END 
  */ 
)); 
  
?>
Locked

Return to “[3.0.x] Abandoned MODs”