vForums Support > Programming & Coding :: Code Requests & Support :: > menu buttons do not show up

menu buttons do not show up - Posted By spiritheartlady (spiritheartlady) on 3rd Jun 08 at 3:28am
http://codeswithgraphics.vforums.co.uk/
Experienced By: the Admin
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
XP

My menu buttons will not show up in menu bar or in my banner please tell me what is wrong or fix it I do not know.

Re: menu buttons do not show up - Posted By forte (forte) on 3rd Jun 08 at 4:50am
One of the main problems is that you are using codes designed for the Proboards Forum Service on your forum.

For example:
Code:
 
  1. <style type="text/css">
  2.     <!--
  3.     .titlebg {background-image: url(http://i23.photobucket.com/albums/b392/poetryladycat/poetryladycat3/poetryladycat6/poetryladycat9/skiesgrad2.jpg); background-repeat: repeat;}
  4.     -->
  5.     </style>
  6.     <script type="text/javascript">
  7.     <!--
  8.     document.getElementsByTagName('td').item(2).style.display="none";
  9.     //-->
  10.     </script>
  11.     <script type="text/javascript">
  12.     <!--
  13.     document.getElementsByTagName('font').item(1).style.display="none";
  14.     //-->
  15.     </script>
  16.     <style type="text/css">
  17.     <!--
  18.     body
  19.     {
  20.     background-position: top center;
  21.     background-repeat: repeat-y;
  22.     background-attachment: fixed;
  23.     }
  24.     -->
  25.     </style>
  26.  
  27.     <style type="text/css">
  28.     <!--
  29.     .catbg {background-image: url(http://i23.photobucket.com/albums/b392/poetryladycat/poetryladycat3/poetryladycat6/poetryladycat9/skiesgrad1.jpg); background-repeat: repeat;}
  30.     -->
  31.     </style>
  32.     <script type="text/javascript">
  33.     <!--
  34.     /*
  35.     Modified text menus coded by Joe/Xylish
  36.     Note: in order to use this code, please enable text menus in your pbv4 settings
  37.     at Customize Your Forum -> General Settings -> Text Menus and choose "yes"
  38.     */
  39.  
  40.     //Modify within the quotes to the character that you want
  41.     schar = "-"
  42.  
  43.     //Please do not edit below here
  44.     function Get(tag){
  45.     return document.getElementsByTagName(tag)
  46.     }
  47.     TDNode = Get('td')
  48.     spaces = "&nb"+"sp;"+ schar +"&nb"+"sp;"
  49.     for(t=0;t<TDNode.length;t++){
  50.     if(TDNode[t].className.match(/menubg/i)){
  51.     TDNode[t].innerHTML = TDNode[t].innerHTML.replace(new RegExp('&nb'+'sp;','gi'),' ')
  52.     TDNode[t].innerHTML = TDNode[t].innerHTML.replace(/\/a>(.+?)<a/gi , '\/a>'+spaces+'<a')
  53.     TDNode[t].innerHTML = TDNode[t].innerHTML.replace(/(\[|])/gi,'')
  54.     }
  55.     }
  56.     //-->
  57.     </script>
  58.     <!--SMALL FONTS-->
  59.     <style type="text/css">
  60.     A:link{font-size:10px}
  61.     A:visited{font-size:10px}
  62.     A:hover{font-size:10px}
  63.     BODY{font-size:10px}
  64.     TD{font-size:10px}
  65.     input{font-size:10px}
  66.     textarea{font-size:10px}
  67.     select{font-size:10px}
  68.     .windowbg{font-size:10px}
  69.     .windowbg2{font-size:10px}
  70.     .windowbg3{font-size:10px}
  71.     .titlebg{font-size:10px}
  72.     .text1{font-size:10px}
  73.     .catbg{font-size:10px}
  74.     font {font-size:10px}
  75.     </style>
  76.     <!--END SMALL FONTS-->
 


And:
Code:
 
  1. <script type="text/javascript">
  2.     <!--
  3.     /* menu buttons inside banner by california */
  4.  
  5.     var imgURL = "http://i23.photobucket.com/albums/b392/poetryladycat/poetryladycat3/poetryladycat6/poetryladycat9/skiesban.jpg";
  6.     var imgWidth = "400";
  7.     var imgHeight = "200";
  8.     var menuXpos = "-1";
  9.     var menuYpos = "-62";
  10.  
  11.     var iCell = document.getElementsByTagName("td");
  12.     iCell[1].style.backgroundImage = 'url('+imgURL+')';
  13.     iCell[1].style.height = imgHeight+"px";
  14.     iCell[1].align = "Center";
  15.     iCell[1].vAlign = "bottom";
  16.     document.getElementsByTagName("table")[0].width = imgWidth;
  17.     iCell[1].innerHTML = '<div style="position: relative; top: '+menuYpos+
  18.     'px; left: '+menuXpos+'px;">'+iCell[5].innerHTML+'</div>';
  19.     iCell[2].style.display = "none";
  20.     document.getElementsByTagName("tr")[2].style.display = "none";
  21.  
  22.     // -->
  23.     </script>
  24.  
  25.     <div id="wel"></div>
  26.  
  27.     <script type="text/javascript">
  28.     <!--
  29.  
  30.     var welcomeTable = document.getElementsByTagName("table").item(0);
  31.     document.getElementById("wel").appendChild(welcomeTable);
  32.  
  33.     //-->
  34.     </script>
 


Code:
 
  1. <script>
  2.     //remove info center icons
  3.     var InfoIcon=document.getElementsByTagName("TD")
  4.     for(t=0;t<InfoIcon.length;t++){
  5.     if(InfoIcon[t].className.match("windowbg") && InfoIcon[t].width=="20" && InfoIcon[t].vAlign=="middle"){
  6.     InfoIcon[t].style.display="none"
  7.     }}
  8.     </script>
  9.  
  10.     <script type="text/javascript">
  11.     <!--
  12.     /* Created by Jay.
  13.     Divided Categories with Head/Base Images
  14.  
  15.     [url]http://ngmaster.proboards21.com[/url]
  16.     This code may not be redistributed without permission.
  17.     Please leave this header intact at all times. */
  18.  
  19.  
  20.     var headBaseSettings = [
  21.     ['http://i23.photobucket.com/albums/b392/poetryladycat/poetryladycat3/poetryladycat6/poetryladycat9/skieshead.png'], // head image
  22.     ['http://i23.photobucket.com/albums/b392/poetryladycat/poetryladycat3/poetryladycat6/poetryladycat9/skiesbase.png'], // base image
  23.     ['25'] // gap size
  24.     ];
  25.  
  26.     var getTR = document.getElementsByTagName('tr');
  27.     if (window.location.href.match(/com(\/$|\/index\.c\wi\??($|\w{6}=home)$)$/)) {
  28.     for (var i = 1; i < getTR.length; i ++) {
  29.     if (getTR.item(i).firstChild.colSpan == 2 && getTR.item(i).firstChild.firstChild.className == 'titletext' && getTR.item(i).firstChild.innerHTML.match(/>Forum Name</)) {
  30.     var titleBase = document.createElement('img');
  31.     titleBase.src = headBaseSettings[1];
  32.     var cloneTitle = getTR.item(i).cloneNode(true).innerHTML;
  33.     }
  34.     if (getTR.item(i).firstChild.colSpan == 5 && getTR.item(i).firstChild.className == 'catbg' && getTR.item(i).firstChild.align != 'right') {
  35.     var cloneTarget = getTR.item(i).getElementsByTagName('td')[0].cloneNode(true).innerHTML;
  36.     var newTab = '<td id="del"></td></tr></table>' + (getTR.item(i - 1).innerHTML.match(/>Forum Name</)? '' : '<img src="' + headBaseSettings[1] + '" /><div style="height: ' + headBaseSettings[2] + 'px;"></div>') + '<img src="' + headBaseSettings[0] + '" style="vertical-align: bottom;" /><table width="100%" cellspacing="1" cellpadding="4" class="bordercolor"><tr><td class="catbg" colspan="6">' + cloneTarget + '</td></tr><tr id="frow">';
  37.     eval("(getTR.item(i - 1).innerHTML.match(/>Codes With Graphics & Stuff</)? getTR.item(i).parentNode.parentNode.parentNode.parentNode.parentNode.insertRow(-1).insertCell(-1).appendChild(titleBase) : '')");
  38.     getTR.item(i).parentNode.className = '005270';
  39.     with (getTR.item(i).parentNode.parentNode.parentNode) {
  40.     parentNode.parentNode .parentNode.style.backgroundColor = '67c7c8';
  41.     innerHTML = innerHTML.replace(getTR.item(i).cloneNode(true).innerHTML, newTab + cloneTitle);
  42.     }
  43.     }
  44.     if (getTR.item(i).firstChild.id == 'del' || (getTR.item(i).id != 'frow' && getTR.item(i).getElementsByTagName('td')[0].className == 'titlebg' && getTR.item(i).getElementsByTagName('td')[0].innerHTML.match(/>Codes With Graphics & Stuff</))) {
  45.     getTR.item(i).style.display = 'none';
  46.     }
  47.     }
  48.     }
  49.  
  50.     //-->
  51.     </script>
 


In order to get your board functioning properly you should remove these codes from your headers and footers. To get there use this link:
http://codeswithgraphics.vforums.co.uk/action/admin/page/headers_footers/header_footer_id/+/

If you need some of those codes for your forum there is a code request board where you can ask for them to be made.

Re: menu buttons do not show up - Posted By spiritheartlady (spiritheartlady) on 5th Jun 08 at 7:23pm
That template was on your website not proboards.

Re: menu buttons do not show up - Posted By Michael (wrighty) on 5th Jun 08 at 7:41pm
 
That template was on your website not proboards.


Who's Website?

Re: menu buttons do not show up - Posted By forte (forte) on 7th Jun 08 at 8:21pm
 
That template was on your website not proboards.
The template may have been from VF, but not all the codes that you are using are.