inherit
56641
0
Jul 14, 2008 13:57:46 GMT -8
Timothy
Lifelong Fan of the World's Finest Heroes
1,458
August 2005
demonshead
|
Post by Timothy on Dec 10, 2005 15:43:22 GMT -8
Forum URL: dccomments.proboards62.comI disabled guests from viewing much of DC, and now it has a yellow Microsoft error message that says that... Line: 672 Char:31 Error: 'this.getElementsByTagName(...)[...]href'is null or not an object Code: 0 How can I get rid of this and enable the last updated thread in each board to say "You must register/ login in order to view"?
|
|
#eb7100
1480
0
1
May 18, 2024 11:56:24 GMT -8
Craig
208,894
September 2001
cmdynasty
|
Post by Craig on Dec 10, 2005 15:44:31 GMT -8
Did you use a code to do that, if so, which one?
|
|
inherit
56641
0
Jul 14, 2008 13:57:46 GMT -8
Timothy
Lifelong Fan of the World's Finest Heroes
1,458
August 2005
demonshead
|
Post by Timothy on Dec 10, 2005 15:45:29 GMT -8
No code at all...I just manually selected that each board be only visible by members only...
|
|
#eb7100
1480
0
1
May 18, 2024 11:56:24 GMT -8
Craig
208,894
September 2001
cmdynasty
|
Post by Craig on Dec 10, 2005 15:55:41 GMT -8
See this code in your footer: <script type="text/javascript"> /* Last Post Column Cell Highlight Created by hey forums.talesrpg.com Do not repost and keep header intact */
//Highlight color var highlightColor = '404040';
//0 to link to profile, 1 to link to thread var linkTarget = '1';
icell = document.getElementsByTagName('TD'); for(t=0;t<icell.length;t++) { if (icell[t].className=="windowbg2" && icell[t].width=="24%") { icell[t].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundColor=highlightColor;}; icell[t].onmouseout = function(){this.style.backgroundColor=this.bgColor;}; icell[t].onclick = function(){location = this.getElementsByTagName('a')[linkTarget].href;};} if(location.href.match(/board=/) && !location.href.match(/action=display/)){ if (icell[t].className=="windowbg2" && icell[t].width=="20%") { icell[t].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundColor=highlightColor;}; icell[t].onmouseout = function(){this.style.backgroundColor=this.bgColor;};}}} </script>Replace with this one. <script type="text/javascript"> /* Last Post Column Cell Highlight Created by hey forums.talesrpg.comDo not repost and keep header intact */ //Highlight color var highlightColor = '404040'; //0 to link to profile, 1 to link to thread var linkTarget = '1'; icell = document.getElementsByTagName('TD'); for(t=0;t<icell.length;t++) { if (icell[t].className=="windowbg2" && icell[t].width=="24%" && icell[t].getElementsByTagName('a')) { icell[t].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundColor=highlightColor;}; icell[t].onmouseout = function(){this.style.backgroundColor=this.bgColor;}; icell[t].onclick = function(){location = this.getElementsByTagName('a')[linkTarget].href;};} if(location.href.match(/board=/) && !location.href.match(/action=display/)){ if (icell[t].className=="windowbg2" && icell[t].width=="20%") { icell[t].onmouseover = function(){this.style.cursor='pointer';this.style.backgroundColor=highlightColor;}; icell[t].onmouseout = function(){this.style.backgroundColor=this.bgColor;};}}} </script>
|
|
inherit
56641
0
Jul 14, 2008 13:57:46 GMT -8
Timothy
Lifelong Fan of the World's Finest Heroes
1,458
August 2005
demonshead
|
Post by Timothy on Dec 10, 2005 16:01:43 GMT -8
Thanks! The error message is now gone...Do I need to add an HTML add-on to my footers in order for it to read "Please register/ login in order to view"...? I'm rather confuzzled right now regarding this...
|
|
#eb7100
1480
0
1
May 18, 2024 11:56:24 GMT -8
Craig
208,894
September 2001
cmdynasty
|
Post by Craig on Dec 10, 2005 16:04:41 GMT -8
Thanks! The error message is now gone...Do I need to add an HTML add-on to my footers in order for it to read "Please register/ login in order to view"...? I'm rather confuzzled right now regarding this... It will do that when they try to go into the board.
|
|