mx_chatbox without MX-System?
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox
View previous topic :: View next topic  
Author Message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Wed Sep 24, 2003 3:07 pm    Post subject: Re: Installation Reply with quote

markus_petrux wrote:
Hi,

To make mx_chatbox work with the portal, there are only a couple of steps:
1) unzip, upload and import the module.
2) add any of ChatBoxFront or ChatBoxOnline blocks to any MX page.

Once logged in, from those blocks, you'll see the link to open the Chat Box in a separate browser window.

Is there any step giving you an error?

Cheers


Please, can you explain the instalation steps more clear? I know too much about all of this, and I cant install it correctly.

I unzip the files. But I don't know where exactly I have to upload them.

- What do you mean when you say "and import the module."???
- And what do you mean when you say "2) add any of ChatBoxFront or ChatBoxOnline blocks to any MX page."????

I'm getting crazy trying to solve the problem, but it is too much for me...

If you could help me please....

Thank you in advance..

P.D. And sorry for my english.... Rolling Eyes Embarassed
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Wed Sep 24, 2003 3:25 pm    Post subject: Re: Installation problems Reply with quote

I forogot to say that I had installed Wooly Spud?s latest version before. It was quite easy to install. Only some files to modify, but your system is very different, isn't it?

Thank you again.

If you want to see my page... http://www.foro-total.com
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Sep 25, 2003 6:23 am    Post subject: Re: Installation problems Reply with quote

incubus, this mx_chatbox module is packed as a module for MX-System portal. But it seems to me that you're using Smartor's ezPortal... or are you trying MX?

Oh, please, not trying to offend ezPortal users/fans... here is a link to a topic about MX-System -vs- ezPortal:
http://www.mx-system.com/forum/viewtopic.php?t=2042&highlight=ezportal

Anyway, it's true. Embarassed I forgot to add a more accurate Installation guide... so I have updated mx_chatbox Release Notes with the following:

Today is 2003/09/25 wrote:
Installation:
  • Requirements: MX-System v.2.7+ (recommended v.2.705+).

  • Remove possible old installation:
    In the Administration Panel -> Module Administration, delete previous instance of this module.
    Delete all module files within /modules/mx_chatbox.

  • Copy and upload new files:
    Unzip the distributed files into your portal modules directory: /modules/mx_chatbox.

  • Import the module definition file:
    In the Administration Panel -> Module Administration, import Module Pack for this module.

  • Configure Module Settings:
    In the Administration Panel, select the new module options.

  • Add module blocks ChatBox Online and/or ChatBox Front to any Portal page:
    In the Administration Panel -> Block Administration (or Page Administration).


I hope that helps.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Thu Sep 25, 2003 11:07 am    Post subject: Re: Installation problems Reply with quote

So, I have to use Mx-system portal to install the chatbox? There is any possibility to use the chatbox with the smartor's ez portal?

I have Smartor's ezPortal, but I don't have any idea of how I can change to mx system portal. Is it better?
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Sep 25, 2003 12:27 pm    Post subject: Re: Installation problems Reply with quote

Honestly... :eusa_angel:

I can't say if MX-System is better than ezPortal or not. I supose it depends...

I've been browsing your site (nice, btw Smile )... and it seems you have a lot of MODs applied, IMO, very heavy to think about changing... specially if you're happy with the look and functionallity of your site. Not sure if mx_chatbox worths...

Actually, current version of mx_chatbox is very close in functionallity to Wooly's one. Idea

I just ported Wooly's ChatBox v.3 to MX-Module (because MX had no chat module and some users started to ask about one), then started to change it... today mx_chatbox v.1.1.1 is the released stable version of this module and it is based on MX-Module structure... one of the good things about MX is you just upload and install a module without the need to touch any php/tpl file... more plug'n'play if you want.

I'm currently working in v.2.0.0 (or something) and today the code is completly new (I re-started the project from scratch), but it's still in early development stages...

Cheers
PS: Why don't you try MX locally and see the difference?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Thu Sep 25, 2003 2:38 pm    Post subject: Re: Installation problems Reply with quote

Quote:
I've been browsing your site (nice, btw )... and it seems you have a lot of MODs applied, IMO, very heavy to think about changing... specially if you're happy with the look and functionallity of your site.


I think the same. It's too much work to think about changing. May be you can help me.

I decided to install your chatbox instead of Wooly's one, because with Wooly's one I can't put something like this...



With Smartor and Wooly's chatbox I couldn't configure the index_body.tpl properly to appear if someone is chatting every time. With their chatbox, I have to make this changes...

Code:
#
#-----[ OPEN ]--------------------------------------------
#
templates/subSilver/index_body.tpl

#
#-----[ SEARCH ]--------------------------------------------
#
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

#
#-----[ OVERWRITE WITH ]------------------------------------
#
<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

#
#-----[ SEARCH]---------------------------------------------
#
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} & [ {L_WHOSONLINE_ADMIN} ] & [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>

#
#-----[ AFTER]--------------------------------------
#
  <tr>
   <td class="row1" align="left"><span class="gensmall">{TOTAL_CHATTERS_ONLINE}&&&
   <!-- BEGIN switch_user_logged_out -->
   [ {L_LOGIN_TO_JOIN_CHAT} ]
   <!-- END switch_user_logged_out -->
   <!-- BEGIN switch_user_logged_in -->
   [ <a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')">{L_CLICK_TO_JOIN_CHAT}</a> ]
   <!-- END switch_user_logged_in -->
   <br />{CHATTERS_LIST}
   </span>
   </td>
  </tr>



The problem is that my verion of the forum is phpBB2 1.0, and the index_body.tpl file is quite different. The problem is that the 2 things tha I have to look for are different in my tpl file. May be you can explain me only the part to add this box


in the Wooly's version.

Even so, thank you very much for your help and atention
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Sep 25, 2003 6:06 pm    Post subject: Re: Installation problems Reply with quote

PM me your index_body.tpl... BTW, portal.php uses portal_body.tpl, ins't it? ...anyway, I will see what can I do...

well, I can try to figure out best way to embed mx_chatbox, so may be I'll ask things about your portal.php or whatever script you're using to generate your page, ok?

[edited]
I was thinking about it for a while and figured a doubt. You're try to touch your index_body.tpl, which is the main page for forums, but probably is better to place the Chatbox Front block in your main portal page. Agree? Hence, PM me your portal_body.tpl (also your portal.php will help) instead of your index_body.tpl. Ok?
[/edited]


Cheers

PS: Trying to separate things... topic splitted, changed title.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Sep 26, 2003 12:12 am    Post subject: Re: mx_chatbox without MX-System? Reply with quote

Well, I already got your PM'd files... so you need the thingy in both pages... :eusa_think:

Let's see, I can try it just for portal, then the whole thing will be done (not sure if it will work at once, though) so you can figure out how to do it for forums index. ...and probably there will some bug here, I hope you may also understand so we both can do it, ok?

1. First, upload the mx_chatbox files/dirs to mods/phpmix/mx_chatbox (or something, but note it will be used later).

2. Remove all MX stuff from some of scripts...
Code:
#
# ---[ OPEN (note: same mod for all files listed) ]-----------------
#
mods/phpmix/mx_chatbox/chatbox.php
mods/phpmix/mx_chatbox/chatbox_about.php
mods/phpmix/mx_chatbox/chatbox_drop.php
mods/phpmix/mx_chatbox/chatbox_faq.php
mods/phpmix/mx_chatbox/chatbox_profile.php
mods/phpmix/mx_chatbox/chatbox_title.php
mods/phpmix/mx_chatbox/messenger_list.php
mods/phpmix/mx_chatbox/messenger_send.php
mods/phpmix/mx_chatbox/messenger_view.php

#
# ---[ FIND ]--------------
#
define('IN_PORTAL', true);
$mx_root_path = '../../';
$module_root_path = './';
include_once($mx_root_path . 'extension.inc');
include_once($mx_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
mx_init_userprefs($userdata);

#
# ---[ REPLACE WITH ]--------------
#
define('IN_PHPBB', 1);
$phpbb_root_path = '../../../';
$module_root_path = $phpbb_root_path . 'mods/phpmix/mx_chatbox/';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

#
# ---[ SAVE ]--------------
#

3. Tweak chatbox_front.php:
Code:
#
# ---[ OPEN ]--------------
#
mods/phpmix/mx_chatbox/chatbox_front.php

#
# ---[ FIND ]--------------
#
if( !defined('IN_PORTAL') )

#
# ---[ REPLACE WITH ]--------------
#
if( !defined('IN_PHPBB') )

#
# ---[ FIND ]--------------
#
// Initialization
//

#
# ---[ AFTER ADD ]--------------
#
$module_root_path = $phpbb_root_path . 'mods/phpmix/mx_chatbox/';

#
# ---[ FIND ]--------------
#
$block_config  = read_block_config($block_id);
$block_size    = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' );

#
# ---[ REPLACE WITH ]--------------
#
$block_size = '100%';

#
# ---[ FIND ]--------------
#
$template->set_filenames(array(
   'body' => 'chatbox_front.tpl')
);

#
# ---[ REPLACE WITH ]--------------
#
$template->set_filenames(array(
   'chatbox_front' => 'chatbox_front.tpl')
);

#
# ---[ FIND ]--------------
#
$template->pparse('body');

#
# ---[ REPLACE WITH ]--------------
#
$template->assign_var_from_handle('CHATBOX_OUTPUT', 'chatbox_front');

#
# ---[ SAVE ]--------------
#

4. Tweak common.php:
Code:
#
# ---[ OPEN ]--------------
#
mods/phpmix/mx_chatbox/includes/common.php

#
# ---[ FIND ]--------------
#
if( !defined('IN_PORTAL') )

#
# ---[ REPLACE WITH ]--------------
#
if( !defined('IN_PHPBB') )

#
# ---[ FIND ]--------------
#
define('CHATBOX_TABLE', $mx_table_prefix.'chatbox');

#
# ---[ BEFORE ADD ]--------------
#
$mx_table_prefix = $phpbb_table_prefix;

#
# ---[ SAVE ]--------------
#

5. Not sure if will find the mx_chatbox templates. If not, try this:
Code:
#
# ---[ OPEN ]-----------------
#
chatbox_drop.php
chatbox_front.php
chatbox_title.php


#
# ---[ FIND ]----------------
#
$template->set_filenames(array(

#
# ---[ BEFORE ADD ]----------------
#
$template->set_rootdir($module_root_path . 'templates');

#
# ---[ SAVE ]--------------
#

6. Now, its time to tweak your portal.php (backup yours before !):
Code:
#
# ---[ OPEN ]-----------------
#
portal.php

#
# ---[ FIND ]----------------
#
//
// Generate the page
//
$template->pparse('body');

#
# ---[ BEFORE ADD ]----------------
#
// MOD mx_chatbox BEGIN
include($phpbb_root_path . 'mods/phpmix/mx_chatbox/chatbox_front.'.$phpEx);
// MOD mx_chatbox END

#
# ---[ SAVE ]--------------
#
Code:
#
# ---[ OPEN ]-----------------
#
portal_body.tpl

#
# ---[ FIND (well, this a sample to place the new block) ]----------------
#
<br />
{MINI_CAL_OUTPUT}

#
# ---[ AFTER ADD ]----------------
#
<br />
{CHATBOX_OUTPUT}

#
# ---[ SAVE ]--------------
#


Buff..... (vaya tela !) Shocked

Notes:
a) Not tested !!!
b) Backup your files.
c) Please, follow the changes, but also try to understand them. It will help to reach the point.

Another thing to try is to just MOD chatbox_front.php and make it work with Wooly's ChatBox.

Well, please tell me... how many errors? :eusa_doh:

:eusa_eh: ...are you still there?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Fri Sep 26, 2003 12:09 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

This error happens in the portal...

<img src="http://www.foro-total.com/portal.JPG" width="600" border="0" alt="Click to enlarge !" />

I didn't make the 5th point, but I thinks that this is not the problem, isn't it?

Arrow
Quote:
Buff.....(vaya tela !) Shocked
Question

Hablas español??? A ver si estoy haciendo el gili con mi pobre ingles.... Confused


[edited]...click the image to enlarge Wink [/edited]
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Sep 26, 2003 4:28 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

incubus wrote:
Hablas español???
Pues más o menos... aunque parece que no se ha notado mucho Smile ...aunque prefiero usar ingles aquí, para hacerlo más general. La mayoría de la gente del mundo en la red, es lo que usa...

Espero que no te moleste... si tienes alguna duda, pues nada, seguimos en castellano y yata!

incubus wrote:
A ver si estoy haciendo el gili con mi pobre ingles.... Confused
Tampoco es para tanto. Wink

incubus wrote:
This error happens in the portal...


Well, I forgot to talk about a couple of scripts...
Code:
#
# ---[ OPEN ]-----------------
#
mods/phpmix/mx_chatbox/db_install.php

#
# ---[ FIND ]--------------
#
if( !defined('IN_PORTAL') )
{
   die("Hacking attempt(1)");
}
if( !defined('IN_ADMIN') )
{
   die("Hacking attempt(2)");
}

#
# ---[ REPLACE WITH ]--------------
#
define('IN_PHPBB', 1);
$phpbb_root_path = '../../../';
$module_root_path = $phpbb_root_path . 'mods/phpmix/mx_chatbox/';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

#
# ---[ SAVE ]--------------
#

#
# ---[ LOGIN, RUN & REMOVE ]--------------
#
- Login as administrator.
- Launch http://www.your-domain.com/mods/phpmix/mx_chatbox/db_install.php
- Remove this script (security issue).


Code:
#
# ---[ MOVE ]--------------
#
mods/phpmix/mx_chatbox/admin/admin_chatbox.php
To: admin/admin_chatbox.php

mods/phpmix/mx_chatbox/templates/admin/chatbox_config_body.tpl
To: templates/subSilver-or-yourTheme/admin/chatbox_config_body.tpl

#
# ---[ OPEN ]--------------
#
admin/admin_chatbox.php

#
# ---[ FIND ]--------------
#
if( !empty($setmodules) )
{
   $module['Portal ChatBox']['Settings'] = 'modules/mx_chatbox/admin/' . @basename(__FILE__);
   return;
}

#
# ---[ REPLACE WITH ]--------------
#
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
   $module['Portal ChatBox']['Settings'] = @basename(__FILE__);
   return;
}

#
# ---[ FIND ]--------------
#
$mx_root_path = '../../../';
$module_root_path = "../";

#
# ---[ REPLACE WITH ]--------------
#
$phpbb_root_path = './../';
$mx_root_path = $phpbb_root_path;
$module_root_path = $phpbb_root_path . 'mods/phpmix/mx_chatbox/';

#
# ---[ SAVE ]--------------
#


I hope we may get it. Smile

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Fri Sep 26, 2003 4:51 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

Ok, I made the changes, but now this error appears.

Code:
Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/foro-total.com/httpdocs/mods/phpmix/mx_chatbox/db_install.php on line 26

Warning: Failed opening 'extension.inc' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/foro-total.com/httpdocs/mods/phpmix/mx_chatbox/db_install.php on line 26

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/foro-total.com/httpdocs/mods/phpmix/mx_chatbox/db_install.php on line 27

Warning: Failed opening 'common.' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/foro-total.com/httpdocs/mods/phpmix/mx_chatbox/db_install.php on line 27

Fatal error: Call to undefined function: session_pagestart() in /usr/local/psa/home/vhosts/foro-total.com/httpdocs/mods/phpmix/mx_chatbox/db_install.php on line 29


What can I make?

P.D. Tranki, si no entiendo algo ya te lo pregunto... Wink
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Sep 26, 2003 6:23 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

I'm sorry, I forgot to add this in a couple of places...
Code:
$phpbb_root_path = "../../../";

...I have edited previous posts.

Let's go to next step... Confused

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Fri Sep 26, 2003 7:28 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

When I try to execute db_install.php, this error happens..

Hacking attempt

Sad
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Sep 26, 2003 7:37 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

incubus wrote:
Hacking attempt Sad

Opps, another one!

Well, it can be solved adding this line at the beginning of the script:
Code:
define('IN_PHPBB', true);


I'll update previous posts (for reference) later with all changes.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
incubus
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 13

PostPosted: Fri Sep 26, 2003 9:22 pm    Post subject: Re: mx_chatbox without MX-System? Reply with quote

Poco a poco va saliendo, pero aun no va. Mira en mi Portal....

http://www.foro-total.com

salen duplicadas a la derecha mi avatar y el mensaje de bienvenida, y a la izquierda lo de entrar al chat tambien.

http://www.foro-total.com/portal1.JPG

There is another problem with the chat...

http://www.foro-total.com/chatbox.JPG
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum