gracerobo — MMORPG.com Forums Sign In · Register MMORPG.com Forums Dark or Light Theme toggle Activity Home Games Reviews Articles Videos Live Streams Play Now Home › gracerobo › Discussions Activity Discussions Comments1 Howdy, Stranger! It looks like you're new here. If you want to get involved, click one of these buttons! Sign In with MMORPG Sign In Register gracerobo About Username gracerobo Joined August 3 Visits 0 Last Active August 3 Roles Newbie Rank Common Posts 1 Badges 0 Reactions 0Agree0Promote0Insightful0Awesome0LOL0WTF Activity Discussions Comments1 Discussions This user has not made any discussions yet. `; for (index = 0; index < response.promoted.DATA.length; ++index) { if(outputcount > 0){ outputhtml = outputhtml + ` ${response.promoted.DATA[index][4]} ` outputcount = outputcount -1; } }; for (index = 0; index < response.playnow.DATA.length; ++index) { if(outputcount > 0){ outputhtml = outputhtml + ` ${response.playnow.DATA[index][1]} ` outputcount = outputcount -1; } }; outputhtml = outputhtml + ` more offers `; //console.log(outputhtml); $(location).prepend(outputhtml); } }, error: function (jqXHR, textStatus, errorThrown) { // Do nothing } }); } function injectTower(location){ outputhtml = " "; $(location).append(outputhtml); } function injectSquare(location){ outputhtml = " "; $(location).append(outputhtml); } function injectStylesheetIntoEditor() { // Add stuff to inline post boxes, if custom was there, find it up! var isFF = !(window.mozInnerScreenX == null); var isIE11 = !!navigator.userAgent.match(/Trident.*rv\:11\./); if($('.wysihtml5-sandbox').length){ $('.wysihtml5-sandbox').each(function(){ // check to see if it has custom ssfound = false; $parentiframe = $(this); if($(this).hasClass("customsheetadded")){ // ssfound = true; if($parentiframe.contents().find('#customcssembed').length){ ssfound = true; } } //console.log(ssfound); //if(!isIE11){ $('link[rel="stylesheet"]').each(function(){ if($(this).attr("href").indexOf("customcss") >= 0 && !ssfound){ if(isFF || isIE11){ $parentiframe.contents().find('head').append(''); } else { $parentiframe.contents().find("head").append($("", { rel: "stylesheet", href: $(this).attr("href"), type: "text/css" })); } $parentiframe.addClass("customsheetadded"); } }); //} }); } } function injectSkin() { var doit = false; if(doit){ $.ajax({ url: "https://www.mmorpg.com/ajax/fetchskin.cfm?section=forums", dataType: 'json', success: function (response) { if(response.remnant && !blocked){ /* var themecontent = " "+ ""); var themecontent = " "+ " ").insertBefore('#Content'); //injectSquare('.pushsquare'); //injectCPALinks('.popularGames'); //injectTower('.pushtower'); // HOMEPAGE $('.vanillaHeader h1').html("Discussion Forums"); /*var gameblock = ` Trending FeaturesLatest game Logitech G502 HERO High-Performance Gaming Mouse Review Logitech G502 HERO High-Performance Gaming Mouse Review Logitech G502 HERO High-Performance Gaming Mouse Review Logitech G502 HERO High-Performance Gaming Mouse Review `; var gameblock = ' '; if($('.DismissMessage.InfoMessage').length){ $(gameblock).insertBefore($('.DismissMessage.InfoMessage')); } else { $('#Panel').append(gameblock); } // square ad $('.popularGames').append(" "); injectSquare('.pushsquare'); // cpa links $('.popularGames').append(" "); injectCPALinks('.cpaGames'); // tower ad $('.popularGames').append(" "); injectTower('.pushtower');*/ //var recentpostsblock = " Recent Posts "; //$(recentpostsblock).insertBefore($('.popularGames')); /*('.gamebanner.swtor').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_swtor_banner_r0.jpg?cb=3")'}); $('.gamebanner.gw2').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_gw2_banner_r0.jpg?cb=1")'}); $('.gamebanner.ffxiv').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_ffxiv_banner_r0.jpg?cb=1")'}); $('.gamebanner.teso').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_teso_banner_r0.jpg?cb=1")'}); $('.gamebanner.sf').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_sf_banner_r0.jpg?cb=1")'}); $('.gamebanner.sc').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_sc_banner_r0.jpg?cb=1")'}); $('.gamebanner.aa').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_aa_banner_r0.jpg?cb=1")'}); $('.gamebanner.eqn').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_eqn_banner_r0.jpg?cb=1")'}); $('.gamebanner.wow').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_wow_banner_r0.jpg?cb=1")'}); $('.gamebanner.h1z1').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_h1z1_banner_r0.jpg?cb=1")'}); $('.gamebanner.bd').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_bd_banner_r0.jpg?cb=1")'}); $('.gamebanner.ws').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_ws_banner_r0.jpg?cb=1")'}); $('.gamebanner.eve').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_eve_banner_r0.jpg?cb=1")'}); $('.gamebanner.bladesoul').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_bladesoul_banner_r0.jpg?cb=1")'}); $('.gamebanner.cf').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_cf_banner_r0.jpg?cb=1")'}); $('.gamebanner.pan').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_pan_banner_r0.jpg?cb=1")'}); $('.gamebanner.cu').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_cu_banner_r0.jpg?cb=1")'}); $('.gamebanner.repop').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_repop_banner_r0.jpg?cb=1")'}); $('.gamebanner.sota').css({'background-image':'url("//images.mmorpg.com/images/vanilla/radiance/game_sota_banner_r0.jpg?cb=2")'});*/ $('.HomepageTitle,.PageDescription,.CategoryFilter,.NewDiscussion,.Breadcrumbs').hide(); $('.Participated,.MyDiscussions,.QnA-UnansweredQuestions,.Best','.BoxDiscussionFilter').hide(); $('.PanelColumn').css({"padding-top":"0px"}); $('.CategoryGroup', '#Content').each(function(){ $(this).find('h2.H').addClass('collapsebox'); }); $('#Content').addClass('categoryHomepageContent'); // Remove reported-posts box, add link to top. if($('#CategoryGroup-reported-posts').length){ $('.vhinside .FilterMenu').append(' Reported Posts '); $('#CategoryGroup-reported-posts').remove(); } // Add collapseable sections /* $("body").off("click", ".collapsebox").on("click", ".collapsebox", function (e) { e.preventDefault(); var $parentBox = $(this).closest('.CategoryGroup'); if($parentBox.hasClass('closed')){ $parentBox.removeClass('closed'); } else { $parentBox.addClass('closed'); } }); */ injectRecentPosts(); // cpa links $('#Content').addClass('hasPushSidebar'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if(isCategoryList){ // SUB-CATEGORIES PAGE $('.vanillaHeader h1').html("Discussions / "+$('h1.HomepageTitle').html()); $('.vanillaHeader .info').html($('.PageDescription').html()); // If game forum then populate game information in info block parseGameCategory(); $('.Participated,.MyDiscussions,.QnA-UnansweredQuestions,.Best','.BoxDiscussionFilter').hide(); $('.NewDiscussion.Big.Primary','#Panel').hide(); $('.HomepageTitle,.PageDescription','#Content').addClass('Hidden'); // Move New Discussion Button //var $newButton = $('.NewDiscussion.Big.Primary','#Panel').hide(); //$newButton.detach().addClass('movedNewDiscussion'); //$('.vhinside').prepend($newButton); // Remove highlight icon from navigation buttons $('.BoxDiscussionFilter .FilterMenu li','.vanillaHeader').removeClass('Active'); // Move top pager stuff around var $pagerControl = $('.PageControls.Top'); $pagerControl.detach().addClass('movedtoppager'); $('.vhinside','.vanillaHeader').append($pagerControl); // Check to see if there are any posts/whatever, if just one sub, move to that. //var countSubs = $('li','.ChildCategoryList').length; //if(countSubs == 1){ // window.location.assign($('.ChildCategoryList li h3 a').attr("href")); //} // cpa links $('#Content').addClass('hasPushSidebar'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if($('#vanilla_categories_index').length && $('h2.ChildCategories-Title').length){ // SUB-CATEGORIES PAGE $('.vanillaHeader h1').html("Discussions / "+$('h1.HomepageTitle').html()); $('.vanillaHeader .info').html($('.PageDescription').html()); // If game forum then populate game information in info block parseGameCategory(); // po.st sharing $('.PageControls.Top').children('.BoxButtons.BoxNewDiscussion').children('.ButtonGroup.Multi.Primary.Action.NewDiscussion').css('padding-right','5px'); $('.PageControls.Top').children('.BoxButtons.BoxNewDiscussion').append(' '); $('.Participated,.MyDiscussions,.QnA-UnansweredQuestions,.Best','.BoxDiscussionFilter').hide(); $('.NewDiscussion.Big.Primary','#Panel').hide(); $('.HomepageTitle,.PageDescription','#Content').addClass('Hidden'); // Move New Discussion Button //var $newButton = $('.NewDiscussion.Big.Primary','#Panel').hide(); //$newButton.detach().addClass('movedNewDiscussion'); //$('.vhinside').prepend($newButton); // Remove highlight icon from navigation buttons $('.BoxDiscussionFilter .FilterMenu li','.vanillaHeader').removeClass('Active'); // Move top pager stuff around var $pagerControl = $('.PageControls.Top'); $pagerControl.detach().addClass('movedtoppager'); $('.vhinside','.vanillaHeader').append($pagerControl); // Check to see if there are any posts/whatever, if just one sub, move to that. //var countSubs = $('li','.ChildCategoryList').length; //if(countSubs == 1){ // window.location.assign($('.ChildCategoryList li h3 a').attr("href")); //} // cpa links $('#Content').addClass('hasPushSidebar'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if($('#vanilla_categories_index.Section-DiscussionList').length){ // THREAD LIST VIEW eg. /categories/the-pub-at-mmorpg-com // Move new disussion button down var $newDiscussion = $('.NewDiscussion.ButtonGroup.Primary.Multi.Big', '.BoxNewDiscussion'); $newDiscussion.detach().addClass('movedNewDiscussionButton movedisbutton'); // po.st sharing $('.PageControls.Top').children('.BoxButtons.BoxNewDiscussion').children('.ButtonGroup.Multi.Primary.Action.NewDiscussion').css('padding-right','5px'); $('.PageControls.Top').children('.BoxButtons.BoxNewDiscussion').append(' '); $('.P.PageDescription,.H.HomepageTitle').hide();//('frameitmmo'); $('.Box.BoxCategories').hide(); // Set header $('.vanillaHeader h1').html("Discussions / "+$('.H.HomepageTitle').html()); $('.vanillaHeader .info').html($('.PageDescription').html()); // If game forum then populate game information in info block parseGameCategory(); // Move top pager stuff around var $pagerControl = $('.PageControls.Top'); $pagerControl.detach().addClass('movedtoppager'); $('.vhinside','.vanillaHeader').append($pagerControl); // Remove highlight icon from navigation buttons $('.BoxDiscussionFilter .FilterMenu li','.vanillaHeader').removeClass('Active'); $('.AuthorLocation').remove(); // cpa links $('#Content').addClass('hasPushSidebar'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if($('#vanilla_categories_archives').length){ // ARCHIVES $('.P.PageDescription,h1.H','#Content').hide();//('frameitmmo'); // Set header $('.vanillaHeader h1').html("Discussions / "+$('h1.H','#Content').html()); $('.vanillaHeader .info').html($('.PageDescription','#Content').html()); // If game forum then populate game information in info block parseGameCategory(); // Move top pager stuff around var $pagerControl = $('.PageControls.Top'); $pagerControl.detach().addClass('movedtoppager'); $('.vhinside','.vanillaHeader').append($pagerControl); // Remove highlight icon from navigation buttons $('.BoxDiscussionFilter .FilterMenu li','.vanillaHeader').removeClass('Active'); // cpa links $('#Content').addClass('hasPushSidebar'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if($('.BoxProfileFilter').length || $('#dashboard_profile_edit').length){ // PROFILE PAGE $('.vanillaHeader h1').html("Profile / "+$('.User H1.H').html()).addClass('profileheader'); if($('.Rank', '.profileheader').length){ $('.Rank', '.profileheader').html("("+$('.Rank', '.profileheader').html()+")"); } var $temp = $('.User .About .About'); $('.vanillaHeader .info').html($temp.clone()); $temp.remove(); // Move edit up there console.log('Looking for Profile Button'); if($('.ButtonGroup').length){ console.log('Profile Button Found.'); var $editprofile = $('.ButtonGroup'); $editprofile.detach().addClass('movedEdit'); $('.profileheader','.vanillaHeader').append($editprofile); } if($('.NavButton.MemberButtons','.ProfileOptions').length){ var $sendmessage = $('.NavButton.MemberButtons','.ProfileOptions'); $sendmessage.detach().addClass('movedSend'); $('.profileheader','.vanillaHeader').append($sendmessage); } $('.vanillaHeader .vhinside').hide(); $('#Content').addClass('profileinside'); // Move stuff around to sidebar var $badges = $('#Badges','#Panel'); $badges.detach().addClass('movedBadges'); $('.ProfileOptions','#Content').prepend($badges); var $boxprofilefilter = $('.BoxFilter.BoxProfileFilter','#Panel'); $boxprofilefilter.detach().addClass('movedFilter'); $('.ProfileOptions','#Content').prepend($boxprofilefilter); if($('#SharedFingerprint').length){ var $sharedFingerprint = $('#SharedFingerprint'); $sharedFingerprint.detach().addClass('movedShared'); $('.ProfileOptions','#Content').prepend($sharedFingerprint); } // Edit profile only areas if($('#dashboard_profile_edit').length){ var $sidemenu = $('.SideMenu','#Panel'); $sidemenu.detach().addClass('movedFilter'); $('.ProfileOptions','#Content').prepend($sidemenu); $('.vanillaHeader h1').html("Profile / "+$('.UserBox .Username','#Panel').html()).addClass('profileheader'); $('#Content').addClass('profileedit'); $( " " ).insertAfter( ".profileedit" ); } // Add profile information to the sidebar. if($('.About','.vanillaHeader').length){ var $profileinfo = $('.About','.vanillaHeader').clone(); $('.ProfileOptions','#Content').prepend($(' ', {class: 'movedProInfo'})); $('.movedProInfo','#Content').prepend($profileinfo); $('.movedProInfo','#Content').prepend(' About '); $('.movedProInfo','#Content').append(' '); $('.Email,.Roles,.IP,.ProfileExtend','.vanillaHeader .About').hide(); } if($('.Points','.vanillaHeader').length){ /* var rankclass = 'rankOne'; var $profilephotocontainer = $('.PhotoWrap','#Panel'); if($profilephotocontainer.hasClass('rankTwo')){ rankclass = 'rankTwo'; } else if($profilephotocontainer.hasClass('rankThree')){ rankclass = 'rankThree'; } else if($profilephotocontainer.hasClass('rankFour')){ rankclass = 'rankFour'; } else if($profilephotocontainer.hasClass('rankFive')){ rankclass = 'rankFive'; } */ var rankclass = 'Rank-common'; var $profilephotocontainer = $('.Rank','.vanillaHeader'); if($profilephotocontainer.hasClass('Rank-uncommon')){ rankclass = 'Rank-uncommon'; } else if($profilephotocontainer.hasClass('Rank-rare')){ rankclass = 'Rank-rare'; } else if($profilephotocontainer.hasClass('Rank-epic')){ rankclass = 'Rank-epic'; } else if($profilephotocontainer.hasClass('Rank-legendary')){ rankclass = 'Rank-legendary'; } console.log(rankclass); $('.ProfileOptions','#Content').prepend($(' ', {class: 'movedpoints '+rankclass})); $('.movedpoints','.ProfileOptions').html(' Points '+$('dd.Points','.vanillaHeader').html()+''); } // Add photo last to sidebar var $profilephoto = $('.PhotoWrap','#Panel'); $profilephoto.detach().addClass('movedPhoto'); $('.ProfileOptions','#Content').prepend($profilephoto); // Move to primary bar var $reactions = $('.ReactionsWrap'); $reactions.detach().addClass('movedReactions'); $('.Profile','#Content').prepend($reactions); var $warnings = $('.Warnings'); $warnings.detach().addClass('movedWarnings'); $('.Profile','#Content').prepend($warnings); var $trolls = $('.Hero.Warning'); $trolls.detach().addClass('movedTrolls'); $('.Profile','#Content').prepend($trolls); // Remove about parts from header $('.Badges, .Name, .Visits, .Points','.vanillaHeader .About').remove(); // remove duplicate username header $('.User','.Profile').remove(); // Add clear to prevent long floats, especially sidebar $('#Content').append($(' ', {class: 'clear'})); // Edit profile only areas if($('#dashboard_profile_edit').length){ $('.UserBox,.vanillaHeader .info','#Panel').remove(); } } else if($('#ConversationForm').length){ // FORM FOR NEW CONVERSATION $('.vanillaHeader h1').html($('.ConversationForm .H').html()); $('.vanillaHeader .info').html(""); $('.vanillaHeader .vhinside').hide(); $('#Panel,#Content').addClass('newmessagemoved'); } else if($('#conversations_messages_inbox').length || $('#conversations_messages_all').length){ // INBOX PAGE $('.vanillaHeader h1').html("Inbox"); $('.vanillaHeader .info, #Content h1.H').hide(); // Move new disussion button down var $newDiscussion = $('.NewConversation.Primary', '#Panel'); $newDiscussion.detach().addClass('movedNewDiscussionButton movedisbutton'); $('.vhinside').prepend($newDiscussion); $('.PageControls','#Content').hide(); } else if($('#conversations_messages_index').length){ // PRIVATE MESSAGE VIEW $('.vanillaHeader h1').html("Private Message"); $('.vanillaHeader .info, #Content h1.H').hide(); // Move buttons into top area var $headerButtons = $('.Button.BigButton', '#Panel'); $headerButtons.detach().addClass('movedHeaderConversationButtons'); $('.vhinside').prepend($headerButtons); $('#Panel, #Content').addClass('movedLeaderboard movedconversationview'); $('#Content').prepend($(' ', {class: 'movedleaderboardboxes'})); // Move stuff around to sidebar var $peopleboxes = $('.Box.InThisConversation,.Box.AddPeople','#Panel'); $peopleboxes.detach().addClass('movedLeaderboardbox'); $('.movedleaderboardboxes', '#Content').prepend($peopleboxes); } else if($('.DataTable.DiscussionsTable, #vanilla_discussions_tagged').length){ // THREAD LIST VIEW // Move new disussion button down var $newDiscussion = $('.NewDiscussion.ButtonGroup.Primary.Multi.Big', '.BoxNewDiscussion'); $newDiscussion.detach().addClass('movedNewDiscussionButton movedisbutton'); var $pageControlls = $('.PageControls.Top').hide(); $('.Box.BoxCategories').hide(); //pageControlls.detach(); //$('.P.PageDescription').append($pageControlls); $('.P.PageDescription,.H.HomepageTitle,.Breadcrumbs').hide();//('frameitmmo'); $('.vanillaHeader h1').html("Discussions / "+$('.H.HomepageTitle').html()); $('.vanillaHeader .info').html($('.PageDescription').html()); // If game forum then populate game information in info block parseGameCategory(); // if tagged list, adjust the new discussion button if($('body').hasClass('tagged') && !$('body').hasClass('vanilla_categories_index')){ var pathname = window.location.pathname; var parts = pathname.split("/"); if(parts.length){ var tag = parts[parts.length-1]; if(tag != "tagged" && tag != "discussions" && tag != "undefined"){ $('a','.movedNewDiscussionButton').each(function(){ $(this).attr("href", $(this).attr('href')+"/other-games?tags="+tag); }); } } } // cpa links $('#Content').addClass('hasPushSidebar'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if($('.MessageList.Discussion','#Content').length){ // POSTS VIEW // Move new disussion button down var $newDiscussion = $('.NewDiscussion.ButtonGroup.Primary.Multi.Big', '.BoxNewDiscussion'); $newDiscussion.detach().addClass('movedNewDiscussionButton movedisbutton'); // po.st sharing $('.vhinside').append(' '); $('.Box.BoxCategories').hide(); $('.vanillaHeader h1').html("Discussion / "+$('.PageTitle H1').html()); $('.vanillaHeader .info').html($('.PageDescription').html()); // If game forum then populate game information in info block parseGameCategory(); $('#Content').addClass('mmoTightThreadPosts'); if($('.BeforeCommentHeading','.CommentsWrap').html() == ""){ $('.BeforeCommentHeading,.P.PagerWrap','.CommentsWrap').hide(); } // //var $newDiscussion = $('.NewDiscussion.Big', '.BoxNewDiscussion'); //$newDiscussion.hide(); var rankclass = 'Rank-common'; var $rankcontainer = $('.Rank','.MItem'); if($rankcontainer.hasClass('Rank-uncommon')){ rankclass = 'Rank-uncommon'; } else if($rankcontainer.hasClass('Rank-rare')){ rankclass = 'Rank-rare'; } else if($rankcontainer.hasClass('Rank-epic')){ rankclass = 'Rank-epic'; } else if($rankcontainer.hasClass('Rank-legendary')){ rankclass = 'Rank-legendary'; } console.log(rankclass); var $threadControlls = $('.Options','#Item_0'); $threadControlls.detach().addClass('topPostThreadControls'); $('.vanillaHeader').prepend($threadControlls); // cpa links $('#Content').addClass('hasPushSidebar').addClass('psposts'); $(" ").insertBefore('#Content'); injectSquare('.pushsquare'); injectCPALinks('.popularGames'); injectTower('.pushtower'); } else if($('.ActivityFormWrap').length){ // ACTIVITY/LEADERBOARDS $('.vanillaHeader h1').html("Leaderboard / Activity"); $('.vanillaHeader .vhinside').hide(); $('#Panel, #Content').addClass('movedLeaderboard'); $('#Content').prepend($(' ', {class: 'movedleaderboardboxes'})); // Move stuff around to sidebar var $leaderboarda = $('.Box.Leaderboard','#Panel'); $leaderboarda.detach().addClass('movedLeaderboardbox'); $('.movedleaderboardboxes', '#Content').prepend($leaderboarda); // Move stuff around to sidebar var $leaderboardb = $('.Box.Leaderboard','#Panel'); $leaderboardb.detach().addClass('movedLeaderboardbox'); $('.movedleaderboardboxes', '#Content').prepend($leaderboardb); } else if($('#DiscussionForm').length){ // NEW DISCUSSION PAGE $('#Panel').show(); $('.vanillaHeader h1').html("New Discussion"); // If game forum then populate game information in info block parseGameCategory(); var $pageControlls = $('.BoxButtons.BoxNewDiscussion'); $pageControlls.detach(); } else if($('.Badge-Details','#Content').length){ // BADGE DETAILS PAGE $('.vanillaHeader h1').html("Badge Details"); $('.vanillaHeader .info').hide();//.html($('.Badge-Details p').html()); $('.vanillaHeader .vhinside, #Badges').hide(); $('#Content').addClass('movedBadgesPage'); } else if($('#dashboard_search_index').length){ // SEARCH LIST PAGE $('.vanillaHeader h1').html("Discussions Search");// / "+$('.PageTitle H1').html()); //$('.vanillaHeader .info').html($('.PageDescription').html()); $('.info','.vanillaHeader').hide(); var $searchform = $('.SearchForm','#Content'); $searchform.detach().addClass('movedSearchForm'); $('.vhinside', '.vanillaHeader').append($searchform); } else { // ANY OTHER PAGE $('.vanillaHeader h1').html("Discussion / "+$('.PageTitle H1').html()); $('.vanillaHeader .info').html($('.PageDescription').html()); $('#Content').addClass('mmoTightThreadPosts'); var $newDiscussion = $('.NewDiscussion.Big', '.BoxNewDiscussion'); $newDiscussion.hide(); } } function checkForEditor(){ injectStylesheetIntoEditor(); } $(function () { forumsLandingUpdates(); $('#Body').bind("DOMSubtreeModified", injectStylesheetIntoEditor); }); function Rndm(max) { return 1 + Math.floor(Math.random() * max); } function mmoSessionKeepAlive(){ var strReq = 'https://www.mmorpg.com/pSession/index.cfm?random=' + Rndm(10000); var imgObj = document.getElementById('sesHolder'); if(imgObj){ imgObj.src = strReq; } }