Kā uzstādīt IPB foruma čatu.
Vajadzīgie faili.
Uzstādīšana.
1.Kad ieinstalēts UMI(pamācība), atrarojam D22 Shoutbox mapi.
2.Visas 5 mapītes, kas bija iekšā, ieliekam savā foruma direktorijā.
3.Tālāk dodamie- ACP/Components/(FSY23) Universal Mod Installer/Manage Mod Installations.
Ņemam D22 Shoutbox pogu un spiežam install.
4.Dodamies uz foruma direktorija/sources/classes un veram vaļā class_display.php
5.Atrodam:
Code
//-----------------------------------------
// Do we have a PM show?
//-----------------------------------------
if ( isset($this->ipsclass->member['show_popup']) AND $this->ipsclass->member['show_popup'] AND ! $this->ipsclass->member['members_disable_pm'] )
{
$this->ipsclass->DB->simple_construct( array( 'update' => 'members', 'set' => 'show_popup=0', 'where' => 'id='.$this->ipsclass->member['id'] ) );
$this->ipsclass->DB->simple_shutdown_exec();
if ( $this->ipsclass->input['act'] != 'Msg' AND (!$this->ipsclass->vars['board_offline'] OR $ipsclass->member['g_access_offline']) )
{
$this->ipsclass->skin['_wrapper'] = str_replace( '<!--IBF.NEWPMBOX-->', $this->ipsclass->get_new_pm_notification(), $this->ipsclass->skin['_wrapper'] );
}
}
Un apakšā pieliekam:
Code
//-----------------------------------------
// D22-Shoutbox
//-----------------------------------------
if (!is_object($this->shoutbox))
{
require_once(ROOT_PATH.'sources/d22mods/shoutbox.php');
$this->shoutbox = new shoutbox;
$this->shoutbox->ipsclass =& $this->ipsclass;
}
$this->shoutbox->display_shoutbox_global();
Veram ciet un saglabājam.
6.Dodamies ACP/Look&Feel/Skins//Edit Board Header & Footer Wrapper
Atrodam:
<% MEMBER BAR %>
Zem tā pievienojam:
[right]Izmaiņas vari veikt- ACP/Components/D22-Shoutbox[/right]
Info. avots: @ pick.lv