Advertisement
NecromancerCoding

House of Memories Memberlist

Jul 2nd, 2020
4,029
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 6.03 KB | None | 0 0
  1. <script>
  2. $(document).ready(function(){
  3. $('.mb4 img[src*="contact_pm"]').parent().attr('title', 'Mensaje Privado').html('<em class="fas fa-envelope"></em>');
  4. $('.mb4 img[src*="contact_www"]').parent().attr('title', 'Expediente de Personaje').html('<em class="fas fa-id-badge"></em>');
  5. $('.member .mbname span').each(function(){
  6. var memberColour = $(this).css('color');
  7. $(this).parents('.member').attr('style', '--membercolour:' + memberColour + ';');
  8. });
  9. $('.mbfield span:empty').parents('.mbfield').remove();
  10. });
  11. </script>
  12. <style>
  13. #memberlist {
  14.     --bckg1: #eaeaea;
  15.     --bckg2: #ececec;
  16.     --bckg3: #efefef;
  17.     --bckg4: #f2f2f2;
  18.     --bckg5: #f4f4f4;
  19.     --border1: 1px solid #ccc;
  20.     --accent1: #8a4040;
  21.     --shadow-w: 1px 1px white, -1px -1px white, -1px 1px white, 1px -1px white;
  22. }
  23.  
  24. #memberlist {
  25.     background: var(--bckg3);
  26.     border: var(--border1);
  27. }
  28.  
  29. #memberlist h4 {
  30.     background: var(--bckg1);
  31.     border-bottom: var(--border1);
  32.     padding: 20px;
  33.     display: flex;
  34.     justify-content: space-between;
  35.     align-items: center;
  36. }
  37.  
  38. #memberlist h {
  39.     font: 18px 'Montserrat';
  40.     color: var(--accent1);
  41. }
  42.  
  43. #memberlist .mbform {
  44.     background: var(--bckg2);
  45.     border-bottom: var(--border1);
  46.     padding: 5px;
  47.     text-align: center;
  48.     text-transform: uppercase;
  49.     color: #555;
  50.     font: 11px 'Roboto';
  51. }
  52.  
  53. #memberlist .mbform input, #memberlist .mbform select {
  54.     margin: 0 3px;
  55.     font: 11px 'Roboto';
  56.     color: #555;
  57. }
  58.  
  59. .mbbody {
  60.     display: flex;
  61.     justify-content: center;
  62.     align-items: flex-start;
  63.     padding: 20px 0 0 20px;
  64.     flex-wrap: wrap;
  65. }
  66.  
  67. .member {
  68.     margin: 0 20px 20px 0;
  69.     padding: 15px;
  70.     border: var(--border1);
  71.     background: var(--bckg1);
  72.     display:flex;
  73.     justify-content:center;
  74.     align-items:center;
  75.     flex-direction:column;
  76.     align-self:stretch;
  77. }
  78. .mb1, .mb2, .mb3 { flex-shrink:0;align-self:stretch; }
  79.  
  80. .mb1 {
  81.     background: var(--bckg5);
  82.     border: var(--border1);
  83.     border-bottom: 0;
  84.     display: flex;
  85.     justify-content: space-between;
  86.     padding: 15px;
  87.     align-items: center;
  88.     height: 40px;
  89. }
  90.  
  91. .mbname {
  92.     font: 15px 'Montserrat';
  93.     font-style: italic;
  94. }
  95.  
  96. .mbnumber {
  97.     margin-bottom: -70px;
  98.     background: var(--bckg3);
  99.     border: var(--border1);
  100.     width: 30px;
  101.     height: 30px;
  102.     display: flex;
  103.     justify-content: center;
  104.     align-items: center;
  105.     font: 14px 'Montserrat';
  106.     font-weight: 700;
  107.     color: var(--membercolour);
  108.     border-radius: 100%;
  109.     z-index: 1;
  110. }
  111.  
  112. .mb2 {
  113.     padding: 3px;
  114.     border: var(--border1);
  115.     background: var(--bckg4);
  116. }
  117.  
  118. .mbavatar {
  119.     outline: var(--border1);
  120.     border: 1px solid #fff;
  121. }
  122.  
  123. .mb3 {
  124.     display: flex;
  125.     justify-content: center;
  126.     align-items: center;
  127.     flex-direction: column;
  128.     border: var(--border1);
  129.     border-top: 0;
  130.     background: var(--bckg3);
  131.     padding: 5px 5px 0;
  132.     align-self:stretch;
  133. }
  134.  
  135. .mbfield {
  136.     margin-bottom: 5px;
  137.     display: flex;
  138.     justify-content: center;
  139.     align-items: center;
  140.     align-self: stretch;
  141. }
  142.  
  143. .mbfield em {
  144.     background: var(--bckg1);
  145.     width: 30px;
  146.     height: 30px;
  147.     display: flex;
  148.     justify-content: center;
  149.     align-items: center;
  150.     border: var(--border1);
  151.     border-radius: 5px;
  152.     text-shadow: var(--shadow-w);
  153.     margin-right: 5px;
  154.     flex-shrink: 0;
  155.     color: var(--membercolour);
  156. }
  157.  
  158. .mbfield span {
  159.     background:var(--bckg2);
  160.     border: var(--border1);
  161.     height: 30px;
  162.     border-radius: 3px;
  163.     display: flex;
  164.     justify-content: center;
  165.     align-items: center;
  166.     color: #555;
  167.     font: 11px 'Roboto';
  168.     font-weight: 700;
  169.     flex-grow: 1;
  170. }
  171.  
  172. .mb4 {
  173.     text-align: center;
  174.     display: flex;
  175.     justify-content: space-around;
  176.     align-items: center;
  177.     margin-top: 10px;
  178.     flex-grow:1;
  179.     align-self:stretch;
  180. }
  181. .mb4 a {
  182.     background: var(--bckg5);
  183.     border-radius: 5px;
  184.     flex-grow:1;
  185.     margin-right:10px;
  186.     align-self:stretch;
  187.     border:var(--border1);
  188.     display: flex;
  189.     justify-content: center;
  190.     align-items: center;
  191.     padding:5px;
  192.     color:var(--membercolour);
  193. }
  194. .mb4 a img {
  195.     display:none;
  196. }
  197. .mb4 a:last-of-type {
  198.     margin-right:0;
  199. }
  200. </style>
  201. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous"/>
  202. <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;1,700&family=Roboto:wght@400;700&display=swap" rel="stylesheet"/>
  203. <div id="memberlist">
  204. <h4>
  205. <h>{PAGE_TITLE}</h>
  206. <!-- BEGIN switch_pagination -->
  207. <div class="pagination">{PAGINATION}</div>
  208. <!-- END switch_pagination -->
  209. </h4>
  210. <form action="{S_MODE_ACTION}" method="get">
  211. <div class="mbform">
  212. {L_USER_SELECT}
  213. <input type="text" class="inputbox tiny" name="username" maxlength="25" size="20" value="{L_USER_SELECT_VALUE}" />
  214. {L_SELECT_SORT_METHOD}
  215. {S_MODE_SELECT}
  216. {L_ORDER}
  217. {S_ORDER_SELECT}
  218. <input class="button2" type="submit" name="submit" value="{L_SUBMIT}" />
  219. </div>
  220. </form>
  221. <div class="mbbody">
  222. <!-- BEGIN memberrow -->
  223. <div class="member">
  224. <div class="mb1">
  225. <div class="mbnumber">{memberrow.ROW_NUMBER}</div>
  226. <div class="mbname">{memberrow.USERNAME}</div>
  227. </div>
  228. <div class="mb2">
  229. <div class="mbavatar">{memberrow.AVATAR_IMG}</div>
  230. </div>
  231. <div class="mb3">
  232. <div class="mbfield"><em class="fas fa-calendar-alt" title="{L_JOINED}"></em><span>{memberrow.JOINED}</span></div>
  233. <div class="mbfield"><em class="fas fa-power-off" title="{L_VISITED}"></em><span>{memberrow.LASTVISIT}</span></div>
  234. <div class="mbfield"><em class="fas fa-comments" title="{L_POSTS}"></em><span>{memberrow.POSTS} MENSAJES</span></div>
  235. <div class="mbfield"><em class="fas fa-heart" title="{L_INTERESTS}"></em><span>{memberrow.INTERESTS}</span></div>
  236. </div>
  237. <div class="mb4">
  238. <a href="{memberrow.U_VIEWPROFILE}"><em class="fas fa-user"></em></a>
  239. {memberrow.PM_IMG}
  240. {memberrow.WWW_IMG}
  241. </div>
  242. </div>
  243. <!-- END memberrow -->
  244. </div>
  245. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement