Skip to:
Content

BuddyPress.org

Ticket #787: x-profile.patch

File x-profile.patch, 27.6 KB (added by sooskriszta, 5 years ago)

Patch - 1st cut

  • src/bp-templates/bp-legacy/css/twentyfifteen-rtl.css

     
    625625        padding: 10px;
    626626}
    627627
    628 #buddypress #activity-stream .load-more:focus,
    629 #buddypress #activity-stream .load-more:hover {
     628#buddypress #activity-stream .load-more:focus, #buddypress #activity-stream .load-more:hover {
    630629        background: #f4f4f4;
    631630        border: 1px solid rgba(159, 209, 226, 0.3);
    632631}
    633632
    634 #buddypress #activity-stream .load-more:focus a,
    635 #buddypress #activity-stream .load-more:hover a {
     633#buddypress #activity-stream .load-more:focus a, #buddypress #activity-stream .load-more:hover a {
    636634        font-style: italic;
    637635}
    638636
     
    774772        text-align: center;
    775773}
    776774
    777 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus,
    778 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
     775#buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
    779776        background: #ededed;
    780777}
    781778
     
    15151512}
    15161513
    15171514.bp-user #buddypress #message-threads tr td.thread-info a::after {
    1518         content: " – Â " attr(title);
     1515        content: " – " attr(title);
    15191516        font-size: 12px;
    15201517        font-size: 1.2rem;
    15211518}
     
    17201717
    17211718#buddypress div.dir-search,
    17221719#buddypress div.message-search,
    1723 #buddypress
    1724 li.groups-members-search {
     1720#buddypress li.groups-members-search {
    17251721        float: none;
    17261722        margin: 10px 0;
    17271723}
     
    17281724
    17291725#buddypress div.dir-search form,
    17301726#buddypress div.message-search form,
    1731 #buddypress
    1732 li.groups-members-search form {
     1727#buddypress li.groups-members-search form {
    17331728        border: 1px solid rgba(153, 153, 153, 0.4);
    17341729        overflow: hidden;
    17351730}
     
    17361731
    17371732#buddypress div.dir-search form label,
    17381733#buddypress div.message-search form label,
    1739 #buddypress
    1740 li.groups-members-search form label {
     1734#buddypress li.groups-members-search form label {
    17411735        float: right;
    17421736        width: 80%;
    17431737}
     
    17441738
    17451739#buddypress div.dir-search form input[type='text'],
    17461740#buddypress div.message-search form input[type='text'],
    1747 #buddypress
    1748 li.groups-members-search form input[type='text'] {
     1741#buddypress li.groups-members-search form input[type='text'] {
    17491742        float: right;
    17501743        margin: 0;
    17511744        width: 80%;
     
    17551748#buddypress div.dir-search form input[type='submit'],
    17561749#buddypress div.message-search form input[type='text'],
    17571750#buddypress div.message-search form input[type='submit'],
    1758 #buddypress
    1759 li.groups-members-search form input[type='text'],
    1760 #buddypress
    1761 li.groups-members-search form input[type='submit'] {
     1751#buddypress li.groups-members-search form input[type='text'],
     1752#buddypress li.groups-members-search form input[type='submit'] {
    17621753        font-size: 14px;
    17631754        font-size: 1.4rem;
    17641755        border: 0;
     
    17671758
    17681759#buddypress div.dir-search form input[type='text'],
    17691760#buddypress div.message-search form input[type='text'],
    1770 #buddypress
    1771 li.groups-members-search form input[type='text'] {
     1761#buddypress li.groups-members-search form input[type='text'] {
    17721762        border-left: 1px solid rgba(153, 153, 153, 0.4);
    17731763        padding: 0.2em 0.2em 0.2em 0;
    17741764}
     
    17751765
    17761766#buddypress div.dir-search form input[type='submit'],
    17771767#buddypress div.message-search form input[type='submit'],
    1778 #buddypress
    1779 li.groups-members-search form input[type='submit'] {
     1768#buddypress li.groups-members-search form input[type='submit'] {
    17801769        float: left;
    17811770        font-weight: normal;
    17821771        padding: 0.2em 1em;
  • src/bp-templates/bp-legacy/css/twentyfifteen.css

     
    625625        padding: 10px;
    626626}
    627627
    628 #buddypress #activity-stream .load-more:focus,
    629 #buddypress #activity-stream .load-more:hover {
     628#buddypress #activity-stream .load-more:focus, #buddypress #activity-stream .load-more:hover {
    630629        background: #f4f4f4;
    631630        border: 1px solid rgba(159, 209, 226, 0.3);
    632631}
    633632
    634 #buddypress #activity-stream .load-more:focus a,
    635 #buddypress #activity-stream .load-more:hover a {
     633#buddypress #activity-stream .load-more:focus a, #buddypress #activity-stream .load-more:hover a {
    636634        font-style: italic;
    637635}
    638636
     
    774772        text-align: center;
    775773}
    776774
    777 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus,
    778 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
     775#buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
    779776        background: #ededed;
    780777}
    781778
     
    15151512}
    15161513
    15171514.bp-user #buddypress #message-threads tr td.thread-info a::after {
    1518         content: " – Â " attr(title);
     1515        content: " – " attr(title);
    15191516        font-size: 12px;
    15201517        font-size: 1.2rem;
    15211518}
     
    17201717
    17211718#buddypress div.dir-search,
    17221719#buddypress div.message-search,
    1723 #buddypress
    1724 li.groups-members-search {
     1720#buddypress li.groups-members-search {
    17251721        float: none;
    17261722        margin: 10px 0;
    17271723}
     
    17281724
    17291725#buddypress div.dir-search form,
    17301726#buddypress div.message-search form,
    1731 #buddypress
    1732 li.groups-members-search form {
     1727#buddypress li.groups-members-search form {
    17331728        border: 1px solid rgba(153, 153, 153, 0.4);
    17341729        overflow: hidden;
    17351730}
     
    17361731
    17371732#buddypress div.dir-search form label,
    17381733#buddypress div.message-search form label,
    1739 #buddypress
    1740 li.groups-members-search form label {
     1734#buddypress li.groups-members-search form label {
    17411735        float: left;
    17421736        width: 80%;
    17431737}
     
    17441738
    17451739#buddypress div.dir-search form input[type='text'],
    17461740#buddypress div.message-search form input[type='text'],
    1747 #buddypress
    1748 li.groups-members-search form input[type='text'] {
     1741#buddypress li.groups-members-search form input[type='text'] {
    17491742        float: left;
    17501743        margin: 0;
    17511744        width: 80%;
     
    17551748#buddypress div.dir-search form input[type='submit'],
    17561749#buddypress div.message-search form input[type='text'],
    17571750#buddypress div.message-search form input[type='submit'],
    1758 #buddypress
    1759 li.groups-members-search form input[type='text'],
    1760 #buddypress
    1761 li.groups-members-search form input[type='submit'] {
     1751#buddypress li.groups-members-search form input[type='text'],
     1752#buddypress li.groups-members-search form input[type='submit'] {
    17621753        font-size: 14px;
    17631754        font-size: 1.4rem;
    17641755        border: 0;
     
    17671758
    17681759#buddypress div.dir-search form input[type='text'],
    17691760#buddypress div.message-search form input[type='text'],
    1770 #buddypress
    1771 li.groups-members-search form input[type='text'] {
     1761#buddypress li.groups-members-search form input[type='text'] {
    17721762        border-right: 1px solid rgba(153, 153, 153, 0.4);
    17731763        padding: 0.2em 0 0.2em 0.2em;
    17741764}
     
    17751765
    17761766#buddypress div.dir-search form input[type='submit'],
    17771767#buddypress div.message-search form input[type='submit'],
    1778 #buddypress
    1779 li.groups-members-search form input[type='submit'] {
     1768#buddypress li.groups-members-search form input[type='submit'] {
    17801769        float: right;
    17811770        font-weight: normal;
    17821771        padding: 0.2em 1em;
  • src/bp-templates/bp-legacy/css/twentyfourteen-rtl.css

     
    211211                float: none;
    212212                overflow: hidden;
    213213        }
    214         #buddypress #object-nav ul li:focus,
    215         #buddypress #object-nav ul li:hover {
     214        #buddypress #object-nav ul li:focus, #buddypress #object-nav ul li:hover {
    216215                background: #bebebe;
    217216        }
    218217        #buddypress #object-nav ul li span {
     
    241240        #buddypress #item-body #subnav li.current {
    242241                background: #f1f1f1;
    243242        }
    244         #buddypress #item-body #subnav li#activity-filter-select:focus,
    245         #buddypress #item-body #subnav li#activity-filter-select:hover {
     243        #buddypress #item-body #subnav li#activity-filter-select:focus, #buddypress #item-body #subnav li#activity-filter-select:hover {
    246244                background: none;
    247245        }
    248246        #buddypress #item-body #subnav li#activity-filter-select select {
     
    603601        text-align: center;
    604602}
    605603
    606 #buddypress .activity .activity-comments .ac-form .ac-reply-cancel:focus,
    607 #buddypress .activity .activity-comments .ac-form .ac-reply-cancel:hover {
     604#buddypress .activity .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress .activity .activity-comments .ac-form .ac-reply-cancel:hover {
    608605        background: #ededed;
    609606}
    610607
     
    11271124}
    11281125
    11291126#buddypress table#message-threads tr td.thread-info a::after {
    1130         content: " – Â " attr(title);
     1127        content: " – " attr(title);
    11311128        font-size: 12px;
    11321129        font-size: 0.75rem;
    11331130}
  • src/bp-templates/bp-legacy/css/twentyfourteen.css

     
    211211                float: none;
    212212                overflow: hidden;
    213213        }
    214         #buddypress #object-nav ul li:focus,
    215         #buddypress #object-nav ul li:hover {
     214        #buddypress #object-nav ul li:focus, #buddypress #object-nav ul li:hover {
    216215                background: #bebebe;
    217216        }
    218217        #buddypress #object-nav ul li span {
     
    241240        #buddypress #item-body #subnav li.current {
    242241                background: #f1f1f1;
    243242        }
    244         #buddypress #item-body #subnav li#activity-filter-select:focus,
    245         #buddypress #item-body #subnav li#activity-filter-select:hover {
     243        #buddypress #item-body #subnav li#activity-filter-select:focus, #buddypress #item-body #subnav li#activity-filter-select:hover {
    246244                background: none;
    247245        }
    248246        #buddypress #item-body #subnav li#activity-filter-select select {
     
    603601        text-align: center;
    604602}
    605603
    606 #buddypress .activity .activity-comments .ac-form .ac-reply-cancel:focus,
    607 #buddypress .activity .activity-comments .ac-form .ac-reply-cancel:hover {
     604#buddypress .activity .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress .activity .activity-comments .ac-form .ac-reply-cancel:hover {
    608605        background: #ededed;
    609606}
    610607
     
    11271124}
    11281125
    11291126#buddypress table#message-threads tr td.thread-info a::after {
    1130         content: " – Â " attr(title);
     1127        content: " – " attr(title);
    11311128        font-size: 12px;
    11321129        font-size: 0.75rem;
    11331130}
  • src/bp-templates/bp-legacy/css/twentysixteen-rtl.css

     
    171171                display: inline;
    172172                opacity: 0.7;
    173173        }
    174         .bp-user #buddypress #object-nav:hover:before,
    175         .bp-user #buddypress #object-nav:focus:before {
     174        .bp-user #buddypress #object-nav:hover:before, .bp-user #buddypress #object-nav:focus:before {
    176175                content: "Menu \021E7";
    177176        }
    178         .bp-user #buddypress #object-nav:hover ul,
    179         .bp-user #buddypress #object-nav:focus ul {
     177        .bp-user #buddypress #object-nav:hover ul, .bp-user #buddypress #object-nav:focus ul {
    180178                height: 320px;
    181179                opacity: 1;
    182180                overflow-y: auto;
     
    207205}
    208206
    209207@media screen and (max-width: 38.75em) {
    210         #buddypress #object-nav ul li:not(.selected):focus,
    211         #buddypress #object-nav ul li:not(.selected):hover {
     208        #buddypress #object-nav ul li:not(.selected):focus, #buddypress #object-nav ul li:not(.selected):hover {
    212209                background: #f4f2df;
    213210        }
    214211}
     
    354351        min-height: 0;
    355352}
    356353
    357 #buddypress div.pagination:before,
    358 #buddypress div.pagination:after {
     354#buddypress div.pagination:before, #buddypress div.pagination:after {
    359355        height: 0;
    360356        width: 0;
    361357}
     
    408404        font-family: "Source Sans Pro", Helvetica, sans-serif;
    409405}
    410406
    411 #buddypress .activity-meta .button:focus,
    412 #buddypress .activity-meta .button:hover {
     407#buddypress .activity-meta .button:focus, #buddypress .activity-meta .button:hover {
    413408        background: inherit;
    414409        color: #000;
    415410}
    416411
    417 #buddypress .action .generic-button a:focus,
    418 #buddypress .action .generic-button a:hover {
     412#buddypress .action .generic-button a:focus, #buddypress .action .generic-button a:hover {
    419413        background: inherit;
    420414        color: #000;
    421415}
     
    726720        padding: 10px;
    727721}
    728722
    729 #buddypress #activity-stream .load-more:focus,
    730 #buddypress #activity-stream .load-more:hover {
     723#buddypress #activity-stream .load-more:focus, #buddypress #activity-stream .load-more:hover {
    731724        background: #f4f4f4;
    732725        border: 1px solid rgba(159, 209, 226, 0.3);
    733726}
    734727
    735 #buddypress #activity-stream .load-more:focus a,
    736 #buddypress #activity-stream .load-more:hover a {
     728#buddypress #activity-stream .load-more:focus a, #buddypress #activity-stream .load-more:hover a {
    737729        font-style: italic;
    738730}
    739731
     
    797789        text-align: center;
    798790}
    799791
    800 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus,
    801 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
     792#buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
    802793        background: #ededed;
    803794}
    804795
     
    14631454}
    14641455
    14651456.bp-user #buddypress #message-threads tr td.thread-info a::after {
    1466         content: " ‖ Â " attr(title);
     1457        content: " ‖ " attr(title);
    14671458        font-size: 12px;
    14681459        font-size: 0.75rem;
    14691460}
  • src/bp-templates/bp-legacy/css/twentysixteen.css

     
    171171                display: inline;
    172172                opacity: 0.7;
    173173        }
    174         .bp-user #buddypress #object-nav:hover:before,
    175         .bp-user #buddypress #object-nav:focus:before {
     174        .bp-user #buddypress #object-nav:hover:before, .bp-user #buddypress #object-nav:focus:before {
    176175                content: "Menu \021E7";
    177176        }
    178         .bp-user #buddypress #object-nav:hover ul,
    179         .bp-user #buddypress #object-nav:focus ul {
     177        .bp-user #buddypress #object-nav:hover ul, .bp-user #buddypress #object-nav:focus ul {
    180178                height: 320px;
    181179                opacity: 1;
    182180                overflow-y: auto;
     
    207205}
    208206
    209207@media screen and (max-width: 38.75em) {
    210         #buddypress #object-nav ul li:not(.selected):focus,
    211         #buddypress #object-nav ul li:not(.selected):hover {
     208        #buddypress #object-nav ul li:not(.selected):focus, #buddypress #object-nav ul li:not(.selected):hover {
    212209                background: #f4f2df;
    213210        }
    214211}
     
    354351        min-height: 0;
    355352}
    356353
    357 #buddypress div.pagination:before,
    358 #buddypress div.pagination:after {
     354#buddypress div.pagination:before, #buddypress div.pagination:after {
    359355        height: 0;
    360356        width: 0;
    361357}
     
    408404        font-family: "Source Sans Pro", Helvetica, sans-serif;
    409405}
    410406
    411 #buddypress .activity-meta .button:focus,
    412 #buddypress .activity-meta .button:hover {
     407#buddypress .activity-meta .button:focus, #buddypress .activity-meta .button:hover {
    413408        background: inherit;
    414409        color: #000;
    415410}
    416411
    417 #buddypress .action .generic-button a:focus,
    418 #buddypress .action .generic-button a:hover {
     412#buddypress .action .generic-button a:focus, #buddypress .action .generic-button a:hover {
    419413        background: inherit;
    420414        color: #000;
    421415}
     
    726720        padding: 10px;
    727721}
    728722
    729 #buddypress #activity-stream .load-more:focus,
    730 #buddypress #activity-stream .load-more:hover {
     723#buddypress #activity-stream .load-more:focus, #buddypress #activity-stream .load-more:hover {
    731724        background: #f4f4f4;
    732725        border: 1px solid rgba(159, 209, 226, 0.3);
    733726}
    734727
    735 #buddypress #activity-stream .load-more:focus a,
    736 #buddypress #activity-stream .load-more:hover a {
     728#buddypress #activity-stream .load-more:focus a, #buddypress #activity-stream .load-more:hover a {
    737729        font-style: italic;
    738730}
    739731
     
    797789        text-align: center;
    798790}
    799791
    800 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus,
    801 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
     792#buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
    802793        background: #ededed;
    803794}
    804795
     
    14631454}
    14641455
    14651456.bp-user #buddypress #message-threads tr td.thread-info a::after {
    1466         content: " ‖ Â " attr(title);
     1457        content: " ‖ " attr(title);
    14671458        font-size: 12px;
    14681459        font-size: 0.75rem;
    14691460}
  • src/bp-templates/bp-legacy/css/twentythirteen-rtl.css

     
    124124                display: inline;
    125125                opacity: 0.7;
    126126        }
    127         .bp-user #buddypress #object-nav:hover:before,
    128         .bp-user #buddypress #object-nav:focus:before {
     127        .bp-user #buddypress #object-nav:hover:before, .bp-user #buddypress #object-nav:focus:before {
    129128                content: "Menu \021E7";
    130129        }
    131         .bp-user #buddypress #object-nav:hover ul,
    132         .bp-user #buddypress #object-nav:focus ul {
     130        .bp-user #buddypress #object-nav:hover ul, .bp-user #buddypress #object-nav:focus ul {
    133131                height: 320px;
    134132                opacity: 1;
    135133                overflow-y: auto;
     
    150148}
    151149
    152150@media screen and (max-width: 38.75em) {
    153         #buddypress #object-nav ul li:focus,
    154         #buddypress #object-nav ul li:hover {
     151        #buddypress #object-nav ul li:focus, #buddypress #object-nav ul li:hover {
    155152                background: #f4f2df;
    156153        }
    157154}
     
    360357        font-family: "Source Sans Pro", Helvetica, sans-serif;
    361358}
    362359
    363 #buddypress .activity-meta .button:focus,
    364 #buddypress .activity-meta .button:hover {
     360#buddypress .activity-meta .button:focus, #buddypress .activity-meta .button:hover {
    365361        background: #e37a5a;
    366362        color: #f7f5e7;
    367363}
    368364
    369 #buddypress .action .generic-button a:focus,
    370 #buddypress .action .generic-button a:hover {
     365#buddypress .action .generic-button a:focus, #buddypress .action .generic-button a:hover {
    371366        background: #e37a5a;
    372367        color: #f7f5e7;
    373368}
     
    678673        padding: 10px;
    679674}
    680675
    681 #buddypress #activity-stream .load-more:focus,
    682 #buddypress #activity-stream .load-more:hover {
     676#buddypress #activity-stream .load-more:focus, #buddypress #activity-stream .load-more:hover {
    683677        background: #f4f4f4;
    684678        border: 1px solid rgba(159, 209, 226, 0.3);
    685679}
    686680
    687 #buddypress #activity-stream .load-more:focus a,
    688 #buddypress #activity-stream .load-more:hover a {
     681#buddypress #activity-stream .load-more:focus a, #buddypress #activity-stream .load-more:hover a {
    689682        font-style: italic;
    690683}
    691684
     
    749742        text-align: center;
    750743}
    751744
    752 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus,
    753 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
     745#buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
    754746        background: #ededed;
    755747}
    756748
     
    15401532}
    15411533
    15421534.bp-user #buddypress #message-threads tr td.thread-info a::after {
    1543         content: " – Â " attr(title);
     1535        content: " – " attr(title);
    15441536        font-size: 12px;
    15451537        font-size: 0.75rem;
    15461538}
  • src/bp-templates/bp-legacy/css/twentythirteen.css

     
    124124                display: inline;
    125125                opacity: 0.7;
    126126        }
    127         .bp-user #buddypress #object-nav:hover:before,
    128         .bp-user #buddypress #object-nav:focus:before {
     127        .bp-user #buddypress #object-nav:hover:before, .bp-user #buddypress #object-nav:focus:before {
    129128                content: "Menu \021E7";
    130129        }
    131         .bp-user #buddypress #object-nav:hover ul,
    132         .bp-user #buddypress #object-nav:focus ul {
     130        .bp-user #buddypress #object-nav:hover ul, .bp-user #buddypress #object-nav:focus ul {
    133131                height: 320px;
    134132                opacity: 1;
    135133                overflow-y: auto;
     
    150148}
    151149
    152150@media screen and (max-width: 38.75em) {
    153         #buddypress #object-nav ul li:focus,
    154         #buddypress #object-nav ul li:hover {
     151        #buddypress #object-nav ul li:focus, #buddypress #object-nav ul li:hover {
    155152                background: #f4f2df;
    156153        }
    157154}
     
    360357        font-family: "Source Sans Pro", Helvetica, sans-serif;
    361358}
    362359
    363 #buddypress .activity-meta .button:focus,
    364 #buddypress .activity-meta .button:hover {
     360#buddypress .activity-meta .button:focus, #buddypress .activity-meta .button:hover {
    365361        background: #e37a5a;
    366362        color: #f7f5e7;
    367363}
    368364
    369 #buddypress .action .generic-button a:focus,
    370 #buddypress .action .generic-button a:hover {
     365#buddypress .action .generic-button a:focus, #buddypress .action .generic-button a:hover {
    371366        background: #e37a5a;
    372367        color: #f7f5e7;
    373368}
     
    678673        padding: 10px;
    679674}
    680675
    681 #buddypress #activity-stream .load-more:focus,
    682 #buddypress #activity-stream .load-more:hover {
     676#buddypress #activity-stream .load-more:focus, #buddypress #activity-stream .load-more:hover {
    683677        background: #f4f4f4;
    684678        border: 1px solid rgba(159, 209, 226, 0.3);
    685679}
    686680
    687 #buddypress #activity-stream .load-more:focus a,
    688 #buddypress #activity-stream .load-more:hover a {
     681#buddypress #activity-stream .load-more:focus a, #buddypress #activity-stream .load-more:hover a {
    689682        font-style: italic;
    690683}
    691684
     
    749742        text-align: center;
    750743}
    751744
    752 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus,
    753 #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
     745#buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:focus, #buddypress #activity-stream .activity-comments .ac-form .ac-reply-cancel:hover {
    754746        background: #ededed;
    755747}
    756748
     
    15401532}
    15411533
    15421534.bp-user #buddypress #message-threads tr td.thread-info a::after {
    1543         content: " – Â " attr(title);
     1535        content: " – " attr(title);
    15441536        font-size: 12px;
    15451537        font-size: 0.75rem;
    15461538}
  • src/bp-xprofile/admin/js/admin.js

     
    8282
    8383        if ( XProfileAdmin.supports_options_field_types.indexOf( forWhat ) >= 0 ) {
    8484                document.getElementById( forWhat ).style.display = '';
     85                document.getElementById( 'is-searchable' ).checked = true;
     86        } else {
     87                document.getElementById( 'is-searchable' ).checked = false;
    8588        }
    8689}
    8790
  • src/bp-xprofile/bp-xprofile-admin.php

     
    395395                                        $field->set_member_types( $member_types );
    396396                                }
    397397
     398                                // Validate searchable field
     399                                if( 1 !== $field_id ) {
     400                                        $is_searchable = '0';
     401
     402                                        if ( isset($_POST['is-searchable']) && in_array( $_POST['is-searchable'], array( '0', '1' ) ) ) {
     403                                                $is_searchable =  $_POST['is-searchable'];
     404                                        }
     405
     406                                        bp_xprofile_update_field_meta( $field_id, 'is_searchable', $is_searchable );
     407                                }
     408
    398409                                // Validate default visibility.
    399410                                if ( ! empty( $_POST['default-visibility'] ) && in_array( $_POST['default-visibility'], wp_list_pluck( bp_xprofile_get_visibility_levels(), 'id' ) ) ) {
    400411                                        bp_xprofile_update_field_meta( $field_id, 'default_visibility', $_POST['default-visibility'] );
  • src/bp-xprofile/bp-xprofile-filters.php

     
    339339 * @return string
    340340 */
    341341function xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) {
     342        global $field;
    342343
    343344        if ( 'datebox' === $field_type ) {
    344345                return $field_value;
     
    348349                return $field_value;
    349350        }
    350351
     352        if(!(int)$field->is_searchable && $field->id != 1){
     353                return $field_value;
     354        }
     355
    351356        $values = explode( ',', $field_value );
    352357
    353358        if ( !empty( $values ) ) {
  • src/bp-xprofile/classes/class-bp-xprofile-field.php

     
    120120        public $is_default_option;
    121121
    122122        /**
     123         * @since BuddyPress Patch (1.0.0)
     124         *
     125         * @author Lenlay
     126         *
     127         * @var bool Is field searchable or not?
     128         */
     129        public $is_searchable;
     130
     131        /**
    123132         * Field data visibility.
    124133         *
    125134         * @since 1.9.0
     
    292301                        case 'allow_custom_visibility' :
    293302                                return $this->get_allow_custom_visibility();
    294303                                break;
     304
     305                        case 'is_searchable' :
     306                                return $this->get_searchable();
     307                                break;
    295308                }
    296309        }
    297310
     
    308321                        // Backward compatibility for when these were public methods.
    309322                        case 'allow_custom_visibility' :
    310323                        case 'default_visibility' :
     324                        case 'is_searchable' :
    311325                                return true;
    312326                                break;
    313327                }
     
    784798        }
    785799
    786800        /**
     801         * Get the field's searchable setting.
     802         *
     803         * Lazy-loaded to reduce overhead.
     804         *
     805         * Defaults to '1' if no visibility setting is found in the database.
     806         *
     807         * @since BuddyPress Patch (1.0.0)
     808         *
     809         * @return string
     810         */
     811        public function get_searchable() {
     812                if ( ! isset( $this->is_searchable ) ) {
     813                        $this->is_searchable = bp_xprofile_get_meta( $this->id, 'field', 'is_searchable' );
     814                        if ( ! $this->is_searchable && $this->is_searchable !== '0' ) {
     815                                $this->is_searchable = '1';
     816                        }
     817                }
     818
     819                return $this->is_searchable;
     820        }
     821
     822        /**
    787823         * Get whether the field's default visibility can be overridden by users.
    788824         *
    789825         * Lazy-loaded to reduce overhead.
     
    12971333        }
    12981334
    12991335        /**
     1336         * Output the field for setting if field is searchable or not
     1337         *
     1338         * @since BuddyPress Patch (1.0.0)
     1339         *
     1340         * @author Lenlay
     1341         *
     1342         */
     1343        private function searchable_field() {
     1344        ?>
     1345                <p>
     1346                        <input type="checkbox" name="is-searchable" id="is-searchable" value="1" <?php checked($this->get_searchable(), '1'); ?>>
     1347                        <label for="is-searchable"><?php esc_html_e( 'Searchable link', 'buddypress' ); ?></label>
     1348                        <p class="description"><?php esc_html_e( 'If selected then the value on member profile tab is a link, clicking on which searches for profiles of other members with the same response.', 'buddypress' ); ?></p>
     1349                </p>
     1350
     1351        <?php
     1352        }
     1353
     1354        /**
    13001355         * Private method used to output field Member Type metabox.
    13011356         *
    13021357         * @since 2.4.0
     
    14531508                                // Deprecated filter, don't use. Go look at {@link BP_XProfile_Field_Type::admin_new_field_html()}.
    14541509                                do_action( 'xprofile_field_additional_options', $this );
    14551510
    1456                                 $this->render_admin_form_children(); ?>
     1511                                $this->render_admin_form_children();
    14571512
     1513                                // Output the searchable field
     1514                                $this->searchable_field(); ?>
     1515
    14581516                        </div>
    14591517                </div>
    14601518
  • src/bp-xprofile/classes/class-bp-xprofile-group.php

     
    462462                        bp_xprofile_update_meta_cache( $object_ids );
    463463                }
    464464
     465                // Fetch searchable fields.
     466                $fields = self::fetch_searchable_fields( $fields );
     467
    465468                // Maybe fetch visibility levels.
    466469                if ( ! empty( $r['fetch_visibility_level'] ) ) {
    467470                        $fields = self::fetch_visibility_level( $r['user_id'], $fields );
     
    658661        }
    659662
    660663        /**
     664         * Fetch the field searchable value for the fields returned by the query.
     665         *
     666         * @since BuddyPress Patch (1.0.0)
     667         *
     668         * @param array $fields  The database results returned by the get() query.
     669         *
     670         * @return array $fields The database results, with field_visibility added
     671         */
     672        public static function fetch_searchable_fields( $fields = array() ) {
     673
     674                foreach( (array) $fields as $key => $field ) {
     675
     676                        // Does the admin allow this field to be customized?
     677                        $is_searchable = bp_xprofile_get_meta( $field->id, 'field', 'is_searchable');
     678
     679                        if(!$is_searchable && $is_searchable !== '0') {
     680                                $is_searchable = '1';
     681                        }
     682
     683                        $fields[ $key ]->is_searchable = $is_searchable;
     684                }
     685                return $fields;
     686        }
     687
     688        /**
    661689         * Fetch the admin-set preferences for all fields.
    662690         *
    663691         * @since 1.6.0