MyBB Community Forums

Full Version: Adding stuff to footer - please help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
please hlep

i want to add some stuff to the footer of the forum....
under, all the "powered by" and "statistics"

how can i do it?
i haev a html doc with some javascript, i need to include.

thanks!

is there no "footer" file?

thanks!
Got to ADMIN CP-->templates-->modify/delete-->Expand-->footer
I hope this helps.
Thanks!

i'm trying to use Windows-1251 Encoding, but it seems the forum does not support it.
do you know what other one i could use for Cyrillic font (russian), for it to show correctly?
basically, where do i change the charset of the forum?
You can edit the code right from the mybb admin CP But if you want a software Click Here!
let me know if you need anything else.
i changed the charset in inc/lanugages/english.php to windows, but it's still giving me mumbo-jumbo


please hlep.


Sad


this is the code i want to add to the footer, it works if i open it as a html page, but once i put it in the template, it messes up all the characters....




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0033)http://to4ka.com/email/email.html -->
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<SCRIPT language=JavaScript>
//<!--

function DoTableWin( str )
{
    var aTable1 = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¨¸";    // Windows-1251
    var aTable6 = "ABVGDE-ZIJKLMNOPRSTUFHC----Y'E--abvgde-zijklmnoprstufhc----y'e----"; // ëàòèíèöà
    
    var strTable1, strTable2;
    
    strTable1 = aTable6;
    strTable2 = aTable1;

    var strNew = "";

    var i, len = str.length;
    for (i = 0; i < len; i++)
    {
        if ("'" == str.substr(i, 1))
        {
            strNew = strNew + "ü";
            continue;
        }
        
        if (i < (len - 2))
        {
            var c = str.substr(i, 3);
            if ("Sch" == c)
            {
                strNew = strNew + "Ù";
                i = i + 2;
                continue;
            }
            else if ("sch" == c)
            {
                strNew = strNew + "ù";
                i = i + 2;
                continue;
            }
        }

        if (i < (len - 1))
        {
            var c = str.substr(i, 2);
            if (("Zh" == c) || ("ZH" == c))
            {
                strNew = strNew + "Æ";
                i++;
                continue;
            }
            else if (("Ch" == c) || ("CH" == c))
            {
                strNew = strNew + "×";
                i++;
                continue;
            }
            else if (("Sh" == c) || ("SH" == c))
            {
                strNew = strNew + "Ø";
                i++;
                continue;
            }
            else if (("Ju" == c) || ("JU" == c))
            {
                strNew = strNew + "Þ";
                i++;
                continue;
            }
            else if (("Ja" == c) || ("JA" == c))
            {
                strNew = strNew + "ß";
                i++;
                continue;
            }
            else if (("TZ" == c) || ("Tz" == c))
            {
                strNew = strNew + "Ú";
                    i++;
                    continue;
            }
            else if ("tz" == c)
            {
                strNew = strNew + "ú";
                    i++;
                    continue;
            }
            if ("zh" == c)
            {
                strNew = strNew + "æ";
                i++;
                continue;
            }
            else if ("ch" == c)
            {
                strNew = strNew + "÷";
                i++;
                continue;
            }
            else if ("sh" == c)
            {
                strNew = strNew + "ø";
                i++;
                continue;
            }
            else if ("ju" == c)
            {
                strNew = strNew + "þ";
                i++;
                continue;
            }
            else if ("ja" == c)
            {
                strNew = strNew + "ÿ";
                i++;
                continue;
            }
            else if (("Jo" == c) || ("JO" == c))
            {
                strNew = strNew + "¨";
                i++;
                continue;
            }
            else if ("jo" == c)
            {
                strNew = strNew + "¸";
                i++;
                continue;
            }
        }

        var c = str.substr(i, 1);
        var pos = strTable1.indexOf(c);
        if (pos < 0)
            strNew = strNew + c;
        else
        {
            var d = strTable2.substr(pos, 1);
              strNew = strNew + d;
        }
    }

    return strNew;
}

function Decode()
{
    var strText = document.forms.f1.thanks_msg_rus.value;
    
    if (0 == strText.length)
    {
        alert("Type in the window above");
        document.forms.f1.thanks_msg_rus.focus();
        return strText;
    }

    strText = DoTableWin( strText );

    document.forms.f1.thanks_msg_rus.value = strText;
    
    return strText;
}
//-->
</SCRIPT>

<META content="MSHTML 6.00.2800.1590" name=GENERATOR></HEAD>
<BODY bgColor=#c0c0c0>
<FORM name=f1 >
<DIV align=center>
<BR>
<HR width=800 color=red>
<BR>
<TABLE width=800 bgColor=#c0c0c0 border=0>
  <TBODY>
  <TR>
    <TD align=left colSpan=2><B>Russian Text</B></TD></TR>
  <TR>
    <TD colSpan=2><TEXTAREA name=thanks_msg_rus rows=5 wrap=virtual cols=70 noscrolling></TEXTAREA> 
    </TD></TR>
  <TR>
    <TD><INPUT onclick=JavaScrip:Decode() type=button value="Translit" name=B1>  </TD></TR></TBODY></TABLE><BR><BR>
<TABLE cellPadding=5 border=5>
  <TBODY>
  <TR>
    <TD><FONT color=red>À&nbsp;&nbsp; Á&nbsp;&nbsp; Â&nbsp;&nbsp; 
      Ã&nbsp;&nbsp; Ä&nbsp;&nbsp; Å &nbsp;&nbsp; Æ&nbsp;&nbsp;&nbsp;&nbsp; 
      Ç&nbsp;&nbsp; È&nbsp;&nbsp; É&nbsp;&nbsp; Ê&nbsp;&nbsp; Ë&nbsp;&nbsp; 
      Ì&nbsp;&nbsp; Í&nbsp;&nbsp; Î&nbsp;&nbsp; Ï&nbsp;&nbsp; Ð&nbsp;&nbsp; 
      Ñ&nbsp;&nbsp; Ò&nbsp;&nbsp; Ó&nbsp;&nbsp; Ô&nbsp;&nbsp; Õ&nbsp;&nbsp; 
      Ö&nbsp;&nbsp; ×&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      Ø&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      Ù&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
      Ú&nbsp;&nbsp;&nbsp;&nbsp; Û&nbsp;&nbsp; Ü&nbsp;&nbsp; Ý&nbsp;&nbsp; 
      Þ&nbsp;&nbsp; ß&nbsp;&nbsp;<BR><BR>A&nbsp;&nbsp; B&nbsp;&nbsp; 
      V&nbsp;&nbsp; G&nbsp; D&nbsp;&nbsp; E&nbsp; (ZH)&nbsp;&nbsp; Z&nbsp;&nbsp; 
      I&nbsp;&nbsp;&nbsp;&nbsp; J&nbsp;&nbsp; K&nbsp;&nbsp; L&nbsp;&nbsp; 
      M&nbsp;&nbsp;&nbsp; N&nbsp;&nbsp; O&nbsp;&nbsp; P&nbsp;&nbsp; 
      R&nbsp;&nbsp; S&nbsp;&nbsp; T&nbsp;&nbsp; U&nbsp;&nbsp; 
      F&nbsp;&nbsp;&nbsp; H&nbsp;&nbsp; C&nbsp; (CH)&nbsp; (SH)&nbsp; 
      (SCH)&nbsp;&nbsp; (TZ)&nbsp;&nbsp; Y&nbsp;&nbsp; '&nbsp;&nbsp; 
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (JU)&nbsp;&nbsp;(JA)&nbsp;&nbsp; 
  </FONT></TD></TR></TBODY></TABLE></DIV></FORM></BODY></HTML>
shoot, it messed it up here too Sad

i'm attaching my html. hopefully it'll work that way....
Well what your inserting is html and the footer is php, So Make sure you insert the "<HTML></HTML>" Tags.
You Also Don't need this in your code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0033)http://to4ka.com/email/email.html -->
<HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
the problem was w/ the encoding i was using. Everything is peachy now Smile
Thanks alot for your help Smile