Customizing SMF > Modifications and Packages

SMFPacks Shoutbox [SMF 2.0.7 Supported - 1.0.5 Released]

<< < (354/488) > >>

Trophix:
Where do i insert this code?


--- Code: ---<script type="text/javascript">
/*
Multi-Colored Display Names for SMF by wildgoosespeeder
v2.2

Based from the JavaScript codes of
Two Colored Display Names by Code Dragon and Boccy109
from ProBoards
*/
var z = 0;
var e = "";
var a = document.getElementsByTagName('a');
var span = document.getElementsByTagName('span');
var memberscolors = [];

// [user id, display name, color 1, color 2, etc...]
memberscolors[z++] = ["1","ArkCreatiiion","FFFF0O","FF0000","FFFF0O","FF0000","FFFF0O","FF0000","FFFF0O","FF0000","FFFF0O","FF0000"];
memberscolors[z++] = ["2","ArkInvaliid","000099","FF3300","000099","FF3300","000099","FF3300","000099","FF3300","000099","FF3300"];

for(loop = 0; loop < memberscolors.length; loop++)
{
    e = "";
    for(c = 0; c < memberscolors[loop][1].length; c++)
    {
        e += "<b><font color='#" + memberscolors[loop][(c % (memberscolors[loop].length - 2)) + 2] + "'>" + memberscolors[loop][1].charAt(c) + "</b></font>";
    }
    for(href = 0; href < a.length; href++)
    {
        if(a[href].href.match(new RegExp("action=profile;u=" + memberscolors[loop][0] + "$")) && a[href].innerHTML == memberscolors[loop][1])
        {
            a[href].innerHTML = e;
        }
    }
    for(stylecheck = 0; stylecheck < span.length; stylecheck++)
    {
        if(span[stylecheck].innerHTML == memberscolors[loop][1])
        {
            span[stylecheck].innerHTML = e;
        }
    }
}
</script>
--- End code ---


its in use in the global header and footer mod,but i wish to have the same name colors in the shoutbox as well,any ideas where to put it?

polkablues:
Hi, I just installed the mod and love it.  My one aesthetic issue is that there's a lot of empty padding between the top of the box and the menu buttons (update, open popup, etc.).  I've browsed through the Shoutbox.template.php and played with some settings, but I can't seem to pin down where in the code I can adjust this.  Any help would be greatly appreciated.

EDIT: Second issue... Is there a way to make it so that the shoutbox will stay expanded or collapsed for a user as they log out and log back in?  In other words, rather than always starting out open or always starting out hidden, it will be however they left it when they come back?  I have some users who like having it always ready to use, and some who would prefer it stay out of their way until they want to see it.

br360:
Ok all, I need some help here. I read through 89 pages, tried numerous attempts, and still was unable to get the shoutbox to appear in all of the sections of my board, and not just on the index page. I'm losing my mind.

Here is a screencap of what the Pages where Shoutbox will be printed looks like-




Can someone please tell me exactly what I'm supposed to replace the "boardindex" and "collapsecategory" with, so I can get this amazing shoutbox to work on every page?

lol, Please?

[Crash_Override]:
@Bradley206:

in the box "Pages Where shoutbox will be printed" add these values to it

display
boardindex
messageindex
collapsecategory

should yield the desired result

br360:

--- Quote from: [Crash_Override] on August 22, 2012, 12:52:54 AM ---@Bradley206:

in the box "Pages Where shoutbox will be printed" add these values to it

display
boardindex
messageindex
collapsecategory

should yield the desired result

--- End quote ---

It worked. Thank you so much. That is 3 hours I will never get back, but at least I can sleep now.;) 

Seriously; thank you.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version