News:

Create A Forum Installed

Author Topic: Forum is broken, Possibly something to do with code.  (Read 1858 times)

0 Members and 1 Guest are viewing this topic.

Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile

Badges: (View All)
Level 3 10 Posts Karma Good
Forum is broken, Possibly something to do with code.
« on: February 05, 2015, 06:53:29 pm »
When I go to any page on my forums it goes to this: http://cyanproductions.createaforum.com/NaN page and constantly refreshes. I tried disabling JavaScript but that didn't work.

Share on Facebook Share on Twitter


Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: Forum is broken, Possibly something to do with code.
« Reply #1 on: February 05, 2015, 09:08:24 pm »
Cleared your footer codes here is the old codes
Code: [Select]
<script>
//Created by xboi209
//Version: Beta 02.06.13
if (location.href == smf_scripturl + "?action=shop") {
    $("#main_content_section").html("<center><div id='shop'><table frame='box' cellspacing='10' width='600'><tr><th>Item</th><th>Description</th><th>Price</th><th>Buy</th></tr><tbody id='row'></tbody></table><></center>");
}
if (location.href == smf_scripturl + "?action=shop;page=buy") {
    $("#main_content_section").html("<center><div id='shop_buy'><table frame='box' cellspacing='10' width='600' id='shop_table'><tr><th>Are you sure?</th></tr><tr><td><tbody id='buy_formtest'></tbody></td></tr></table><div id='buy_button'><><></center><br>");
    purchase();
}
if (location.href == smf_scripturl + "?action=profile;area=forumprofile;updated" && localStorage.getItem("purchased") == "true") {
    localStorage.setItem("purchased","false")
    window.location = smf_scripturl + "?action=shop;page=purchased";
}
if (location.href == smf_scripturl + "?action=shop;page=purchased") {
    $("#main_content_section").html("<center><div class='windowbg' id='profile_success'>You have successfully purchased " + localStorage.getItem("item") + "!<br><a href='"+smf_scripturl+"?action=shop'>Return to Shop</a><br><br><a href='"+smf_scripturl+"?action=pm;sa=send;u=1'>Notify CyanGaming</a></center>");
}
if (location.href >= smf_scripturl + "?action=profile") {
    $.get(smf_scripturl + "?action=shop", function(data){
//        console.log($(data).find("#row"));
//        localStorage.setItem("item1",$("#shop > a").attr("data-item"));
    });
}
function purchase(){
    $("#buy_button").load(smf_scripturl+"?action=profile;area=forumprofile #main_admsection", function() {
    $("#creator").appendTo("#main_content_section").wrap("<div id='center_purchase' style='margin: 0 auto;width: 67px;' />");
    $("div.righttext").prependTo("#creator");

    $("input[value='Change profile']").attr("value","Purchase");
    $("input[value='Purchase']").click(function(){localStorage.setItem("purchased","true")});

    $("#buy_formtest").prepend("<b>Item:</b> "+localStorage.getItem("item")+"<br><b>Description:</b> "+localStorage.getItem("description")+"<br><b>Price:</b> "+localStorage.getItem("price"));
    $("#creator > div.cat_bar,p.windowbg.description,div.windowbg2:not(input[value='Purchase'])").hide();

    $("input[name='customfield[cust_items]']").val( $("input[name='customfield[cust_items]']").val() + "{" + localStorage.getItem("item") + "}" );
    $("input[name='customfield[cust_cyanco]']").val( $("input[name='customfield[cust_cyanco]']").val() - localStorage.getItem("price"));
    $("input[name='karma_good']").val( $("input[name='karma_good']").val() - localStorage.getItem("amount"));
    $(smf_scripturl+"?action=profile;area=account #main_admsection", function() {
        $("input[name='customfield[cust_purcha]']").val( $("input[name='customfield[cust_purcha]']").val() + localStorage.getItem("code"));
    });
    });     
}
function main_shop(amount, item, description, price, code) {
    $("#row").append("<tr><td align='middle' id='"+item+"'>" + item + "</td><td align='middle' id='"+description+"'>" + description + "</td><td align='middle' id='"+price+"'>" + price + "</td></td><td align='middle'><a href='"+smf_scripturl+"?action=shop;page=buy' data-item='"+item+"' data-description='"+description+"' data-price='"+price+"' data-amount='"+amount+"' data-code='"+code+"'>Purchase</a></tr>");
    $("td > a").click(function(){
        localStorage.setItem("item",$(this).attr("data-item"));
        localStorage.setItem("description",$(this).attr("data-description"));
        localStorage.setItem("price",$(this).attr("data-price"));
        localStorage.setItem("amount",$(this).attr("data-amount"));
        localStorage.setItem("code",$(this).attr("data-code"));
    });
}
main_shop("-1", "1 Thank", "Increase your reputation by 1", "250", "(:#001:)");
main_shop("-10", "10 Thanks", "Increase your reputation by 10", "2000", "(:#002:)");
main_shop("-100", "100 Thanks", "Increase your reputation by 100", "17500", "(:#003:)");
main_shop("0", "Background Image", "Gives your profile a custom image", "5000", "(:#004:)");
</script>



<script>/*Created by Xboi209 - 11.13.12*/$("input:not(:password)").attr("x-webkit-speech","x-webkit-speech");$("textarea[name='message']").each(function(){var $this=$(this);$(this).after("<form action='javascript:void(0);'><input type='text' class='copy_speech' size='100' x-webkit-speech='x-webkit-speech'></form><a href='javascript:;' class='append_speech'>Copy text to textarea</a>");$("a.append_speech").click(function(){$this.append($(this).closest("div").children("form").children("input.copy_speech").val())})});</script>



<script>if(/action=admin/i.test(location.href)||/action=admin;area=index;*/i.test(location.href)){$("#smfAnnouncements").html("");$.ajax({url:"http://xboi209.comule.com/server/caf_announcements.php",success:function(data){$("#smfAnnouncements").wrap("<div id='proxy_content' />").replaceWith($(data).find("td.subject.windowbg2 > div > span:lt(8)"));$("#proxy_content > span > a ").append("<br>")}})}</script>




<script>function xboi209_refreshwhosonline(seconds){if(location.href==smf_scripturl+"?action=who"){setInterval(function(){$("#whos_online").load(smf_scripturl+"?action=who #whos_online")},seconds)}}xboi209_refreshwhosonline("5");</script>



<script type="text/javascript">
function GroupImage(Group, Image){

   var PostGroup = document.getElementsByTagName("li");
   for(x=0;x<PostGroup.length;x++){
      if(PostGroup[x].className === "membergroup" && PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
         $(PostGroup[x]).parent().prev().find("a:last").prepend("<img src='" + Image + "' />");
      };
      if(PostGroup[x].className !== "membergroup" && PostGroup[x].className === "postgroup" && PostGroup[x].innerHTML.toLowerCase() === Group.toLowerCase()){
         $(PostGroup[x]).parent().prev().find("a:last").prepend("<img src='" + Image + "' />");
      };
   };
};
//GroupImage("Owner", "http://oi57.tinypic.com/2wmj5ev.jpg");
//GroupImage("Co-Owner", "http://png-5.findicons.com/files/icons/1243/hello_kitty/16/bow_pink.png");
//GroupImage("Helper", "http://oi58.tinypic.com/18hc3o.jpg");
</script>



<script type="text/javascript">
$('<img class="inline" src="/Images/Icons/info.png" />')
              .prependTo('a.color[href$='http://cyanproductions.createaforum.com/index.php?action=profile;u=1']');
</script>



<script type="text/javascript">
$('<img />').attr({
  src:'http://fc08.deviantart.net/fs25/f/2008/101/c/5/war_skull_16x16__by_Xicidal.gif',
  width:'16',
  height:'16'
}).prependTo($('<a />').attr({
  href:'http=//cyanproductions.createaforum.com/index.php?action=profile;u=1'
})
</script>



<script type='text/javascript'>
/* Image Changes on Page
SMF For Free 2009 - WWX */
function swap_img(){
var forumurl = "cyanproductions";
var img_b = new Array();
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/smiley.gif" , "http://smfsupport.com/support/Smileys/smfnew/smiley.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/wink.gif" , "http://smfsupport.com/support/Smileys/smfnew/wink.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/cheesy.gif" , "http://smfsupport.com/support/Smileys/smfnew/cheesy.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/grin.gif" , "http://smfsupport.com/support/Smileys/smfnew/grin.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/angry.gif" , "http://smfsupport.com/support/Smileys/smfnew/angry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/sad.gif" , "http://smfsupport.com/support/Smileys/smfnew/sad.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/shocked.gif" , "http://smfsupport.com/support/Smileys/smfnew/shocked.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/cool.gif" , "http://smfsupport.com/support/Smileys/smfnew/cool.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/huh.gif" , "http://smfsupport.com/support/Smileys/smfnew/huh.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/rolleyes.gif" , "http://smfsupport.com/support/Smileys/smfnew/rolleyes.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/tongue.gif" , "http://smfsupport.com/support/Smileys/smfnew/tongue.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/lipsrsealed.gif" , "http://smfsupport.com/support/Smileys/smfnew/lipsrsealed.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/undecided.gif" , "http://smfsupport.com/support/Smileys/smfnew/undecided.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/kiss.gif" , "http://smfsupport.com/support/Smileys/smfnew/kiss.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/cry.gif" , "http://smfsupport.com/support/Smileys/smfnew/cry.gif" ]
img_b[img_b.length++] = [ "http://" + forumurl + ".createaforum.com/Smileys/default/embarrassed.gif" , "http://support.createaforum.com/Smileys/smfnew/embarrassed.gif" ]


var a_i = document.getElementsByTagName('IMG');
for(i=a_i.length-1;i>=0;i--) for(j=0;j<img_b.length;j++) if(a_i[i].src == img_b[j][0]) a_i[i].src = img_b[j][1];
}
swap_img();
</script>



<script type="text/javascript">
function NAB(real, owned){

for(i in document.links){
if(document.links[i].innerHTML === real){
document.links[i].innerHTML = owned;
};};};
NAB("CyanGaming", "<img src='http://oi57.tinypic.com/2wmj5ev.jpg' /><font color='#00aaff'><b>CyαnGαming</b></font>");
NAB("Herosimah", "<img src='http://oi58.tinypic.com/18hc3o.jpg' /><font color='#6c2dc7'><b>Herosimah</b></font>");
NAB("Sorry_Error", "<img src='http://oi58.tinypic.com/18hc3o.jpg' /><font color='#6c2dc7'><b>Sorry_Error</b></font>");
NAB("Milk__101", "<img src='http://png-5.findicons.com/files/icons/1243/hello_kitty/16/bow_pink.png' /><font color='#ff33cc'><b>Milk__101</b></font>");
NAB("Notepad", "<img src='http://cdn.iconsmash.com/Content/icons/crown/iconpreviews/16/king.png' /><font color='#04B486'><b>NotePad</b></font>");
NAB("OLD NAME", "NEW NAME");
</script>



<script type="text/javascript">
var Name = "NAME";
var Sign = "SIGN";
var Amount = 1;

var Aug_02_2010 = document.getElementsByTagName("li");
//Created by Agent Moose
for(x=0;x<Aug_02_2010.length;x++){
if(Aug_02_2010[x].className === "karma" && Aug_02_2010[x].innerHTML.match(/posts: (.*)/i)){
var li = document.createElement("li");
li.className = "money";
li.innerHTML = RegExp.$1;
Aug_02_2010[x].parentNode.insertBefore(li, Aug_02_2010[x].nextSibling);
};
};
</script>



<script>
$('li.greeting').filter(function () {
    return $(this).text() === 'Hello CyanGaming';
}).after($('<span class="test">').text("This is a test message"));
</script>



<script>
if (location.href == smf_scripturl + "?action=Control_Panel") {
    if ($("li.greeting").text() == "Hello CyanGaming") {
        $("#main_content_section").html("<center><a href='"+smf_scripturl+"?action=Control_Panel'>Go to the Control Panel</a> <p></p> </center>")

    var str = $( "div.news" ).text(); $( "div#main_content_section p" ).after( str );
    }
}
</script>



<script>
if(window.location.href == "http://cyanproductions.createaforum.com/index.php?action=profile;u=1"){
    $('body').css("background-image", "url(http://thumbs.gograph.com/gg58405835.jpg)");
}
</script>



<script>
if ($("li.greeting").text() == "Hello CyanGaming") {
    if(window.location.href == "http://cyanproductions.createaforum.com/index.php?action=profile"){
        $('body').css("background-image", "url(http://thumbs.gograph.com/gg58405835.jpg)");
    }
}
</script>


<script>
var imgurl = $('a.vglnk');
if(window.location.href == "http://cyanproductions.createaforum.com/index.php?action=profile;u=0"){
    $('body').css('background-image', 'url("' + imgurl + '")');

}
</script>


<script>
if ($("li.greeting").text() != "Hello CyanGaming") {
    var tab="cus3"; $("li#button_"+tab).remove()
}

var tab="search"; $("li#button_"+tab).remove()
$("div#footer_section div.frame").remove()
$("div[align=center] span.smalltext").remove()

</script>



<script>
if (location.href == smf_scripturl + "?action=mlist") {
    if ($("li.greeting").text() == "Hello enterusernamehere") {
        $("div#main_content_section").remove();
        $( "div#footer_section div.frame" ).before( "<br><center><h1>This is Off Limits to you</h1></center><br>" );
    }
}
</script>



<script>

$( "p.current_news" ).after($('<span class="quotes">New feature on the forums! But nobody can see it.</span>'));
$( "p.current_news" ).after($('<span class="quotes">How do you make this? because i love it.</span>'));
$( "p.current_news" ).after($('<span class="quotes">Where herosimahs mistakes and dumb comments get in the news.</span>'));
$( "p.current_news" ).after($('<span class="quotes">Darkfires a big inspiration: Im applying for moderator, Thanks to Darkfire for inspiring me.</span>'));
$( "p.current_news" ).after($('<span class="quotes">Are you suggesting they might take our noses as souvenirs?</span>'));
$( "p.current_news" ).after($('<span class="quotes">The trail Mod rank has been added!</span>'));
$( "p.current_news" ).after($('<span class="quotes">Lock request!</span>'));
$( "p.current_news" ).after($('<span class="quotes">Where jokes transform to good ideas.</span>'));
$( "p.current_news" ).after($('<span class="quotes">Everythings a fail atm xD</span>'));
$( "p.current_news" ).after($('<span class="quotes">How do users even read? This hurts Splodersciences head.</span>'));
$( "p.current_news" ).after($('<span class="quotes">Where herosimah is so handsome and some mistakes.(When Sploderscience trys to be funny)</span>'));

$("strong.hideme").remove();
$("div.normaltext").remove();


(function() {

    var quotes = $(".quotes");
    var quoteIndex = -1;
   
    function showNextQuote() {
        ++quoteIndex;
        quotes.eq(quoteIndex % quotes.length)
            .fadeIn(2000)
            .delay(2000)
            .fadeOut(2000, showNextQuote);
    }
   
    showNextQuote();
   
})();
</script>



<script>
if ($("li.greeting").text() != "Hello CyanGaming") {
  $('dt:contains("Reputation:")').hide();
  $('dd:contains("[Like]")').hide();
  $('dl:contains("CyanCoins")').hide();
}
</script>


<script>
$("[class*='show_text']").hide();
var show_count = 0;

$( ".show_" ).click(function() {
  show_count = $(this).attr("id");

  if ($("#" + show_count + ".show_text").is(":hidden")) {
    $("#" + show_count + ".show_text").show();
    $("#" + show_count + ".show_user").hide();
    $(this).text("Hide")
  } else {
    $("#" + show_count + ".show_text").hide();
    $("#" + show_count + ".show_user").show();
    $(this).text("Show")
  }
});
</script>



<script>
$("[id*='msg_'] a:contains('[Accepted]')").before('<img id="AT" src="https://cdn2.iconfinder.com/data/icons/aspneticons_v1.0_Nov2006/ok_16x16.gif"/>');

$("[id*='msg_'] a:contains('[Accepted]')").html(function(i, htm) {
    return htm.split("]")[1];
});

$("[id*='msg_'] a:contains('[Question]')").before('<img id="QM" src="http://img4.wikia.nocookie.net/__cb20080212060109/wowwiki/images/c/c9/Quest_Complete_16x16.png"/>');

$("[id*='msg_'] a:contains('[Question]')").html(function(i, htm) {
    return htm.split("]")[1];
});

$("[id*='msg_'] a:contains('[Denied]')").before('<img id="DT" src="https://cdn2.iconfinder.com/data/icons/aspneticons_v1.0_Nov2006/delete_16x16.gif"/>');

$("[id*='msg_'] a:contains('[Denied]')").html(function(i, htm) {
    return htm.split("]")[1];
});

$("[id*='msg_'] a:contains('[Star]')").before('<img id="ST" src="http://img1.wikia.nocookie.net/__cb20091124122226/mafiawars/images/8/82/Icon_star_16x16_gold_01.gif"/>');

$("[id*='msg_'] a:contains('[Star]')").html(function(i, htm) {
    return htm.split("]")[1];
});
</script>



<script type="text/javascript">

$(document).ready(function() {
  $('#QM,#QM').click(function() {
    $('#QM,#QM').each(function() {
      $("tr td div span").parent("div").parent("td").parent("tr").hide();
      $("tr td div strong span").parent("strong").parent("div").parent("td").parent("tr").hide();
      $('#QM').parent("span").parent("div").parent("td").parent("tr").show();
      $('#QM').parent("span").parent("strong").parent("div").parent("td").parent("tr").show();
    });
  });   
});   



$(document).ready(function() {
  $('#AT,#AT').click(function() {
    $('#AT,#AT').each(function() {
      $("tr td div span").parent("div").parent("td").parent("tr").hide();
      $("tr td div strong span").parent("strong").parent("div").parent("td").parent("tr").hide();
      $('tr td div span #AT').parent("span").parent("div").parent("td").parent("tr").show();
      $('tr td div span #AT').parent("span").parent("strong").parent("div").parent("td").parent("tr").show();
    });
  });   
}); 



$(document).ready(function() {
  $('#DT,#DT').click(function() {
    $('#DT,#DT').each(function() {
      $("tr td div span").parent("div").parent("td").parent("tr").hide();
      $("tr td div strong span").parent("strong").parent("div").parent("td").parent("tr").hide();
      $('tr td div span #DT').parent("span").parent("div").parent("td").parent("tr").show();
      $('tr td div span #DT').parent("span").parent("strong").parent("div").parent("td").parent("tr").show();
    });
  });   
}); 



$(document).ready(function() {
  $('#ST,#ST').click(function() {
    $('#ST,#ST').each(function() {
      $("tr td div span").parent("div").parent("td").parent("tr").hide();
      $("tr td div strong span").parent("strong").parent("div").parent("td").parent("tr").hide();
      $('tr td div span #ST').parent("span").parent("div").parent("td").parent("tr").show();
      $('tr td div span #ST').parent("span").parent("strong").parent("div").parent("td").parent("tr").show();
    });
  });   
});

</script>



<script>
$("li#button_pm a.firstlevel span.firstlevel strong").css("color", "orange");

if (location.href *= smf_scripturl + "?action=profile;area=groupmembership;u=") {
    $("body").hide();
}
</script>
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline CyanProductions

  • Newbie
  • *
  • Posts: 39
  • Karma: -1
    • View Profile

Badges: (View All)
Level 3 10 Posts Karma Good
Re: Forum is broken, Possibly something to do with code.
« Reply #2 on: February 05, 2015, 09:30:53 pm »
kk, thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
366 Views
Last post May 17, 2013, 12:32:00 am
by CreateAForum
2 Replies
911 Views
Last post June 16, 2013, 01:47:49 am
by ๖ۣۜKernul
0 Replies
681 Views
Last post October 27, 2013, 02:36:54 am
by Simplexus
7 Replies
466 Views
Last post September 27, 2014, 10:15:26 pm
by Chimera
1 Replies
554 Views
Last post December 13, 2015, 11:03:05 pm
by CreateAForum