Page 1 of 2

putting shout box on the portal page

Posted: Sat Apr 24, 2010 10:51 am
by Ish
Hi...

Can someone please explain me how to place the shoutbox on the front page (portal page)?

Thank you.

Re: putting shout box on the portal page

Posted: Sat Apr 24, 2010 5:47 pm
by Ish
I tried inserting <!-- INCLUDE mchat_body.html --> in portal_center.html, but it doesn't work. Any idea on this?

Re: putting shout box on the portal page

Posted: Sat Apr 24, 2010 9:11 pm
by mgb67
What modded version are you using? The 1.06 version can put the Mchat in the indexpage from the ACP.

On the 1.05 version, you have to do some modding. I think the code is somewhere inhere..

Re: putting shout box on the portal page

Posted: Sun Apr 25, 2010 5:25 am
by Ish
I'm using version 1.06. Yeah, I noticed that index option in ACP. It's enabled but still the shoutbox is displayed in the forum's index only. Not on the portal's page. Any modding you can suggest?

Re: putting shout box on the portal page

Posted: Sun Apr 25, 2010 12:27 pm
by mgb67
Ish wrote:I'm using version 1.06. Yeah, I noticed that index option in ACP. It's enabled but still the shoutbox is displayed in the forum's index only. Not on the portal's page. Any modding you can suggest?
Maybe you can use this http://www.modphpbb3.com/viewtopic.php?f=5&t=877

It's for 1.05, i could be that you can use it on the 1.06. Im not sure? but it could give you an idea :)

Re: putting shout box on the portal page

Posted: Sun Apr 25, 2010 2:07 pm
by Ish
hey mgb67...that was a nice tip. i modded around, and could get the mini-chat block on the front page...but it displays the following message:
Sorry, the Mini-Chat is currently unavailable
I guess i'm not very far from solving that. Any idea why it's showing me this buddy?

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 12:21 am
by cisco007
try this!
open portal.php
find:

Code: Select all

// output page
page_header($user->lang['PORTAL']);
before add:

Code: Select all

// BEGIN mChat Mod
if(!defined('MCHAT_INCLUDE') && $config['mchat_on_index'] && $config['mchat_enable'] && $auth->acl_get('u_mchat_view'))
{
	define('MCHAT_INCLUDE', true);
	$mchat_include_index = true;
	include($phpbb_root_path.'mchat.'.$phpEx);
}
// END mChat Mod


open: prosilver/template/portal/portal_center.html
find:

Code: Select all

<!-- IF S_DISPLAY_WORDGRAPH -->
	<!-- INCLUDE portal/block/wordgraph.html -->
<!-- ENDIF -->
after add:

Code: Select all

<!-- INCLUDE mchat_body.html -->
save, upload, refresh and purge style!

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 6:50 am
by Ish
hey thnx cisco007...

followed ur steps. it works!

xD

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 8:45 am
by Ish
Oops! When not logged in, the shoutbox block shows:
{ MCHAT_TITLE }

{ MCHAT_ENABLE }
Any piece of code to solve that buddy?

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 3:17 pm
by cisco007
i might of forgotten the lang files,

try this open portal.php

find:

Code: Select all

$user->setup('mods/lang_portal');
replace with:

Code: Select all

$user->setup('mods/lang_portal', 'mods/mchat_lang');
see if that works!

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 3:30 pm
by Ish
I tried but getting the following msg:
General Error
SQL ERROR [ mysql4 ]

Unknown column 'mods' in 'where clause' [1054]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 3:34 pm
by cisco007
can i get a link to the site you are using this on!?

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 3:58 pm
by Ish
Yes buddy... It's http://www.indra.mu.

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 4:00 pm
by cisco007
do you have the edit i posted on there now!?

Re: putting shout box on the portal page

Posted: Mon Apr 26, 2010 4:17 pm
by Ish
Nah... The last edit u've suggested, I've removed... Because it doesn't load the portal.php page, it only shows the SQL error...

Wait... I'll put it there again for a while...