inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Aug 30, 2017 4:59:33 GMT -8
Is it possible to place this in a specific spot in the mini-profile instead of the default position??
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Oct 5, 2017 11:20:38 GMT -8
Is it possible to place this in a specific spot in the mini-profile instead of the default position?? You can target it with $(.utdprevention) and then use jquery to move it with a global footer code But Its not really easy moving it into another location with the amount of plugins utilizing the same space that it uses Where else would you put it
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Oct 5, 2017 12:31:17 GMT -8
I want it a bit further down in the mini-profile, above the custom info lines of text. Take a look at my profile on my forum, (link in sig).
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Oct 5, 2017 12:50:54 GMT -8
I want it a bit further down in the mini-profile, above the custom info lines of text. Take a look at my profile on my forum, (link in sig). There is a box in the settings called: Custom Mini-Profile Target You will want that to be .mini-profile .utdmphelp and under your admin themes you will have to add <span class=".utdmphelp"></span> wherever you want it to be displayed (IN EVERY THEME YOU WANT CHANGED) (for advanced users) Other than that... In the Custom Mini-Profile Target box in the settings try .mini-profile .info>span:last Will add it to the last span. It's worth a shot. Since not every users will have a custom info line of text, it's not possible to use that as a guiding line.
|
|
Former Member
inherit
guest@proboards.com
251114
0
Nov 22, 2024 6:16:18 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 12, 2018 11:36:07 GMT -8
i need help please Forum URL: friendshipmatter.proboards.com/Save Data Click save to update your profile data. After you save, this popup will not appear again. If you ignore this popup, it will appear again on your next page. i added the User Theme Display plug and now this is coming up i getting annoying sorry please help P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
|
|
inherit
219572
0
Oct 25, 2023 2:12:01 GMT -8
Gene Hunt
634
March 2015
genehunt
|
Post by Gene Hunt on Nov 4, 2018 10:33:20 GMT -8
Just started using this excellent plug in and it works perfectly. Is there a way that I can add the ability to sort the Theme column I now have in the member list?
Thank you,
GH.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Nov 4, 2020 14:40:10 GMT -8
Hi P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ I was having a problem with my plugin conflicting with this one. Also I noticed some inherently annoying behavior when User Theme Display is installed and the user changes their theme selection. Each and every time the user changes the select, a dialogue is created. That tends to be a nuisance and it isn't at all necessary while on the Settings page. A dialogue will be created on any page if the user's selected theme doesn't match the data in the plugin key. If you would consider updating your plugin, that would be much appreciated. This seems to work just fine for the JS component. (The modification I'm suggesting is clearly denoted within comments.) //All Your Base Are Belong To User Theme Display//
var utdprevtheme = "" $(document).ready(function() { /* Modifcation to Inhibit unnecessary intearctions on the Settings page.*/ if(window.location.href.indexOf('settings') >= 0) { return; } if(window.location.href.indexOf('avatar') >= 0) { return; } /* End of modification */ utdprevtheme = $('.theme-chooser').val() utdload(); })
function utdload() { var user = pb.data('user').id; var theme = pb.data('user').theme_id var key = pb.plugin.key('theme_display').get(user) if(key != theme) { utdupdate(); } if(pb.plugin.get('user_theme_display').settings.who_can_see_this == 'members' && proboards.data('user').id == 0) //no guests return; if(pb.plugin.get('user_theme_display').settings.who_can_see_this == 'staff' && !proboards.data('user').is_staff) //only staff return; if(pb.plugin.get('user_theme_display').settings.who_can_see_this == 'admin' && user != 1) //only main admin return; utdapply(); pb.events.on('afterSearch', function() { utdapply() //runs after search because ajax won't fire if already searched previously }) $(document).ajaxComplete(function(event, xhr, settings) { utdapply() //runs on all ajax calls, safety function prevents extra calls }); pb.events.on('pageChange', function() { utdapply() //runs on pagechange because ajax won't fire if page loaded previously }) $('.theme-chooser').change(function() { utdupdate() })
}
function utdapply() { var user = proboards.data('page').member var themetext = '' if(user != undefined) { var key = pb.plugin.key('theme_display').get(user.id) if(key == undefined) { themetext = 'Theme Unsaved' } else { var ui = pb.plugin.get('user_theme_display').settings.themes for(a = 0; a < ui.length; a++) { if(key == ui[a].select_theme_to_record) if(ui[a].text_you_want_displayed != '') { themetext = ui[a].text_you_want_displayed } else { themetext = '<td>' + pb.plugin.get('user_theme_display').settings.theme_heading + '</td><td><span>' + pb.plugin.get('user_theme_display').settings.themes[a].theme_display_name + '</span></td>' } } } if(themetext == '') themetext = 'Hidden Theme' //Not in settings if($('.form_user_status #center-column .headings:first').length) if(parseInt(pb.plugin.get('user_theme_display').settings.add_to_user_profile)) //on off profile if(!$('.utdcss').length) $('.form_user_status #center-column .headings:first').parent().parent().append('<tr class="utdcss">' + themetext + '</tr>') //profile } if(parseInt(pb.plugin.get('user_theme_display').settings.append_to_mini_profile)) //on off mini profile if(!$('.utdprevention').length) //don't do twice for(propertys in pb.data('proboards.post')) { if($('#post-' + propertys + ' .user-link').attr('href') != undefined) { var profiletarget = utdprofiletarget(propertys) $('#post-' + propertys + ' ' + profiletarget).prepend(utdminiprofile(propertys)) } } if(parseInt(pb.plugin.get('user_theme_display').settings.add_a_members_column)) //on off mini profile if(document.location.pathname.split('/')[1] == 'members') //auto load { if(!$('.utdtheme').length) $('.content.cap-bottom .list .head .date-registered').before('<th class="utdtheme sortable" style="width:15%">' + pb.plugin.get('user_theme_display').settings.theme_heading.replace(':', '') + '</th>') if(!$('.utdajaxprevention').length) $('.content.cap-bottom .list .list-content tr').each(function(b) { $(this).find('td.date-registered').before('<td>' + utdmemberadd($(this).attr('id').replace('member-', '')) + '</td>') }) }
}
function utdprofiletarget(post) { var user = $('#post-' + post + ' .user-link').attr('href') var themetext = '' if(user == undefined) return '' user = user.replace('/user/', '') if(user == undefined) return '.mini-profile .info' var key = pb.plugin.key('theme_display').get(user) if(key == undefined) { return '.mini-profile .info' } else { var ui = pb.plugin.get('user_theme_display').settings.themes for(a = 0; a < ui.length; a++) { if(key == ui[a].select_theme_to_record) if(ui[a].custom_miniprofile_target != '') return '' + ui[a].custom_miniprofile_target } } return '.mini-profile .info' }
function utdminiprofile(post) { var user = $('#post-' + post + ' .user-link').attr('href') var themetext = '' if(user == undefined) return '' user = user.replace('/user/', '') if(user == undefined) return 'Cannot Find User Link' var key = pb.plugin.key('theme_display').get(user) if(key == undefined) { themetext = 'Theme Unsaved' } else { var ui = pb.plugin.get('user_theme_display').settings.themes for(a = 0; a < ui.length; a++) { if(key == ui[a].select_theme_to_record) if(ui[a].text_you_want_displayed != '') { themetext = ui[a].text_you_want_displayed } else { themetext = '<td>' + pb.plugin.get('user_theme_display').settings.theme_heading + ' </td><td><span>' + pb.plugin.get('user_theme_display').settings.themes[a].theme_display_name + '</span></td>' } } } if(themetext == '') themetext = 'Hidden Theme' return '<span class="utdprevention utdcss">' + themetext + '</span><br>' }
function utdmemberadd(user) { var themetext = '' if(user == undefined) return 'Cannot Find User Link' var key = pb.plugin.key('theme_display').get(user) if(key == undefined) { themetext = 'Theme Unsaved' } else { var ui = pb.plugin.get('user_theme_display').settings.themes for(a = 0; a < ui.length; a++) { if(key == ui[a].select_theme_to_record) if(ui[a].text_you_want_displayed != '') { themetext = ui[a].text_you_want_displayed.match(/<span[^>]*>[^>]*<\/span>/) } else { themetext = ui[a].theme_display_name } } } if(themetext == '') themetext = 'Hidden Theme' return '<span class="utdajaxprevention utdcss">' + themetext + '</span>' }
function utdupdate() { if(pb.data('user').id == 0 || window.location.href.indexOf('preview_theme') != -1) return proboards.dialog("utdpopup", { title: "Save Data", open: function(event, ui) { $(".ui-dialog-titlebar-close", ui.dialog | ui).hide(); }, modal: true, width: 300, height: 200, resizable: false, autoOpen: true, draggable: false, closeOnEscape: false, buttons: [{ text: "Save", click: function() { utdsavekey($(this)) } }, { text: "Cancel", click: function() { $(this).dialog('close'); $('.theme-chooser').val(utdprevtheme) //revert to previous theme selection } } ] }); if(proboards.data('route').name == 'edit_user_settings') { $('#utdpopup').html('Click save to confirm your chosen theme.'); return } $('#utdpopup').html('Click save to update your profile data. After you save, this popup will not appear again. If you ignore this popup, it will appear again on your next page.')
}
function utdsavekey(thisdialog) { if(proboards.data('route').name == 'edit_user_settings') { pb.plugin.key('theme_display').set({ object_id: proboards.data('user').id, value: parseFloat($('.theme-chooser').val()), success: function() { thisdialog.dialog('close'); pb.loading(true); $('input[value="Save Account Settings"]').click() }, error: function(error) {} }) return; } pb.plugin.key('theme_display').set({ object_id: proboards.data('user').id, value: proboards.data('user').theme_id, success: function() { thisdialog.dialog('close'); pb.window.alert('Saved Successfully') }, error: function(error) {} }) //first time set } I hope I'm not overstepping my bounds by making this request.
|
|
inherit
201984
0
Sept 11, 2023 1:23:07 GMT -8
P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓
Using My Talents Elsewhere
3,314
November 2013
pastuleo23
|
Post by P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ on Nov 4, 2020 21:42:31 GMT -8
Hi P̌̓aͧś̀t̀u͒le͆o͂2̀3̃̓ I was having a problem with my plugin conflicting with this one. Also I noticed some inherently annoying behavior when User Theme Display is installed and the user changes their theme selection. Each and every time the user changes the select, a dialogue is created. That tends to be a nuisance and it isn't at all necessary while on the Settings page. A dialogue will be created on any page if the user's selected theme doesn't match the data in the plugin key. If you would consider updating your plugin, that would be much appreciated. This seems to work just fine for the JS component. (The modification I'm suggesting is clearly denoted within comments.) I hope I'm not overstepping my bounds by making this request. Feel free to modify this editable version attached Attachments:User Theme Display.pbp (3.28 KB)
|
|