Advertisement
fidle89

NGRP Forum Cleanup

Mar 1st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.23 KB | None | 0 0
  1.                             /=======================================\
  2.                             |           NGG Forum Revamp            |
  3.                             \=======================================/
  4. 1.) Deactivating the sticky function:
  5. -> Head to the index.php file and locate the following:
  6.  
  7.     $(document).ready(function() {
  8.         if ( $('#userBar').length ) {
  9.             uix.stickyItems['#userBar']= {normalHeight:parseInt('40px'), stickyHeight:parseInt('40px')}
  10.            
  11.             uix.stickyItems['#userBar'].options = {scrollSticky: uix.stickyGlobalScrollUp }
  12.         }
  13.     });
  14.  
  15. -> Change both instances of '40px' to '0', as such:
  16.    
  17.     $(document).ready(function() {
  18.         if ( $('#userBar').length ) {
  19.             uix.stickyItems['#userBar']= {normalHeight:parseInt('0'), stickyHeight:parseInt('0')}
  20.            
  21.             uix.stickyItems['#userBar'].options = {scrollSticky: uix.stickyGlobalScrollUp }
  22.         }
  23.     });
  24.  
  25. ======================================================================================
  26. 2.) Removing the blue sticky banner:
  27. -> Locate the code which begins with (this may be in 'global' or 'header':
  28. NOTE: Make sure you're editing through global and not static via index.html
  29.  
  30.     <ul class="navRight visitorTabs">
  31.  
  32. -> Snip it all and search for <div class="navTabs">, most likely in the same file. Once you've found this, you'll see <ul class="publicTabs navLeft">
  33. -> You want to get right to the end of that code block and dump your snipped code just after the closing </ul>, before the final <ul class="navRight visitorTabs">. You will now have one div classed 'publicTabs navLeft' and two classed 'navRight visitorTabs'. This isn't code breaking and is absolutely fine.
  34.  
  35. ======================================================================================
  36. 3.) Eradicating the blue banner:
  37. -> Head back up to the main page, usually "global", "header" or rarely "index". Find the code block that begins with:
  38.     <div id="userBar" class="stickyTop " style="display: block;">
  39. -> Delete that completely.
  40.  
  41. ======================================================================================
  42. 4.) Hotfixing the floating icon:
  43. -> Still on the same page, search for the following IMG code: <img src="styles/uix_dark/uix/ngrp.png">
  44. -> Replace it with the following: <img src="http://bluman.net/res/ngrp/nggblue.png" style="height: 20px;width: 42px;">
  45.  
  46.  
  47. More soon.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement