Shoutbox For PHPBB3? »  Show posts from    to     

Icy Phoenix


phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - Shoutbox For PHPBB3?



GlosterMan [ Mon 25 Feb, 2008 03:20 ]
Post subject: Shoutbox For PHPBB3?
Is the shoutbox used on this website available for PHPBB3 or is it an Icy Phoenix Mod?

I was going to use the Shoutbox/Chat from STG but I found out is shows hidden members

Any help on what the best chat/Shout box is for PHPBB3?


Mighty Gorgon [ Mon 25 Feb, 2008 09:55 ]
Post subject: Re: Shoutbox For PHPBB3?
GlosterMan wrote: [View Post]
Is the shoutbox used on this website available for PHPBB3 or is it an Icy Phoenix Mod?

I was going to use the Shoutbox/Chat from STG but I found out is shows hidden members

Any help on what the best chat/Shout box is for PHPBB3?

All stuffs you see on this site have been coded (or recoded where I didn't like original mods) for Icy Phoenix which is NOT based on phpBB 3.

Regarding other Shoutbox, Chat system, unfortunately I didn't test any of the existing mods, so I cannot help.


Huor [ Mon 25 Feb, 2008 20:23 ]
Post subject: Re: Shoutbox For PHPBB3?
I have a shoutbox running from AJAX on a phpBB3 forum. I also adapted the black pearl style to it.

You can have a look at trf.mc-sig.de at the very bottom of this side. The only disadvantage until now: The messages disappaer after a timeperiod (can be setup i guess^^).
If you want more detail - pls let me know

Greez...


ThE KuKa [ Mon 25 Feb, 2008 22:07 ]
Post subject: Re: Shoutbox For PHPBB3?
GlosterMan, read this topic:
http://startrekguide.com/community/...sd=a&hilit=chat

Greets


Mighty Gorgon [ Tue 26 Feb, 2008 00:31 ]
Post subject: Re: Shoutbox For PHPBB3?
Huor wrote: [View Post]
I also adapted the black pearl style to it.

It would be great if you share shoutbox template files for other users who may need them.

Thanks.


Huor [ Tue 26 Feb, 2008 20:06 ]
Post subject: Re: Shoutbox For PHPBB3?
Mighty Gorgon wrote: [View Post]
Huor wrote: [View Post]
I also adapted the black pearl style to it.

It would be great if you share shoutbox template files for other users who may need them.

Thanks.


Well as i don't know really where to post this. I insert it here
The following changes can be done to include the AJAX-Shoutbox to the bottom of your PHPBB3 forum.
Look at the following steps.

BTW you should consider the installation steps to integrate the AJAX Shoutbox to your forum -> click here.

This should be done before the following changes of Black Pearl Template...

OPEN <phpBB3 dir>/styles/black_pearl/template/overall_footer.html
FIND
Code: [Hide] [Select]
<div style="text-align:center;">
<!-- IF U_ACP -->
<br />
<br />
<span class="gensmall">
[ <a href="{U_ACP}">{L_ACP}</a> ]
</span><br /
><br />
<!-- ENDIF --></div>
<!-- IF not S_IS_BOT -->
{RUN_CRON_TASK}
<!-- ENDIF -->
</div>

ADD BEFORE
Code: [Hide] [Select]
<div id="shoutbox_h" style="display:none;">
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox" />
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="row1">
<span class="gensmall">&nbsp;</span>
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>

<div id="shoutbox_nh">
<script type="text/javascript">
<!--
tmp = 'shoutbox';
if(GetCookie(tmp) == '2')
{
ShowHide('shoutbox_nh', 'shoutbox_h', 'shoutbox_nh');
}
//-->
</script>
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox" />
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em; margin-bottom:20px;">
{SHOUTBOX}
</div>
<!-- ELSE -->
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> © <a href="https://blueimp.net">blueimp.net</a>
</div>
<!-- ENDIF -->
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>


That should be all, it works
Much fun and luck for your own trials...

edit: shoutbox code changed. previous one was not correct!


GlosterMan [ Wed 27 Feb, 2008 20:54 ]
Post subject: Re: Shoutbox For PHPBB3?
Thanks this is the one I have installed in my sandbox installation and it shows hidden members online.
It is a great little chat and easy to install but I do not want to anger members that choose to remain hidden.


Rob


ThE KuKa wrote: [View Post]
GlosterMan, read this topic:
http://startrekguide.com/community/...sd=a&hilit=chat

Greets


GlosterMan [ Wed 27 Feb, 2008 20:56 ]
Post subject: Re: Shoutbox For PHPBB3?
Huor

Thanks for all the great help and info

I sent you a PM


Rob "GlosterMan"




Huor wrote: [View Post]
I have a shoutbox running from AJAX on a phpBB3 forum. I also adapted the black pearl style to it.

You can have a look at trf.mc-sig.de at the very bottom of this side. The only disadvantage until now: The messages disappaer after a timeperiod (can be setup i guess^^).
If you want more detail - pls let me know

Greez...


Huor [ Wed 27 Feb, 2008 21:16 ]
Post subject: Re: Shoutbox For PHPBB3?
yw m8 - you got a PM back


jorisaeles [ Mon 28 Apr, 2008 21:33 ]
Post subject: Re: Shoutbox For PHPBB3?
I'm having some problems with the integration of the Ajax shoutbox

When I insert the line
'SHOUTBOX' => getShoutBoxContent(),
the shoutbox works perfect but the layout of the forum is totally changed, the font size is doubled. This only happens in Internet Explorer but it works perfect in Firefox!
[img=http://img135.imageshack.us/img135/6606/phpbb3ij7.th.png]
Could anybody help me to fix this? Thx


cayoga [ Fri 24 Oct, 2008 06:41 ]
Post subject: Re: Shoutbox For PHPBB3?
Huor wrote: [View Post]
Mighty Gorgon wrote: [View Post]
Huor wrote: [View Post]
I also adapted the black pearl style to it.

It would be great if you share shoutbox template files for other users who may need them.

Thanks.


Well as i don't know really where to post this. I insert it here
The following changes can be done to include the AJAX-Shoutbox to the bottom of your PHPBB3 forum.
Look at the following steps.

BTW you should consider the installation steps to integrate the AJAX Shoutbox to your forum -> click here.

This should be done before the following changes of Black Pearl Template...

OPEN <phpBB3 dir>/styles/black_pearl/template/overall_footer.html
FIND
Code: [Hide] [Select]
<div style="text-align:center;">
<!-- IF U_ACP -->
<br />
<br />
<span class="gensmall">
[ <a href="{U_ACP}">{L_ACP}</a> ]
</span><br /
><br />
<!-- ENDIF --></div>
<!-- IF not S_IS_BOT -->
{RUN_CRON_TASK}
<!-- ENDIF -->
</div>

ADD BEFORE
Code: [Hide] [Select]
<div id="shoutbox_nh">
<script type="text/javascript">
<!--
tmp = 'birthdays';
if(GetCookie(tmp) == '2')
{
ShowHide('shoutbox_nh', 'shoutbox_h', 'shoutbox_nh');
}
//-->
</script>
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox">
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em; margin-bottom:20px;">
{SHOUTBOX}
</div>
<!-- ELSE -->
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> © <a href="https://blueimp.net">blueimp.net</a>
</div>
<!-- ENDIF -->
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>


That should be all, it works
Much fun and luck for your own trials...


sorry for my english, i like to try this code, but how if i put that shoutbox at the top of forum...? i'm newbie...


Huor [ Fri 24 Oct, 2008 20:08 ]
Post subject: Re: Shoutbox For PHPBB3?
cayoga wrote: [View Post]
sorry for my english, i like to try this code, but how if i put that shoutbox at the top of forum...? i'm newbie...


then just take the overall_header.html file instead and look for the proper position - below the menu i would recommend.

I changed the code for the shoutbox: Now it should be more usable

Code: [Hide] [Select]
<div id="shoutbox_h" style="display:none;">
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox" />
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="row1">
<span class="gensmall">&nbsp;</span>
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>

<div id="shoutbox_nh">
<script type="text/javascript">
<!--
tmp = 'shoutbox';
if(GetCookie(tmp) == '2')
{
ShowHide('shoutbox_nh', 'shoutbox_h', 'shoutbox_nh');
}
//-->
</script>
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox" />
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em; margin-bottom:20px;">
{SHOUTBOX}
</div>
<!-- ELSE -->
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> © <a href="https://blueimp.net">blueimp.net</a>
</div>
<!-- ENDIF -->
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>
<br />


cayoga [ Mon 27 Oct, 2008 04:14 ]
Post subject: Re: Shoutbox For PHPBB3?
Huor wrote: [View Post]
cayoga wrote: [View Post]
sorry for my english, i like to try this code, but how if i put that shoutbox at the top of forum...? i'm newbie...


then just take the overall_header.html file instead and look for the proper position - below the menu i would recommend.

I changed the code for the shoutbox: Now it should be more usable

Code: [Hide] [Select]
<div id="shoutbox_h" style="display:none;">
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox" />
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="row1">
<span class="gensmall">&nbsp;</span>
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>

<div id="shoutbox_nh">
<script type="text/javascript">
<!--
tmp = 'shoutbox';
if(GetCookie(tmp) == '2')
{
ShowHide('shoutbox_nh', 'shoutbox_h', 'shoutbox_nh');
}
//-->
</script>
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;"
src="./styles/black_pearl/theme/images/icon_minimize.gif"
onclick="javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');"
alt="Shoutbox" />
<div class="tbl-title">
<h4>
Shoutbox
</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em; margin-bottom:20px;">
{SHOUTBOX}
</div>
<!-- ELSE -->
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> © <a href="https://blueimp.net">blueimp.net</a>
</div>
<!-- ENDIF -->
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">&nbsp;</div>
</div>
</div>
</div>
</div>
<br />


still not show the box for i write a message for shoutbox ...


motoxtreme [ Tue 11 Nov, 2008 13:39 ]
Post subject: Re: Shoutbox For PHPBB3?
anyone hv chat_body.html for Black Pearl ??


Itsacraig [ Sun 14 Feb, 2010 19:18 ]
Post subject: Re: Shoutbox For PHPBB3?
Hi, I am trying to implement the Ajax Chat, and trying to follow the instructions to what i need to edit in the functions.php script, but I got a feeling Im gonna end up with bugs due to syntax and what I should be adding exactly, so was wondering if someone could assist me with this?

I will highlight the bits in the following code I need help with..

function getShoutBoxContent()
{
global $phpEx, $phpbb_root_path;

// Get the URL to the chat directory:
if (!defined('AJAX_CHAT_URL')) WHEN IT ASKS FOR THE CHAT URL HERE, DO I INCLUDE HTTP:// ?
{
define('AJAX_CHAT_URL', $phpbb_root_path . 'chat/'); AND I ADD THE SAME AS ABOVE HERE??
}

// Get the real path to the chat directory:
if (!defined('AJAX_CHAT_PATH')) DO I NEED TO EDIT THIS BIT? IF SO, DO I ADD EXACTLY THE SAME???
{
if (empty($_SERVER['SCRIPT_FILENAME'])) IT NOW JUST ASKS FOR THE SCRIPT NAME, DO I SIMPLY ENTER INDEX.PHP HERE?
{
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_URL']; AND IT ASKS FOR THE SCRIPT NAME AGAIN AND SCRIPT FILE NAME. WHAT SHOULD BE PUT HERE???
}
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/chat') . '/'); AND HERE AGAIN FOR BOTH CHAT PATH AND SCRIPT FILE NAME
}

// Validate the path to the chat:
if (@is_file(AJAX_CHAT_PATH . 'lib/classes.' . $phpEx)) AND WHAT DO I ENTER HERE IN ALL THESE SECTIONS?
{
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.' . $phpEx);

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}

return null;


Joshua203 [ Sun 14 Feb, 2010 21:43 ]
Post subject: Re: Shoutbox For PHPBB3?
don't modify anything in those codes itsagraig, just copy and paste them in the file it needs to go in the place it needs to go




Powered by Icy Phoenix