FrozenZuke

Fix Avatars B Podcast

Jun 1st, 2024 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. add_filter('get_avatar', 'site_get_avatar', 10, 5);
  2. function site_get_avatar($avatar, $id_or_email, $size, $default, $alt){
  3. //$avatar format includes the tag <img>
  4. $path = "https://borutopodcast.com/wp-content/uploads/2023/12/".rand(60,81).".png";
  5. $my_avatar = "<img src='".$path."' alt='".$alt."' height='".$size."' width='".$size."' />";
  6. return $my_avatar;
  7. }
  8.  
  9. -------------
  10.  
  11. COMMENT COOLDOWN:
  12.  
  13. function limit_comment_frequency($commentdata) {
  14. $user_ip = $_SERVER['REMOTE_ADDR'];
  15. $last_comment = get_transient('last_comment_' . md5($user_ip));
  16.  
  17. if ($last_comment && (time() - $last_comment) < 300) { // 300 seconds = 5 mins
  18. wp_redirect(add_query_arg('comment_cooldown', '1', wp_get_referer()));
  19. exit;
  20. }
  21.  
  22. set_transient('last_comment_' . md5($user_ip), time(), 300);
  23. return $commentdata;
  24. }
  25. add_filter('preprocess_comment', 'limit_comment_frequency');
  26.  
  27.  
  28.  
  29. -------------
  30.  
  31. Boruto Podcast CSS
  32.  
  33.  
  34. #menu-themenu .menu-item a{
  35. color:#ffffff !important;
  36.  
  37. }
  38.  
  39. /* Span Tag */
  40. .h-navigation-padding .h-button span{
  41. color: white !important;
  42. }
  43.  
  44. #menu-themenu .menu-item a:hover{
  45. color:#f16384 !important;
  46.  
  47. }
  48.  
  49.  
  50. /* #menu-themenu .menu-item a:hover{
  51. color:#9c4357 !important;
  52.  
  53. }
  54. THIS IS the darker color
  55. */
  56.  
  57. a {
  58. color: #f16384 !important;
  59. }
  60.  
  61. ::-moz-selection { /* Code for Firefox */
  62. color: black;
  63. background: #f16384;
  64. }
  65.  
  66. ::selection {
  67. color: black;
  68. background: #f16384;
  69. }
  70.  
  71. #submit{
  72. background-color:#f16384 !important;
  73. }
  74.  
  75. .hentry .h-blog-categories .h-global-transition-all{
  76. display: none;
  77. }
  78.  
  79. /* Paragraph */
  80. .hentry .h-text p{
  81. display: none;
  82. }
  83.  
  84. .h-page-title__outer span h1{
  85. font-weight:600;
  86.  
  87. }
  88.  
  89. a.wp-block-latest-comments__comment-author {
  90. font-weight: 700;
  91. }
  92.  
  93. .style-63.style-local-18-f5.position-relative.h-element {
  94. display: none;
  95. }
  96.  
  97.  
  98. p.footerfix {
  99. /* position: fixed; */
  100. text-align: center;
  101. }
  102.  
  103. /* Heading */
  104. .h-heading .h-heading__outer h3{
  105. font-weight:600;
  106.  
  107. }
  108.  
  109.  
  110.  
  111. ---------
  112.  
  113. One Piece Podcast CSS
  114.  
  115. .d-flex.h-flex-basis.h-column__inner.h-px-lg-1.h-px-md-1.h-px-2.v-inner-lg-1.v-inner-md-1.v-inner-2.style-62.style-local-18-f4.position-relative {
  116. display: none;
  117. }
  118.  
  119. #menu-themenu .menu-item a{
  120. color:#red !important;
  121.  
  122. }
  123.  
  124. /* Span Tag */
  125. .h-navigation-padding .h-button span{
  126. color: white !important;
  127. }
  128.  
  129. #menu-themenu .menu-item a:hover{
  130. color:#9B1D21 !important;
  131.  
  132. }
  133.  
  134.  
  135. /* #menu-themenu .menu-item a:hover{
  136. color:#9c4357 !important;
  137.  
  138. }
  139. THIS IS the darker color
  140. */
  141.  
  142. a {
  143. color: #FF0013 !important;
  144. }
  145.  
  146. .h-main-menu li a{
  147. font-weight:700 !important;
  148. text-decoration-color: red !important;
  149. }
  150. ::-moz-selection { /* Code for Firefox */
  151. color: black;
  152. background: #9F0502;
  153. }
  154.  
  155. ::selection {
  156. color: black;
  157. background: #9F0502;
  158. }
  159.  
  160. #submit{
  161. background-color:#f16384 !important;
  162. }
  163.  
  164. .hentry .h-blog-categories .h-global-transition-all{
  165. display: none;
  166. }
  167.  
  168. /* Paragraph */
  169. .hentry .h-text p{
  170. display: none;
  171. }
  172.  
  173. .h-page-title__outer span h1{
  174. font-weight:600;
  175.  
  176. }
  177.  
  178. a.wp-block-latest-comments__comment-author {
  179. font-weight: 700;
  180. }
  181.  
  182. /* Flex basis */
  183. #copyright .h-flex-basis{
  184. display:none;
  185. }
  186.  
  187. .h-heading .h-heading__outer h1 {
  188. color: #fc0202 !important;
  189. font-weight: 700;
  190. }
  191.  
  192. .h-navigation-padding .h-heading h3 {
  193. font-weight: 700;
  194. }
Advertisement
Add Comment
Please, Sign In to add comment