inherit
228943
0
Jan 1, 2019 12:07:17 GMT -8
jennalaia
14
February 2016
jennalaia
|
Post by jennalaia on Feb 7, 2016 9:52:52 GMT -8
Can you provide a link to the forum in question? Right here. Sorry about that.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 7, 2016 10:12:38 GMT -8
Can you provide a link to the forum in question? Right here. Sorry about that. The profiles not changing is due to the mini-profile layout template of that theme using the class mini_profile instead of the default mini-profile, the latter of which the plugin targets. I'm not sure why the button isn't showing in posts. It could be the same thing, but at the moment I don't see any errors indicative of it in my browser's console.
|
|
inherit
228943
0
Jan 1, 2019 12:07:17 GMT -8
jennalaia
14
February 2016
jennalaia
|
Post by jennalaia on Feb 7, 2016 11:35:37 GMT -8
The profiles not changing is due to the mini-profile layout template of that theme using the class mini_profile instead of the default mini-profile, the latter of which the plugin targets. I'm not sure why the button isn't showing in posts. It could be the same thing, but at the moment I don't see any errors indicative of it in my browser's console. Is there a way to fix it?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 7, 2016 11:38:24 GMT -8
The profiles not changing is due to the mini-profile layout template of that theme using the class mini_profile instead of the default mini-profile, the latter of which the plugin targets. I'm not sure why the button isn't showing in posts. It could be the same thing, but at the moment I don't see any errors indicative of it in my browser's console. Is there a way to fix it? You can fix the first thing by going to Themes > Layout Templates > Mini-Profiles and changing this line: To this:
|
|
inherit
228943
0
Jan 1, 2019 12:07:17 GMT -8
jennalaia
14
February 2016
jennalaia
|
Post by jennalaia on Feb 7, 2016 12:16:02 GMT -8
You can fix the first thing by going to Themes > Layout Templates > Mini-Profiles and changing this line: To this: That worked! The only thing now is the mini profiles are off center:
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 7, 2016 12:31:48 GMT -8
Yup. Now they're adopting the forum's default CSS for mini-profiles. Add this to the bottom of Themes > Advanced Styles & CSS > Style Sheet and it should return them to normal:
|
|
inherit
228943
0
Jan 1, 2019 12:07:17 GMT -8
jennalaia
14
February 2016
jennalaia
|
Post by jennalaia on Feb 7, 2016 12:43:37 GMT -8
Yup. Now they're adopting the forum's default CSS for mini-profiles. Add this to the bottom of Themes > Advanced Styles & CSS > Style Sheet and it should return them to normal: Perfect! Thank you so much!
|
|
inherit
228729
0
Apr 27, 2016 21:07:26 GMT -8
funtomking
3
January 2016
funtomking
|
Post by funtomking on Feb 13, 2016 23:32:32 GMT -8
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Feb 14, 2016 9:35:25 GMT -8
Did you place the CSS that was posted in the reply before yours in your theme's style sheet? That should fix the resulting display issues on that particular theme.
|
|
inherit
228729
0
Apr 27, 2016 21:07:26 GMT -8
funtomking
3
January 2016
funtomking
|
Post by funtomking on Feb 15, 2016 4:30:00 GMT -8
I got everything to work out after futzing around with the html and the css for a bit! Thank you so much
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Mar 16, 2016 12:27:31 GMT -8
Brian, Sorry for posting this here, but thought it would save time from asking to PM you with this, and I didn't really want to clutter up your inbox. I'm trying to learn how to do comparisons for the Forum Search (Members, Member Groups, Boards, Themes, etc.) field in Build. Where you have it ask Who can use (the NPC), what lines in your code do that comparison? I'm trying to look through codes that do this (need to find one that does comparison for a search on individual Members and also for Boards) so I can start trying to work out how to add these into my plugins (OTD and GN in particular). This is by no means a priority right now, but if you could point me to the lines of code that do the comparison, it would be much appreciated. Thank you!
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 16, 2016 13:27:37 GMT -8
Lynx : Probably a better question for the Plugin Development board, but I'll answer here. pb.data('user').group_ids is an array containing all of the numerical IDs of the groups your account is in. I use the .join() method to convert these to a comma-separated string, adding a comma before and after that string so that each number has a comma before and after it, making them easier to search through later. After that I use .indexOf() when it comes time to search for a group in my script so that I can match the IDs selected in my plugin against the user's ID. In the above snippet npcPbp.settings.full_permissions is a variable pointing towards pb.plugin.get('user_rpg_profile').settings.full_permissions which is my group search.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Mar 16, 2016 13:39:47 GMT -8
Thank you kindly, good sir! The examples helped immensely! (I wasn't really getting any actual examples when I had posted in the PD board. Hence why I asked here. Sorry. ) Now to see if I can follow this well enough to make it work for me in my plugin. Thank you, Brian. I appreciate this.
|
|
inherit
213910
0
Nov 4, 2023 9:08:44 GMT -8
rohan
Badass!
349
September 2014
dragonor
|
Post by rohan on Mar 26, 2016 8:24:49 GMT -8
rotrwarzone.boards.net/I get this error when I use the NPC :- Perhaps the NPC does not work on Deleted Account Posts ?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 27, 2016 8:42:49 GMT -8
The error you're receiving means that you have the plugin key permissions set up incorrectly in the Permissions tab of the plugin. According to your admin area you have it set to Custom and only allow users to write to their own content, telling the forum to produce that error if the plugin attempts to overwrite a post that you didn't author. Based on that the plugin is working correctly. If you only want to allow the Administrator group to use the plugin you'll need to specify that group as one that's allowed to write to the plugin key.
|
|