Advertisement
tmolinson

customization tutorial!

Jul 4th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. hii ok so im just going to give you the code for my whole date line thingy since its easier and the directions would be if you were using the theme #21, so if you want me to help you on a diff theme message me with that theme and ill see what i can do! :)
  2.  
  3. step 1) put this code above <head>
  4.  
  5. <script>
  6. window.onload = function () {
  7. document.body.insertAdjacentHTML( 'beforeEnd', '<iframe id="my-like-frame" style="display:none;"></iframe>' );
  8. document.addEventListener( 'click', function ( event ) {
  9. var myLike = event.target;
  10. if( myLike.className.indexOf( 'my-like' ) > -1 ) {
  11. var frame = document.getElementById( 'my-like-frame' ),
  12. liked = ( myLike.className == 'my-liked' ),
  13. command = liked ? 'unlike' : 'like',
  14. reblog = myLike.getAttribute( 'data-reblog' ),
  15. id = myLike.getAttribute( 'data-id' ),
  16. oauth = reblog.slice( -8 );
  17. frame.src = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + id;
  18. liked ? myLike.className = 'my-like' : myLike.className = 'my-liked';
  19. };
  20. }, false );
  21. };
  22. </script>
  23.  
  24. <!------------------------------------------------------------------------------------------->
  25.  
  26. step 2) take the code below and put it under <style type="text/css">
  27.  
  28.  
  29. .notes {padding-top:10px;font-family:calibri;font-size:10px;width:480px;font-weight:bold;}
  30. #permalink {margin-top:-7px;text-transform:uppercase;font-size:8px;text-align:left;letter-spacing:1px;font-family:calibri;padding-top:10px;}
  31. .tags {font-size:9px;font-family:cambria;margin-top:0px;color:{color:links}; margin-left:4px;}
  32. .tags a {text-decoration:underline;}
  33. .tags a:hover {color:{color:linkhover};}
  34. .my-like {
  35. cursor: url('http://cur.cursors-4u.net/others/oth-6/oth589.cur'), auto;
  36. display:inline-block;
  37. vertical-align:top;
  38. }
  39. .my-liked, .my-like:hover {
  40. color:{color:linkhover};
  41. text-shadow: 0 0 5px {color:linkhover};
  42. cursor: url('http://cur.cursors-4u.net/others/oth-6/oth589.cur'), auto;
  43. -moz-transition-duration:0.5s;
  44. -webkit-transition-duration:0.5s;
  45. -o-transition-duration:0.5s;
  46. display:inline-block;
  47. vertical-align:top;
  48. }
  49.  
  50. .my-like {
  51. cursor: url('http://cur.cursors-4u.net/others/oth-6/oth589.cur'), auto;
  52. display:inline-block;
  53. vertical-align:top;
  54. }
  55. .my-liked, .my-like:hover {
  56. color:{color:linkhover};
  57. text-shadow: 0 0 5px {color:linkhover};
  58. cursor: url('http://cur.cursors-4u.net/others/oth-6/oth589.cur'), auto;
  59. -moz-transition-duration:0.5s;
  60. -webkit-transition-duration:0.5s;
  61. -o-transition-duration:0.5s;
  62. display:inline-block;
  63. vertical-align:top;
  64. }
  65.  
  66.  
  67.  
  68. <!------------------------------------------------------------------------------------------->
  69.  
  70.  
  71. step 3) press ctrl or cmnd and f and find:
  72.  
  73. {block:Date}<div id="postinfo"><a href="{Permalink}">{Month} {DayOfMonth}{DayOfMonthSuffix}</a> {block:NoteCount} <a href="{Permalink}"> ∙ {NoteCount}</a>{/block:NoteCount}{block:RebloggedFrom}<a href="{ReblogParentURL}"> ∙ {ReblogParentName}</a>{/block:RebloggedFrom}
  74. {block:ContentSource}<a href="{SourceURL}">/ {SourceLink}</a>{/block:ContentSource}<br></div>{/block:Date}
  75. {block:HasTags}
  76. <div class="tags">
  77. {block:Tags}<a href="{TagURL}">{Tag}&nbsp;</a>{/block:Tags}</div>
  78. {/block:HasTags}
  79. <div class="note">
  80. {block:PostNotes}{PostNotes}{/block:PostNotes}
  81. </div>
  82. </div>
  83. {/block:Posts}
  84.  
  85. <!------------------------------------------------------------------------------------------->
  86.  
  87. step 4) delete that and you'll put this in its place:
  88.  
  89. <center><div id="permalink">
  90. {block:Date}<span style="background-color:{color:background};padding:3px;"><a href="{Permalink}" style="font-family:cambria;letter-spacing:1px;font-weight:normal;background-color:{color:linkhover};padding:2px;padding-left:3px;color:{color:background};" title="@ {12hour}:{minutes}:{seconds} {capitalampm} ({timeago})">{DayOfMonthWithZero} {Month}</a>{/block:Date}{block:NoteCount}&nbsp;&nbsp;<span style="color:{color:linkhover};opacity:.8;font-family:arial;">♥ </span><a href="{Permalink}">{NoteCountWithLabel}</a> <span style="color:{color:linkhover};opacity:.8;font-family:arial;">♥</span> <a href="{ReblogURL}" target="_blank" class="details">reblog</a> <span style="color:{color:linkhover};opacity:.8;font-family:arial;">♥ </span><div class="my-like" data-reblog="{ReblogURL}" data-id="{PostID}" >like</div>{/block:NoteCount}{block:RebloggedFrom}<div id="imgz"><span style="float:right;"><a href="{ReblogParentURL}" title="via"><img src="{ReblogParentPortraitURL-16}"></a>&nbsp;<a href="{ReblogRootURL}" title="source"><img src="{ReblogRootPortraitURL-16}"></a></span></div>{/block:RebloggedFrom}
  91. <br> </span>
  92. </div></center>
  93. <div class="tags">{block:HasTags}{block:Tags}+<a href="{TagURL}">{Tag}</a>;&nbsp;&nbsp;{/block:Tags}{/block:HasTags}</div>
  94. <div class="note">
  95. </div>
  96. </div>
  97. {block:PostNotes}<div class="notes">{PostNotes}</div>{/block:PostNotes}
  98. {/block:Posts}
  99.  
  100. <!------------------------------------------------------------------------------------------->
  101.  
  102. and youre done! let me know if you need more help :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement