Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[MyBB] Need help changing Inferno's Shoutbox Layout

I've asked him about it and he said do it yourself or pay, I've not funds for paying or this right now.. but I really want the Layout Changed.

This is how it Looks Now: [img]http://i1247.photobucket.com/albums/gg634/kingzeus3/Now_zps3f660b38.png[/img]

This is what I want it to look like: [img]http://i1247.photobucket.com/albums/gg634/kingzeus3/Now2_zps98f4be62.png[/img]




Plugin: (Just download and check which files to edit because I wouldn't know which codes to supply, and it probably would be too long to post here anyway.)

http://mods.mybb.com/uploads/previews/79...FPaHpw.png
Is this website yours
http://lotusprodigy.com/

Couse it looks like it's defaced.
I'll look at the source code. Can you Pm me your website URl ?
“Death walks among us”
(Feb 26, 2014 02:05 PM)x0n Wrote:  Is this website yours
http://lotusprodigy.com/

Couse it looks like it's defaced.
I'll look at the source code. Can you Pm me your website URl ?

Umm yeah, it was defaced by a member here.. but no this is for another forum.
You need to edit the plugin file. Just take a look at it, it isn't too hard to figure out.
(Feb 26, 2014 03:05 PM)• α∂∂ιcтιση • Wrote:  You need to edit the plugin file. Just take a look at it, it isn't too hard to figure out.

(Plugin File = inferno.php)
Code
<?php

// Project Created: 12/16/2013

if (!defined('IN_MYBB'))
{
    exit;
}

$plugins->add_hook('global_start', 'inferno_global');
$plugins->add_hook('admin_user_users_delete_commit', 'inferno_delete_user');
$plugins->add_hook('inferno_archive_start', 'inferno_archive');
$plugins->add_hook('newthread_do_newthread_end', 'inferno_newthread');
$plugins->add_hook('newreply_do_newreply_end', 'inferno_newpost');

function inferno_info()
{
    $inferno = inferno_init();
    return array(
        'name'            => 'Inferno Shoutbox',
        'description'    => 'Inferno Shoutbox is a powerful shoutbox for your MyBB forum. (Inspired by Inferno vBShout for vBulletin)',
        'website'        => 'http://community.mybb.com/thread-149231.html',
        'author'        => 'Mattbox Solutions',
        'authorsite'    => 'http://community.mybb.com/user-79350.html',
        'version'        => $inferno->version,
        'guid'             => '606e3d645badf30fd787b8f668bcd5b8',
        'compatibility' => '*'
    );
}

function inferno_init()
{
    require_once MYBB_ROOT . 'inc/plugins/inferno/class_core.php';
    return inferno_shoutbox::get_instance();
}

function inferno_is_installed()
{
    $inferno = inferno_init();
    return $inferno->is_installed();
}

function inferno_install()
{
    $inferno = inferno_init();
    $inferno->install();
}

function inferno_activate()
{
    $inferno = inferno_init();
    $inferno->activate();
}

function inferno_deactivate()
{
    $inferno = inferno_init();
    $inferno->deactivate();
}

function inferno_uninstall()
{
    $inferno = inferno_init();
    $inferno->uninstall();
}

function inferno_global()
{
    global $mybb, $templates, $settings, $inferno_shoutbox, $lang;
    $lang->load('inferno');

    if (IN_MYBB != 'infernoshout')
    {
        if ($settings['inferno_enabled'])
        {
            $inferno = inferno_init();

            if (!$inferno->banned_usergroup)
            {
                eval("\$inferno_shoutbox = \"".$templates->get("inferno_shoutbox")."\";");
                $inferno_shoutbox = $inferno->replace_template_vars($inferno_shoutbox);
            }
        }
    }
}

function inferno_archive()
{
    global $mybb, $templates, $settings, $inferno_archive_table, $lang;
    $lang->load('inferno');

    if ($settings['inferno_enabled'] && $settings['inferno_archive'])
    {
        $inferno = inferno_init();
        eval("\$inferno_archive_table = \"".$templates->get("inferno_archive_table")."\";");
        $inferno_archive_table = $inferno->replace_template_vars($inferno_archive_table);
    }
}

function inferno_newthread()
{
    global $mybb, $db, $settings, $url, $lang;

    if ($settings['inferno_enabled'])
    {
        $inferno = inferno_init();
        $data = $mybb->input;
        $fid = $data['fid'];

        if ($settings['inferno_thread_post'] && !in_array($fid, explode(',', $settings['inferno_thread_forums'])))
        {
            $link = '[url=' . $settings['bburl'] . '/' . $url . ']' . $db->escape_string($data['subject']) . '[/url]';
            $shout = $lang->sprintf($lang->isb_newthread, $link);
            $inferno->create_shout($mybb->user['uid'], $shout, true);
        }
    }
}

function inferno_newpost()
{
    global $mybb, $db, $settings, $post, $lang;
    $counter = (int) $settings['inferno_newpost'];
    $posts = (int) $mybb->user['postnum'] + 1;

    if ($settings['inferno_enabled'] && $counter)
    {
        $inferno = inferno_init();

        if ($posts % $counter == 0)
        {
            $inferno->create_shout($mybb->user['uid'], $lang->sprintf($lang->isb_newpost, $posts), true);
        }
    }
}

function inferno_delete_user()
{
    global $user;
    $inferno = inferno_init();
    $inferno->delete_user($user['uid']);
}

function dvd($str)
{
    die(var_dump($str));
}

?>

I think it might be in the style file for the plugin:

Code
.inferno_table select {
    background: none repeat scroll 0 0 white;
    border: 1px solid #6B91AB;
    border-radius: 3px 3px 3px 3px;
    color: black;
    font: 11px Tahoma,Calibri,Verdana,Geneva,sans-serif;
    outline: 0 none;
    padding: 4px;
}

.inferno_text {
    max-width: 500px;
    width: 90%;
    height: 18px;
    font-size:12px;
}

.inferno_shoutbox {
}

.inferno_content {
    padding-left: 5px;
    word-wrap:break-word;
    margin-right:10px;
    margin-bottom:20px;
    margin-top:5px;
    color: #3e3e3e;
    overflow: auto;
}

.inferno_content a {
    text-decoration:none;
    color:#336699;
}

.inferno_content a:hover {
    text-decoration:underline;
}

.inferno_links {
    margin-left: 5px;
    margin-bottom: -1px;
}

.inferno_links div {
    border-radius: 3px 3px 0px 0px;
    /*padding-left: 5px;
    padding-right: 5px;*/
}

.inferno_links div {
    margin-right: 8px;
    display: inline;
}

.inferno_alert {
    background-color: #FBEF8D;
    padding:1px;
}

.inferno_alert_div {
    padding: 8px 0px 3px 5px;
}

I dunno...
The only way to learn, is to try. You don't seem to dumb. You can figure this out
Let me have access to your site and ill try and find exactly where the template is located. PM me an admin login if you want me to help.
(Feb 26, 2014 03:13 PM)PAЯADOX Wrote:  The only way to learn, is to try. You don't seem to dumb. You can figure this out

Well, I'm not exactly the best at this its just.. I'm not exactly sure what I'm suppose to be looking for.
If addiction doesn't help you PM me and I'll take a look for you.
(Feb 26, 2014 04:28 PM)PAЯADOX Wrote:  If addiction doesn't help you PM me and I'll take a look for you.

You may as well PM him as he will no longer be allowed help from me.
Check your templates. I just tested it out on my localhost. It's in templates. Grab the <Text Entry> portion and bring it under <Shoutbox Content>
[Image: support1.png]
(Feb 26, 2014 06:03 PM)Hydra Wrote:  Check your templates. I just tested it out on my localhost. It's in templates. Grab the <Text Entry> portion and bring it under <Shoutbox Content>

Doesn't seem to be changing:

Code
<link rel="stylesheet" type="text/css" href="{$mybb->settings['bburl']}/inc/plugins/inferno/inferno_style.css">
<script id="inferno_js" type="text/javascript" src="{$mybb->settings['bburl']}/inc/plugins/inferno/inferno.js.php"></script>

[b]<!--[/b] Inferno Shoutbox Lite: Version {inferno_version} Created by: Mattbox Solutions -->
<table class="tborder inferno_table" cellspacing="1" cellpadding="4" border="0">
    <thead>
        <tr>
        <td class="thead" colspan="5">
            <div class="expcolimage">
                <img id="cat1_img" class="expander" title="[-]" alt="[-]" src="images/collapse.gif" style="cursor: pointer;">
            </div>
            <div style="text-align:center;">
                <strong>
                    <a href="{$mybb->settings['bburl']}/infernoshout.php?action=archive" title="{inferno_shoutbox_title} Archive">{inferno_shoutbox_title}</a>
                </strong>
            </div>
            </td>
        </tr>
    </thead>
    <tbody id="cat_1_e" style="">
        <tr>
            <td class="trow1">
                <div class="inferno_shoutbox">

                    <div id="inferno_smilies" align="center"></div>

                    <div id="inferno_edit_shout" style="display: none;">
                        <form name="updateshout" autocomplete="off" id="newquery">
                        <table class="inputTable">
                        <tr>
                        <td width="100%">
                        <input type="text" style="{inferno_user_css}" id="inferno_update_shout" class="inferno_text" name="updateshout"></input>
                        </td>
                        <td width="1%" style="white-space:nowrap">
                        <input type="submit" id="postshout" class="button" name="updateshout" onclick="javascript: inferno.update_shout(); return false;" class="submitShout" value="Update"/>
                        <input type="button" class="button" name="btnDelete" onclick="javascript: inferno.delete_shout(); return false;" value="Delete"/>
                        <input type="button" class="button" name="btnCancel" onclick="javascript: inferno.cancel(); return false;" value="Cancel" />
                        </td>
                        </tr>
                        </table>
                        </form>
                    </div>

                    <div id="inferno_links" class="inferno_links">
                        <div><a href="#" onclick="javascript: inferno.init(); return false;">{$lang->isb_shoutboxtab}</a></div>
                        <div><a href="#" onclick="javascript: inferno.load_active_users(); return false;">{$lang->isb_activetab}</a>: <span id="inferno_active_users">{inferno_active_users}</span></div>
                    </div>

                    <div id="inferno_alert" class="inferno_alert_inactive"></div>

                    [b]<!--[/b] Shoutbox Content -->
                    <div class="inferno_content" id="inferno_content" style="height:{inferno_css_height}px;">Loading Shoutbox, Please be Patient</div>
                    [b]<!--[/b] End Shoutbox Content -->

                    [b]<!--[/b] Text Entry Table -->
                    <div class="newquery">
                        <form name="newshout" autocomplete="off" id="newquery">
                        <table class="inputTable">
                        <tr>
                        <td width="100%">
                        <input type="text" style="{inferno_user_css}" id="inferno_shout_entry" class="inferno_text" name="newshout"></input>
                        </td>
                        <td width="1%" style="white-space:nowrap">
                        <input type="submit" id="postshout" class="button" name="postshout" onclick="javascript: inferno.submit_shout(); return false;" class="submitShout" value="{$lang->isb_btn_shout}"/>
                        <input type="button" class="button" name="btnClear" onclick="javascript: inferno.clear_shout(); return false;" value="{$lang->isb_btn_clear}"/>
                        {inferno_button_smilies}
                        {inferno_button_bold}
                        {inferno_button_underline}
                        {inferno_button_italic}
                        {inferno_button_colors}
                        {inferno_button_fonts}
                        </td>
                        </tr>
                        </table>
                        </form>
                    </div>
                    [b]<!--[/b] End Text Entry -->

                </div>
            </td>
        </tr>
    </body>
</table>
<br />


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SIM-3051398Jan 31, 2018 02:57 PM 5 186 Jan 31, 2018 02:57 PM
Last Post: Minerz
[MyBB] by ahamilton991Mar 28, 2017 07:49 PM 12 386 Mar 28, 2017 07:49 PM
Last Post: ahamilton991
[MyBB] by TheNitroJun 1, 2016 03:32 AM 3 381 Jun 1, 2016 03:32 AM
Last Post: Sakuto