[phpbb] Ad bar removal - Please Help!

  • SigmaSquared
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 23
  • Status: Offline

Post February 14th, 2005, 5:25 pm

Hey Folks,

I have a problem I was dearly hoping you can solve. I have had a test phpbb forum (with a free host) and a proper one (with a paid one). I have backed up the data from the free forum and restored it into the proper one. My problem is that with the backup also comes this Ad bar shown below (see top of picture). I'm pretty sure it is from the backup/restore process but i'm not sure what i need to edit to get rid of it.

I suspect this is the doing of the free host that put up ads on my page, but its being copied now when i backup the forum.

One other important thing is that it does not appear all the time, but only when i log on.

Any help in getting rid of this ugly thing would be GRRRRREATLY appreciated!! :)

Image

Thanks!!

SigmaSquared
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 14th, 2005, 5:25 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22771
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 14th, 2005, 5:34 pm

The header files are located in your board template directory in overall_header.tpl My first guess is that they may have added some lines of code to it. The best way to check is download or look up an "unedited" version of the template and compare it to your backup copy to see what they changed.
"There's no place like 127.0.0.1 except for ::1."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • SigmaSquared
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 23
  • Status: Offline

Post February 15th, 2005, 6:50 am

Hi there,

That is what i thought too, and i tried looking for changes in the overall_header.tpl file and i couldn't find anything. Here is a copy of the code:

Code: [ Download ] [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="Author" content="http://www.trushkin.net" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="{T_TEMPLATE_PATH}/style.css" type="text/css">
<style type="text/css">
<!--

td.row1    { background-color: {C_ROW1}; }
td.row1_over    { background-color: {C_ROW1_OVER}; }
td.row2    { background-color: {C_ROW2}; }
td.row2_over    { background-color: {C_ROW2_OVER}; }
td.row3, td.row3Right    { background-color: {C_ROW3}; }
td.row3_over    { background-color: {C_ROW3_OVER}; }

th, td.th, td.spacerow    { background-image: url({T_TEMPLATE_PATH}/images/cell1.gif); }
td.th2    { background-image: url({T_TEMPLATE_PATH}/images/cell1.gif); }
td.cat, td.catHead, td.catSides, td.catLeft, td.catRight    { background-image: url({T_TEMPLATE_PATH}/images/cell2.gif); }
td.catBottom { background-image: url({T_TEMPLATE_PATH}/images/cell3.gif); }
td.profile { background-image: url({T_TEMPLATE_PATH}/images/post_bg2.gif); }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("{T_TEMPLATE_PATH}/formIE.css");
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
    if ( {PRIVATE_MESSAGE_NEW_FLAG} )
    {
        window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
    }
//-->
</script>
<!-- END switch_enable_pm_popup -->
<script language="javascript" type="text/javascript">
<!--

var PreloadFlag = false;
var expDays = 90;
var exp = new Date();
var tmp = '';
var tmp_counter = 0;
var tmp_open = 0;

exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function changeImages()
{
    if (document.images)
    {
        for (var i=0; i<changeImages.arguments.length; i+=2)
        {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}

function newImage(arg)
{
    if (document.images)
    {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}

function PreloadImages()
{
    if (document.images)
    {
        // preload all rollover images
        <!-- BEGIN switch_user_logged_out -->
        img0 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login_on.gif');
        img1 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register_on.gif');
        <!-- END switch_user_logged_out -->
        <!-- BEGIN switch_user_logged_in -->
        img2 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm_on.gif');
        img3 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile_on.gif');
        img4 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups_on.gif');
        img5 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout_on.gif');
        <!-- END switch_user_logged_in -->
        img6 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq_on.gif');
        img7 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search_on.gif');
        img8 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users_on.gif');
        img9 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index_on.gif');
        PreloadFlag = true;
    }
    return true;
}


function SetCookie(name, value)
{
    var argv = SetCookie.arguments;
    var argc = SetCookie.arguments.length;
    var expires = (argc > 2) ? argv[2] : null;
    var path = (argc > 3) ? argv[3] : null;
    var domain = (argc > 4) ? argv[4] : null;
    var secure = (argc > 5) ? argv[5] : false;
    document.cookie = name + "=" + escape(value) +
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");
}

function getCookieVal(offset)
{
    var endstr = document.cookie.indexOf(";",offset);
    if (endstr == -1)
    {
        endstr = document.cookie.length;
    }
    return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie(name)
{
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen)
    {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return getCookieVal(j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0)
            break;
    }
    return null;
}

function ShowHide(id1, id2, id3)
{
    var res = expMenu(id1);
    if (id2 != '') expMenu(id2);
    if (id3 != '') SetCookie(id3, res, exp);
}
    
function expMenu(id)
{
    var itm = null;
    if (document.getElementById)
    {
        itm = document.getElementById(id);
    }
    else if (document.all)
    {
        itm = document.all[id];
    }
    else if (document.layers)
    {
        itm = document.layers[id];
    }
    if (!itm)
    {
        // do nothing
    }
    else if (itm.style)
    {
        if (itm.style.display == "none")
        {
            itm.style.display = "";
            return 1;
        }
        else
        {
            itm.style.display = "none";
            return 2;
        }
    }
    else
    {
        itm.visibility = "show";
        return 1;
    }
}

//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0053A2" vlink="#00468C" alink="#FF6633" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onload="PreloadImages();"><a name="top"></a><table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr height="20">
    <td height="20" background="{T_TEMPLATE_PATH}/images/btn_bg.gif" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
        <!-- BEGIN switch_user_logged_out -->
        <td><a title="{L_LOGIN_LOGOUT}" href="{U_LOGIN_LOGOUT}" onmouseover="changeImages('btn_top_login', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login_on.gif'); return true;" onmouseout="changeImages('btn_top_login', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login.gif'); return true;"><img name="btn_top_login" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login.gif" height="20" border="0" alt="{L_LOGIN_LOGOT}" /></a></td>
        <td><a title="{L_REGISTER}" href="{U_REGISTER}" onmouseover="changeImages('btn_top_register', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register_on.gif'); return true;" onmouseout="changeImages('btn_top_register', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register.gif'); return true;"><img name="btn_top_register" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register.gif" height="20" border="0" alt="{L_REGISTER}" /></a></td>
        <!-- END switch_user_logged_out -->
        <!-- BEGIN switch_user_logged_in -->
        <td><a title="{L_PROFILE}" href="{U_PROFILE}" onmouseover="changeImages('btn_top_profile', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile_on.gif'); return true;" onmouseout="changeImages('btn_top_profile', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile.gif'); return true;"><img name="btn_top_profile" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile.gif" height="20" border="0" alt="{L_PROFILE}" /></a></td>
        <td><a title="{PRIVATE_MESSAGE_INFO}" href="{U_PRIVATEMSGS}" onmouseover="changeImages('btn_top_pm', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm_on.gif'); return true;" onmouseout="changeImages('btn_top_pm', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm.gif'); return true;"><img name="btn_top_pm" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm.gif" height="20" border="0" alt="{PRIVATE_MESSAGE_INFO}" /></a></td>
        <!-- END switch_user_logged_in -->
        <td><a title="{L_FAQ}" href="{U_FAQ}" onmouseover="changeImages('btn_top_faq', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq_on.gif'); return true;" onmouseout="changeImages('btn_top_faq', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq.gif'); return true;"><img name="btn_top_faq" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq.gif" height="20" border="0" alt="{L_FAQ}" /></a></td>
        <td><a title="{L_MEMBERLIST}" href="{U_MEMBERLIST}" onmouseover="changeImages('btn_top_users', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users_on.gif'); return true;" onmouseout="changeImages('btn_top_users', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users.gif'); return true;"><img name="btn_top_users" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users.gif" height="20" border="0" alt="{L_MEMBERLIST}" /></a></td>
        <td><a title="{L_SEARCH}" href="{U_SEARCH}" onmouseover="changeImages('btn_top_search', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search_on.gif'); return true;" onmouseout="changeImages('btn_top_search', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search.gif'); return true;"><img name="btn_top_search" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search.gif" height="20" border="0" alt="{L_SEARCH}" /></a></td>
        <!-- BEGIN switch_user_logged_in -->
        <td><a title="{L_USERGROUPS}" href="{U_GROUP_CP}" onmouseover="changeImages('btn_top_groups', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups_on.gif'); return true;" onmouseout="changeImages('btn_top_groups', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups.gif'); return true;"><img name="btn_top_groups" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups.gif" height="20" border="0" alt="{L_USERGROUPS}" /></a></td>
        <td><a title="{L_LOGIN_LOGOUT}" href="{U_LOGIN_LOGOUT}" onmouseover="changeImages('btn_top_logout', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout_on.gif'); return true;" onmouseout="changeImages('btn_top_logout', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout.gif'); return true;"><img name="btn_top_logout" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout.gif" height="20" border="0" alt="{L_LOGIN_LOGOT}" /></a></td>
        <!-- END switch_user_logged_in -->
        <td><a title="{L_INDEX}" href="{U_INDEX}" onmouseover="changeImages('btn_top_index', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index_on.gif'); return true;" onmouseout="changeImages('btn_top_index', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index.gif'); return true;"><img name="btn_top_index" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index.gif" height="20" border="0" alt="{L_INDEX}" /></a></td>
    </table></td>
</tr>
<tr height="100%">
    <td align="center" valign="top" height="100%">
    <br />
    <table border="0" cellspacing="0" cellpadding="10" width="100%">
    <tr>
        <td align="center" valign="top">
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html dir="{S_CONTENT_DIRECTION}">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6. <meta name="Author" content="http://www.trushkin.net" />
  7. {META}
  8. {NAV_LINKS}
  9. <title>{SITENAME} :: {PAGE_TITLE}</title>
  10. <link rel="stylesheet" href="{T_TEMPLATE_PATH}/style.css" type="text/css">
  11. <style type="text/css">
  12. <!--
  13. td.row1    { background-color: {C_ROW1}; }
  14. td.row1_over    { background-color: {C_ROW1_OVER}; }
  15. td.row2    { background-color: {C_ROW2}; }
  16. td.row2_over    { background-color: {C_ROW2_OVER}; }
  17. td.row3, td.row3Right    { background-color: {C_ROW3}; }
  18. td.row3_over    { background-color: {C_ROW3_OVER}; }
  19. th, td.th, td.spacerow    { background-image: url({T_TEMPLATE_PATH}/images/cell1.gif); }
  20. td.th2    { background-image: url({T_TEMPLATE_PATH}/images/cell1.gif); }
  21. td.cat, td.catHead, td.catSides, td.catLeft, td.catRight    { background-image: url({T_TEMPLATE_PATH}/images/cell2.gif); }
  22. td.catBottom { background-image: url({T_TEMPLATE_PATH}/images/cell3.gif); }
  23. td.profile { background-image: url({T_TEMPLATE_PATH}/images/post_bg2.gif); }
  24. /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
  25. @import url("{T_TEMPLATE_PATH}/formIE.css");
  26. -->
  27. </style>
  28. <!-- BEGIN switch_enable_pm_popup -->
  29. <script language="Javascript" type="text/javascript">
  30. <!--
  31.     if ( {PRIVATE_MESSAGE_NEW_FLAG} )
  32.     {
  33.         window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
  34.     }
  35. //-->
  36. </script>
  37. <!-- END switch_enable_pm_popup -->
  38. <script language="javascript" type="text/javascript">
  39. <!--
  40. var PreloadFlag = false;
  41. var expDays = 90;
  42. var exp = new Date();
  43. var tmp = '';
  44. var tmp_counter = 0;
  45. var tmp_open = 0;
  46. exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
  47. function changeImages()
  48. {
  49.     if (document.images)
  50.     {
  51.         for (var i=0; i<changeImages.arguments.length; i+=2)
  52.         {
  53.             document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  54.         }
  55.     }
  56. }
  57. function newImage(arg)
  58. {
  59.     if (document.images)
  60.     {
  61.         rslt = new Image();
  62.         rslt.src = arg;
  63.         return rslt;
  64.     }
  65. }
  66. function PreloadImages()
  67. {
  68.     if (document.images)
  69.     {
  70.         // preload all rollover images
  71.         <!-- BEGIN switch_user_logged_out -->
  72.         img0 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login_on.gif');
  73.         img1 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register_on.gif');
  74.         <!-- END switch_user_logged_out -->
  75.         <!-- BEGIN switch_user_logged_in -->
  76.         img2 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm_on.gif');
  77.         img3 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile_on.gif');
  78.         img4 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups_on.gif');
  79.         img5 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout_on.gif');
  80.         <!-- END switch_user_logged_in -->
  81.         img6 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq_on.gif');
  82.         img7 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search_on.gif');
  83.         img8 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users_on.gif');
  84.         img9 = newImage('{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index_on.gif');
  85.         PreloadFlag = true;
  86.     }
  87.     return true;
  88. }
  89. function SetCookie(name, value)
  90. {
  91.     var argv = SetCookie.arguments;
  92.     var argc = SetCookie.arguments.length;
  93.     var expires = (argc > 2) ? argv[2] : null;
  94.     var path = (argc > 3) ? argv[3] : null;
  95.     var domain = (argc > 4) ? argv[4] : null;
  96.     var secure = (argc > 5) ? argv[5] : false;
  97.     document.cookie = name + "=" + escape(value) +
  98.         ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
  99.         ((path == null) ? "" : ("; path=" + path)) +
  100.         ((domain == null) ? "" : ("; domain=" + domain)) +
  101.         ((secure == true) ? "; secure" : "");
  102. }
  103. function getCookieVal(offset)
  104. {
  105.     var endstr = document.cookie.indexOf(";",offset);
  106.     if (endstr == -1)
  107.     {
  108.         endstr = document.cookie.length;
  109.     }
  110.     return unescape(document.cookie.substring(offset, endstr));
  111. }
  112. function GetCookie(name)
  113. {
  114.     var arg = name + "=";
  115.     var alen = arg.length;
  116.     var clen = document.cookie.length;
  117.     var i = 0;
  118.     while (i < clen)
  119.     {
  120.         var j = i + alen;
  121.         if (document.cookie.substring(i, j) == arg)
  122.             return getCookieVal(j);
  123.         i = document.cookie.indexOf(" ", i) + 1;
  124.         if (i == 0)
  125.             break;
  126.     }
  127.     return null;
  128. }
  129. function ShowHide(id1, id2, id3)
  130. {
  131.     var res = expMenu(id1);
  132.     if (id2 != '') expMenu(id2);
  133.     if (id3 != '') SetCookie(id3, res, exp);
  134. }
  135.     
  136. function expMenu(id)
  137. {
  138.     var itm = null;
  139.     if (document.getElementById)
  140.     {
  141.         itm = document.getElementById(id);
  142.     }
  143.     else if (document.all)
  144.     {
  145.         itm = document.all[id];
  146.     }
  147.     else if (document.layers)
  148.     {
  149.         itm = document.layers[id];
  150.     }
  151.     if (!itm)
  152.     {
  153.         // do nothing
  154.     }
  155.     else if (itm.style)
  156.     {
  157.         if (itm.style.display == "none")
  158.         {
  159.             itm.style.display = "";
  160.             return 1;
  161.         }
  162.         else
  163.         {
  164.             itm.style.display = "none";
  165.             return 2;
  166.         }
  167.     }
  168.     else
  169.     {
  170.         itm.visibility = "show";
  171.         return 1;
  172.     }
  173. }
  174. //-->
  175. </script>
  176. </head>
  177. <body bgcolor="#FFFFFF" text="#000000" link="#0053A2" vlink="#00468C" alink="#FF6633" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onload="PreloadImages();"><a name="top"></a><table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  178. <tr height="20">
  179.     <td height="20" background="{T_TEMPLATE_PATH}/images/btn_bg.gif" align="center" valign="top"><table border="0" cellspacing="0" cellpadding="0">
  180.         <!-- BEGIN switch_user_logged_out -->
  181.         <td><a title="{L_LOGIN_LOGOUT}" href="{U_LOGIN_LOGOUT}" onmouseover="changeImages('btn_top_login', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login_on.gif'); return true;" onmouseout="changeImages('btn_top_login', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login.gif'); return true;"><img name="btn_top_login" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_login.gif" height="20" border="0" alt="{L_LOGIN_LOGOT}" /></a></td>
  182.         <td><a title="{L_REGISTER}" href="{U_REGISTER}" onmouseover="changeImages('btn_top_register', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register_on.gif'); return true;" onmouseout="changeImages('btn_top_register', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register.gif'); return true;"><img name="btn_top_register" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_register.gif" height="20" border="0" alt="{L_REGISTER}" /></a></td>
  183.         <!-- END switch_user_logged_out -->
  184.         <!-- BEGIN switch_user_logged_in -->
  185.         <td><a title="{L_PROFILE}" href="{U_PROFILE}" onmouseover="changeImages('btn_top_profile', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile_on.gif'); return true;" onmouseout="changeImages('btn_top_profile', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile.gif'); return true;"><img name="btn_top_profile" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_profile.gif" height="20" border="0" alt="{L_PROFILE}" /></a></td>
  186.         <td><a title="{PRIVATE_MESSAGE_INFO}" href="{U_PRIVATEMSGS}" onmouseover="changeImages('btn_top_pm', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm_on.gif'); return true;" onmouseout="changeImages('btn_top_pm', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm.gif'); return true;"><img name="btn_top_pm" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_pm.gif" height="20" border="0" alt="{PRIVATE_MESSAGE_INFO}" /></a></td>
  187.         <!-- END switch_user_logged_in -->
  188.         <td><a title="{L_FAQ}" href="{U_FAQ}" onmouseover="changeImages('btn_top_faq', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq_on.gif'); return true;" onmouseout="changeImages('btn_top_faq', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq.gif'); return true;"><img name="btn_top_faq" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_faq.gif" height="20" border="0" alt="{L_FAQ}" /></a></td>
  189.         <td><a title="{L_MEMBERLIST}" href="{U_MEMBERLIST}" onmouseover="changeImages('btn_top_users', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users_on.gif'); return true;" onmouseout="changeImages('btn_top_users', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users.gif'); return true;"><img name="btn_top_users" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_users.gif" height="20" border="0" alt="{L_MEMBERLIST}" /></a></td>
  190.         <td><a title="{L_SEARCH}" href="{U_SEARCH}" onmouseover="changeImages('btn_top_search', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search_on.gif'); return true;" onmouseout="changeImages('btn_top_search', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search.gif'); return true;"><img name="btn_top_search" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_search.gif" height="20" border="0" alt="{L_SEARCH}" /></a></td>
  191.         <!-- BEGIN switch_user_logged_in -->
  192.         <td><a title="{L_USERGROUPS}" href="{U_GROUP_CP}" onmouseover="changeImages('btn_top_groups', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups_on.gif'); return true;" onmouseout="changeImages('btn_top_groups', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups.gif'); return true;"><img name="btn_top_groups" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_groups.gif" height="20" border="0" alt="{L_USERGROUPS}" /></a></td>
  193.         <td><a title="{L_LOGIN_LOGOUT}" href="{U_LOGIN_LOGOUT}" onmouseover="changeImages('btn_top_logout', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout_on.gif'); return true;" onmouseout="changeImages('btn_top_logout', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout.gif'); return true;"><img name="btn_top_logout" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_logout.gif" height="20" border="0" alt="{L_LOGIN_LOGOT}" /></a></td>
  194.         <!-- END switch_user_logged_in -->
  195.         <td><a title="{L_INDEX}" href="{U_INDEX}" onmouseover="changeImages('btn_top_index', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index_on.gif'); return true;" onmouseout="changeImages('btn_top_index', '{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index.gif'); return true;"><img name="btn_top_index" src="{T_TEMPLATE_PATH}/images/lang_{LANG}/btn_index.gif" height="20" border="0" alt="{L_INDEX}" /></a></td>
  196.     </table></td>
  197. </tr>
  198. <tr height="100%">
  199.     <td align="center" valign="top" height="100%">
  200.     <br />
  201.     <table border="0" cellspacing="0" cellpadding="10" width="100%">
  202.     <tr>
  203.         <td align="center" valign="top">


My concern is that it probably got transfered with the backup/restore function. But this is surprising because i wouldn't expect the backup fuction to save any changes made to overall_header.tpl. It is purely a data backup function is it not?

Thanks for your continuing help on this!

Sigma
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22771
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 15th, 2005, 8:32 am

Well, it has to be coded in somewhere. The next logical place to look would be in includes\page_header.php

Your original site may have modified that so their info appears. It has to be coded somewhere, and that's the next best place I can think of. It would probably be somewhere slightly before this line:

PHP Code: [ Download ] [ Select ]
//
 
// Parse and show the overall header.
 
//
 
$template->set_filenames(array(
 
   'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
 
);
  1. //
  2.  
  3. // Parse and show the overall header.
  4.  
  5. //
  6.  
  7. $template->set_filenames(array(
  8.  
  9.    'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
  10.  
  11. );


or this:
PHP Code: [ Download ] [ Select ]
$template->pparse('overall_header');
"There's no place like 127.0.0.1 except for ::1."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • SigmaSquared
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 23
  • Status: Offline

Post February 15th, 2005, 1:59 pm

Indeed, it is coded somewhere and i even managed to locate the java script its using. What i did was on my browser, i right clicked and chose to see the source code. However, even though it said it was reading .../forum/index.php (in which i saw this code), when i open index.php, no such code appears. :S What am i doing wrong?

This is the java script its using but i'm still trying to figureout where it is.

PS: i checked includes\page_header.php. It doesn't appear to be there.

Code: [ Download ] [ Select ]
</script>

<script src="http://100webads.com/banners/tooltip.js"></script>
<div id='divtxl' width="781" align="center" style="position: absolute; z-index: 1000; top: 0; padding:0px 0px 0px 0px; color: #D4D4D4">
<table width="779" border="0" cellspacing="0" cellpadding="0" style="text-align: center">
 <tr>
  <td width="4"><img src="http://100webads.com/banners/left_corner.gif" width="4" height="22"></td>
  <td bgcolor="#D4D4D4" background="http://100webads.com/banners/bg.gif" align="center" height="22" style="font: Tahoma; font-size: 11px; color: #D4D4D4; bgcolor: #D4D4D4; background: url(http://100webads.com/banners/bg.gif); text-align: center">
   <a href="http://www.100webspace.com" title="100mb free web space" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">100mb free web space</a>&nbsp;|
     <a href="http://www.lonex.com" title="web hosting by lonex" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting by lonex</a>&nbsp;|
     <a href="http://www.resellerspanel.com" title="2 tier affiliate program" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">2 tier affiliate program</a>&nbsp;|
     <a href="http://www.fateback.com" title="free web hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">free web hosting</a>&nbsp;|
     <a href="http://www.motion-hosting.com" title="linux hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">linux hosting</a>&nbsp;|
     <a href="http://www.ipowerweb.com" title="web hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting</a>&nbsp;|
     <a href="#" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onmouseover="on_eo(event,'tt1','show')" onmouseout="on_eo(event,'tt1','fade_hide')">links</a>
  </td>

  <td width="3"><img src="http://100webads.com/banners/right_corner.gif" width="3" height="22"></td>
 </tr>
</table>
</div>
<div id='tt1' style="font-family: Tahoma; font-size: 11px; font-weight: normal; color: #000000; text-decoration: none; background-color: #FFFCCC; border-style: Solid; border-color: #000000; border-width:1 1 1 1; position: absolute; display: none; width: 250px; padding: 5 5 5 5;" onMouseOver="on_eo(event,this.id,'pause');" onMouseOut="on_eo(event,this.id,'fade_hide');">
 <div align='left'>
  <a href="http://www.valueweb.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting</a>,
  <a href="http://www.cheaphostingdirectory.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">cheap web hosting</a>,
  <a href="http://www.websitehostdirectory.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">website hosting</a>
 </div>

 <div align='right'><a href="http://www.100webspace.com/advertising.html" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">online advertising</a></div>
</div>
<script language="JavaScript">
  1. </script>
  2. <script src="http://100webads.com/banners/tooltip.js"></script>
  3. <div id='divtxl' width="781" align="center" style="position: absolute; z-index: 1000; top: 0; padding:0px 0px 0px 0px; color: #D4D4D4">
  4. <table width="779" border="0" cellspacing="0" cellpadding="0" style="text-align: center">
  5.  <tr>
  6.   <td width="4"><img src="http://100webads.com/banners/left_corner.gif" width="4" height="22"></td>
  7.   <td bgcolor="#D4D4D4" background="http://100webads.com/banners/bg.gif" align="center" height="22" style="font: Tahoma; font-size: 11px; color: #D4D4D4; bgcolor: #D4D4D4; background: url(http://100webads.com/banners/bg.gif); text-align: center">
  8.    <a href="http://www.100webspace.com" title="100mb free web space" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">100mb free web space</a>&nbsp;|
  9.      <a href="http://www.lonex.com" title="web hosting by lonex" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting by lonex</a>&nbsp;|
  10.      <a href="http://www.resellerspanel.com" title="2 tier affiliate program" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">2 tier affiliate program</a>&nbsp;|
  11.      <a href="http://www.fateback.com" title="free web hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">free web hosting</a>&nbsp;|
  12.      <a href="http://www.motion-hosting.com" title="linux hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">linux hosting</a>&nbsp;|
  13.      <a href="http://www.ipowerweb.com" title="web hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting</a>&nbsp;|
  14.      <a href="#" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onmouseover="on_eo(event,'tt1','show')" onmouseout="on_eo(event,'tt1','fade_hide')">links</a>
  15.   </td>
  16.   <td width="3"><img src="http://100webads.com/banners/right_corner.gif" width="3" height="22"></td>
  17.  </tr>
  18. </table>
  19. </div>
  20. <div id='tt1' style="font-family: Tahoma; font-size: 11px; font-weight: normal; color: #000000; text-decoration: none; background-color: #FFFCCC; border-style: Solid; border-color: #000000; border-width:1 1 1 1; position: absolute; display: none; width: 250px; padding: 5 5 5 5;" onMouseOver="on_eo(event,this.id,'pause');" onMouseOut="on_eo(event,this.id,'fade_hide');">
  21.  <div align='left'>
  22.   <a href="http://www.valueweb.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting</a>,
  23.   <a href="http://www.cheaphostingdirectory.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">cheap web hosting</a>,
  24.   <a href="http://www.websitehostdirectory.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">website hosting</a>
  25.  </div>
  26.  <div align='right'><a href="http://www.100webspace.com/advertising.html" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">online advertising</a></div>
  27. </div>
  28. <script language="JavaScript">
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22771
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 15th, 2005, 2:08 pm

Do you have a link to the forum?
"There's no place like 127.0.0.1 except for ::1."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • SigmaSquared
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 24, 2004
  • Posts: 23
  • Status: Offline

Post February 15th, 2005, 2:13 pm

I am officially an IDIOT!!!!! :D

When i did the backup and restore, i forgot to go to the Admin Panel and change the Domain Name from my old host to my new one!!!! So it was still reading info from the old (free) host. :s

I'm sorry for the trouble, but thank you sincerely for all your help! :)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22771
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 15th, 2005, 2:22 pm

No prob. Glad you figured it out.
"There's no place like 127.0.0.1 except for ::1."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: Bogey and 111 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2010 Unmelted, LLC. Driven by phpBB © 2010 phpBB Group.