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.
For some reason that I cannot figure out, I have no message input panel.

I've include my CSS, the Panel template and the Shoutbox template;

Site: http://pern.second-pass.net/forum/index.php
Location: Bottom of the forums

CSS
/* DVZ Shoutbox */
#shoutbox { margin-bottom: 10px; border: solid 2px rgba(247,185,19); }
#shoutbox .head { padding: 8px; }
#shoutbox.front .head { cursor: pointer; }
#shoutbox .head .right { float: right; margin: 0; font-size: 13px; }
#shoutbox.collapsed .head { opacity: 0.6; }
#shoutbox.collapsed .body { display: none; }

#shoutbox .panel { border: solid 2px rgba(247,185,19, 1); }
#shoutbox input.text { margin: 0; padding: 10px 8px; width: 100%; box-sizing: border-box; border: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.08); font-family: Arial, sans-serif; font-size: 12px; color: #000; }
#shoutbox .minposts, #shoutbox .blocked { padding: 6px; font-size: 11px; }
#shoutbox .panel.minposts { background: #FFFED8; color: #727250; }
#shoutbox .panel.blocked { background: #FCEFEF; color: #543A3A; }
#shoutbox .panel p { margin: 0; }

#shoutbox .window { border-top: solid 2px rgba(0,0,0,0.1); overflow-y: scroll; }
#shoutbox .data { display: table; width: 100%; border-top: solid 2px rgba(247,185,19,0.1); font-family: Arial, sans-serif; font-size: 12px; }
#shoutbox.front .data { border-top: none; }

#shoutbox .entry { display: table-row !important; width: 100%; transition: background-color 0.2s; }
#shoutbox .entry:nth-child(even) { background-color: rgba(0,0,0,0.01); }
#shoutbox .entry.new { background-color: rgba(255,255,100,0.1); }
#shoutbox .entry:target { background-color: rgba(50,200,255,0.1); }
#shoutbox .entry > div { border-bottom: dashed 1px rgba(0,0,0,0.05); }
#shoutbox .entry:last-child > div { border-bottom: none; }

#shoutbox .entry > div { display: table-cell; padding: 6px; }

#shoutbox .avatar img { margin: 0 auto; vertical-align: middle; max-height: 20px; max-width: 20px; border: solid 1px rgba(247,185,19); box-shadow: 0 0 2px rgba(0,0,0,0.1); cursor: pointer; }
#shoutbox .user { border-right: solid 1px rgba(247,185,19, 1); text-align: right; white-space: nowrap; }
#shoutbox .text { width: 100%; color: #555; word-break: break-all; word-wrap: break-word; }
#shoutbox .info { font-size: 11px; color: #AAA; white-space: nowrap; text-align: right; }
#shoutbox .entry.unread .info:before { display: inline-block; position: relative; top: -2px; margin-right: 10px; height: 4px; width: 4px; content: ''; background: rgba(255,100,0,0.8); border-radius: 10px; }
#shoutbox .info a { color: inherit; }
#shoutbox .mod { padding: 6px 8px; font-size: 9px; font-weight: bold; color: #AAA; text-decoration: none; }
#shoutbox .mod:nth-of-type(2) { margin-right: 5px; border-left: solid 1px rgba(247,185,19, 1); }
#shoutbox  .ip { margin-right: 10px; color: #CECECE; }

<div id="shoutbox" class="front{$classes}">

<div class="head">
<strong>{$lang->dvz_sb_shoutbox}</strong>
<p class="right"><a href="{$mybb->settings['bburl']}/index.php?action=shoutbox_archive">&laquo; {$lang->dvz_sb_archivelink}</a></p>
</div>

<div class="body">
{$panel}
<div class="window" style="height:{$mybb->settings['dvz_sb_height']}px">
<div class="data">
{$html}
</div>
</div>

</div>

<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/dvz_shoutbox.js"></script>
{$javascript}

</div>

<div class="panel">
<form>
<input type="text" class="text" placeholder="{$lang->dvz_sb_default}" maxlength="{$maxlength}" autocomplete="off" />
<input type="submit" style="display:none" />
</form>
</div>
(2017-09-20, 02:48 AM)ThistleProse Wrote: [ -> ]For some reason that I cannot figure out, I have no message input panel.

I've include my CSS, the Panel template and the Shoutbox template;

Site: http://pern.second-pass.net/forum/index.php
Location: Bottom of the forums

Seems like a CSS class name collision - div.panel is hidden in accordion.css. You can rename the class in that file and theme templates, or add a code to revert those rules for the element used in the plugin before its CSS (e.g. at the beginning of shoutbox.css):
#shoutbox .panel { padding: unset; background-color: unset; max-height: unset; overflow: unset; transition: unset; border: unset; }
Thank you! I changed the accordion and now it works fine Big Grin
can i instal shutbox using android device?
can any one help me with my forum Smile ? http://krypto-forum.pl/
i can't use chat
I have added a ban button near the edit button that adds the uid to the banlist (via username)
wanna integrate it?

@Devilshakerz
@g_o - can you share you code, please? Thank you!
(2017-10-02, 04:01 PM)Eldenroot Wrote: [ -> ]@g_o - can you share you code, please? Thank you!

For now I don't have much time to wrap it all up cooly.. I'll just dump my files and get the diff from there
For now password is hardcoded it's : "hardcoded_password"
edit it in the $t_pass var in dvz_shoutbox.php

Usage: Click on the B button and enjoy.

Sorry but there is no toggle as well.. once you ban to unban you must remove the uid manually to unban.
I don't have the time that's why I thought integrating it would result in a better product with more hands involved.

dvz_shoutbox-ban.rar
(2014-09-03, 06:56 PM)Devilshakerz Wrote: [ -> ]
(2014-09-01, 07:09 PM)Kioshi Wrote: [ -> ]Does this version have any Commands? Would certainly make the shoutbox better and easier to use imo.
It does not. Implementing parsed commands would complicate things a bit and the Shoutbox is meant to be reasonably simple Smile

Quote:Also, any idea why when I put "{$dvz_shoutbox}" on the portal it doesn't show up? I really need it to display on my portal but it just doesn't appear at all, no where to be found.
You need to add a hook at the beginning of the plugin's file:
$plugins->add_hook('portal_end', 'dvz_shoutbox');

i did this, and it doesnt show up
(2017-10-10, 06:37 PM)outlaw16151 Wrote: [ -> ]
(2014-09-03, 06:56 PM)Devilshakerz Wrote: [ -> ]
(2014-09-01, 07:09 PM)Kioshi Wrote: [ -> ]Does this version have any Commands? Would certainly make the shoutbox better and easier to use imo.
It does not. Implementing parsed commands would complicate things a bit and the Shoutbox is meant to be reasonably simple Smile

Quote:Also, any idea why when I put "{$dvz_shoutbox}" on the portal it doesn't show up? I really need it to display on my portal but it just doesn't appear at all, no where to be found.
You need to add a hook at the beginning of the plugin's file:
$plugins->add_hook('portal_end', 'dvz_shoutbox');

i did this, and it doesnt show up.

Try this instead:

$plugins->add_hook('portal_end',    ['dvz_shoutbox', 'load_window']); // load Shoutbox window to {$dvz_shoutbox} variable