MyBB Community Forums

Full Version: DVZ Shoutbox 2.3.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
you must add " background: red; " in the id class " #shoutbox input.text " in that styles.
for change color change red,such as: background:blue; or background: #e6e6e6; ....
it worked
great

can you please tell me how to change the scroll color too and the write here your message text color

thanks



http://www.thegame-zone.com/index.php
I have a problem shoutbox working only on index page but i want to display the subpage shoutbox.php

its my code subpage

<?php
 
define("IN_MYBB", 1);
require_once "./global.php";
require_once "./inc/init.php";


$pageTitle = "Shoutbox";
add_breadcrumb($pageTitle);

$content = "
<table class='tborder'>
    <tr><td class='thead'>Shoutbox</td></tr>
    <tr><td class='trow1'>text.</td></tr>
</table>
";

$out = "
<html>
    <head>
        <title>{$mybb->settings['bbname']} - {$pageTitle}</title>
        {$headerinclude}
    </head>
 
    <body>
        {$header}
        {$content}
		{$dvz_shoutbox}
        {$boardstats}
        {$footer}
    </body>
 
</html>
";
 
output_page($out);
 
?>

forum address
http://www.pdg-projects.xaa.pl/projekty/...outbox.php
(2014-11-10, 11:53 AM)pdg Wrote: [ -> ]I have a problem shoutbox working only on index page but i want to display the subpage shoutbox.php

its my code subpage


<?php
 
define("IN_MYBB", 1);
require_once "./global.php";
require_once "./inc/init.php";


$pageTitle = "Shoutbox";
add_breadcrumb($pageTitle);

$content = "
<table class='tborder'>
    <tr><td class='thead'>Shoutbox</td></tr>
    <tr><td class='trow1'>text.</td></tr>
</table>
";

$out = "
<html>
    <head>
        <title>{$mybb->settings['bbname']} - {$pageTitle}</title>
        {$headerinclude}
    </head>
 
    <body>
        {$header}
        {$content}
		{$dvz_shoutbox}
        {$boardstats}
        {$footer}
    </body>
 
</html>
";
 
output_page($out);
 
?>

forum address
http://www.pdg-projects.xaa.pl/projekty/...outbox.php

You subpage must have own hook
and then you must run shoutboxfunction  using this hook
Pozdrawiam
Can you tell me how i can do it ?
the second thing , we should not hardcode
create shoutbox.php file in your root forum directory
<?php
 
define('IN_MYBB', '1'); 
define('THIS_SCRIPT', 'shoutnox.php');
require "./global.php"; 

$plugins->run_hooks("dvz_shoutbox_start");

add_breadcrumb("Shoutbox", "shoutbox.php"); 
eval("\$page = \"".$templates->get("shoutbox")."\";"); 
output_page($page); 

?>

done

now create new template in global template

name shoutbox

			<html>
			<head>
			<title>{$mybb->settings['bbname']} - Shoutbox</title>
			{$headerinclude}
			</head>
			<body id="shoutbox">
			{$header}
{$dvz_shoutbox}
			{$footer}
			</body>
			</html>
done
now edit inc/plugins/dvz_shotbox.php
if you wont shoutbox on index and sub page add

$plugins->add_hook('dvz_shoutbox_start',  ['dvz_shoutbox', 'load_window']); // load Shoutbox window to {$dvz_shoutbox} variable
in hook area
if y wont only on sub page replace
$plugins->add_hook('index_end',  ['dvz_shoutbox', 'load_window']); // load Shoutbox window to {$dvz_shoutbox} variable
to
$plugins->add_hook('dvz_shoutbox_start',  ['dvz_shoutbox', 'load_window']); // load Shoutbox window to {$dvz_shoutbox} variable

result http://polish-zone.pl/shoutbox.php

easy job
swoja droga czemu nie na polskim supporcie mybb?
Thanks.

Jakos tak wyszlo ze znalazlem ten team w googlach i napisal tutaj.
the word filter does not work in this plugin i think.
Thanks, great job, to round the edges of the box?
is it possible to add sound alert on each shout ? like Facebook message alert