Printable Version of Topic
Click here to view this topic in its original format
Jcink.com Forums > General Support > Weird Coding Issue


Posted by: EliteKilljoy Oct 28 2017, 10:35 AM
Hey! The website I'm working on is http://narutogaidenrp.jcink.net/index.php?act=idx.

I can't figure out why the entire Welcome/Picture/Link section right below the main banner has become a link to the board home. It used to be just fine, so I'm sure I broke something (I'm assuming I left some code open somewhere or something).

Anyway, wondering if anyone here can figure it out? I scanned through the code several times and couldn't see anything wrong, so I thought I'd ask here.

Thanks!

Posted by: owl Oct 28 2017, 05:12 PM
When I look at it, there appears to be the following in your board wrappers:

CODE
<a href="http://narutogaidenrp.jcink.net/index.php?amp;" title="Board Home">


If it's there, remove it, or add an </a> after it, and it it's not there please post your board wrapper.

Posted by: HarrisLa Oct 31 2017, 03:58 AM
That's so annoying, I would have never caught that. Luckily there are people like you here.

Posted by: EliteKilljoy Jan 5 2018, 02:44 PM
That wasn't in my board wrapper.

I somehow fixed my earlier issue, but now there's a weird white strip above the banner area?

Here's my wrapper:

CODE
<!DOCTYPE html>
<html>
   <head>
<title><% TITLE %></title>
<link rel="icon" type="image" href="https://image.ibb.co/fXAgAm/Emoji_u1f365_svg.png">
<% CSS %>
<% JAVASCRIPT %>
<link href="https://fonts.googleapis.com/css?family=Playfair+Display+SC" rel="stylesheet">

<script src="https://prox.icyboards.net/?url=http%3A%2F%2Fcode.jquery.com%2Fjquery-1.10.2.js"></script>
 <script src="//code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script>function createCookie(name,value,days) {
   if (days) {
       var date = new Date();
       date.setTime(date.getTime()+(days*24*60*60*1000));
       var expires = "; expires="+date.toGMTString();
   }
   else var expires = "";
   document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
   var nameEQ = name + "=";
   var ca = document.cookie.split(';');
   for(var i=0;i < ca.length;i++) {
       var c = ca[i];
       while (c.charAt(0)==' ') c = c.substring(1,c.length);
       if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
   }
   return null;
}

function eraseCookie(name) {
   createCookie(name,"",-1);
}</script>

<script>
 $(document).ready(function() {

var ReadxPos = readCookie('NGA_PosX');
var ReadyPos = readCookie('NGA_PosY');
$( "#cbox" ).css("margin-left", ReadxPos + 'px');
$( "#cbox" ).css("margin-top", ReadyPos + 'px');

//Draggable cbox
$(function() {
   $( "#cbox" ).draggable({
     

           drag: function(){
               var offset = $(this).offset();
               var xPos = offset.left;
               var yPos = $(this).offset().top - (window.scrollY || window.pageYOffset || document.body.scrollTop);
               $('#posX > span').text(xPos);
               $('#posY > span').text(yPos);
           },

           stop: function(event, ui) {
             var offset = $(this).offset();
               var yPos = $(this).offset().top - (window.scrollY || window.pageYOffset || document.body.scrollTop);
             var xPos = offset.left;
             createCookie('NGA_PosX', xPos, 0)
             createCookie('NGA_PosY', yPos, 0)
           }

       }

 );

});
});
   </script>
   </head>
   <body>
<div id="cbox">
<center>CLICK TO DRAG</center><br>
<!-- BEGIN CBOX CODE -->
<iframe src="https://www7.cbox.ws/box/?boxid=845786&boxtag=CYOHgp" width="250" height="350" allowtransparency="yes" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto"></iframe>
<!-- END CBOX -->    
</div>

<div id="wrapper">
<div class="banner">
<% BOARD HEADER %>
<a href="http://narutogaidenrp.jcink.net"><img src="https://image.ibb.co/cfJQ0m/NGA_Banner.png"></a>
</div>
</div>

<div class="scroll"><div id="userlinks1"></div></div>


<div id="wrap1">
<div id="innerwrapper">
<div id="toptable">
<table class="tt">
<tr>
<td class="tt1" vAlign="top">
<span>視</span>
<h1>WELCOME</h1>
<h2>to Naruto Gaiden: Arise</h2>
<p>It is now in the time of the next generation. The youth are coming forward, flourishing into new roles as genin and opening their opportunity for potential. With the legends of their parents coming to a close, it is now their time to step up and shine. It is their time to rise up. Meanwhile, old and new foes alike bide their time and perfect past mistakes. They move undetected and unseen, moving their pieces across the board in preparation to strike.<br>
<font color="#dd001f"><i>Next generation. No word count. 3/3/3 rating.</i></font></p>
</td>
<td class="tt2" vAlign="top">
<div class="tthov">
<img src="https://image.ibb.co/kbKb6R/NGA_Image.png">
<div class="tthov2"><span>参</span>
<h1>STAFF</h1>  <h2>Admin: EliteKilljoy</h2></div>
</div>
</td>
<td class="tt3" vAlign="top">
<span>操</span>
<h1>USEFUL LINKS</h1>
<h2>& Information</h2>
<a href="http://narutogaidenrp.jcink.net/index.php?showtopic=3&view=findpost&p=3">RULES</a>
<a href="http://narutogaidenrp.jcink.net/index.php?showforum=14">INFORMATION</a>
<a href="http://narutogaidenrp.jcink.net/index.php?showtopic=62&view=findpost&p=105">CANONS</a>
<a href="http://narutogaidenrp.jcink.net/index.php?showtopic=63&view=findpost&p=108">APPLICATIONS</a>
<a href="http://narutogaidenrp.jcink.net/index.php?showforum=6">ADVERTISING</a>
</td>
</tr>
</table>
</div>
</div>


     <div id="navi">
     <% NAVIGATION %>
     </div>

<div id="innerwrapper2">
<div id="boardwrap">
     <% BOARD %>
     <div id="skin_selector">
         <% SKIN_SELECTOR %>
     </div>

<div id="footer">

<div id="affs">
<center>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
</center>
<marquee>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
<img src="https://image.ibb.co/fqT4fm/88x31.png"></img>
</marquee>
</div>

<div id="cred">skin by <a href="http://bonbonskins.com/">bonbon</a>.</div>

</div>
     <% COPYRIGHT %>
     <script>$('#logo a img[src="style_images/1/spacer.gif"]').replaceWith('<!-- |board_name| -->');</script>
<script>$("#userlinks").appendTo("#userlinks1");</script>
<script>
function sticky_relocate() {
 var window_top = $(window).scrollTop();
 var div_top = $('.scroll').offset().top;
 if (window_top > div_top) {
   $('#userlinks1').addClass('stick');
 } else {
   $('#userlinks1').removeClass('stick');
 }
}

$(function() {
 $(window).scroll(sticky_relocate);
 sticky_relocate();
});
</script>
    </div></div>

   </body>

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"><link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900|Lato:300,400,900|Quicksand:300,400,700|Ubuntu:300,400,500,700|Fredoka+One|Roboto+Condensed:400,300,700|Montserrat:400,700|Montserrat+Alternates|Titillium+Web|Roboto|Poppins' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</html>

Posted by: EliteKilljoy Jan 12 2018, 01:30 PM
Bump?

Posted by: owl Jan 12 2018, 04:03 PM
Do you mean at the very top of your site? if so you're probably using an ad block, because that's where the ad is, and it can't be moved or removed (without the purchase of premium, of course).

'
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)