#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jan 24, 2024 20:30:54 GMT -8
It is possible to count posting/likes for this NPC's and showing that in mini-profiles? This would require the plugin to store even more data separately via a plugin key, and the most applicable type of plugin key for it to use to record those numbers would be a forum super key as the post/like data would need to be available forum-wide. Forums allow you to use up to 2 super keys by default, so if a plugin I create ends up having to use any plugin keys at all I usually refrain from using super keys unless the plugin's functionality absolutely requires it. In the case of this plugin I use a post key to save the data as the plugin just needs to know which NPC username to assign to the post. A post key is a normal type of plugin key which the forum allows you to use 10 of by default. This is the most minimalistic approach possible in order to use the minimum amount of plugin keys required to get everything working. To answer the question, while it is technically possible there's no optimal way to do it that's going to outweigh the negatives of adding the functionality. It would require an additional plugin key and if you're already using the plugin it would have no way to automatically obtain the existing post and like counts retroactively as no feature exists on the service that can query this data for the plugin. I would've added this functionality when I first made the plugin about 10 years ago, but because of these limitations I went with the approach we have now where the NPC is purely a cosmetic change on top of an existing post and not a separate entity.
|
|
inherit
178700
0
Apr 4, 2024 16:06:35 GMT -8
tynahi
2
April 2012
tynahi
|
Post by tynahi on Apr 4, 2024 15:42:57 GMT -8
Hi Brian. I am not very code savvy and I apologize if this was already discussed. I am having a bit of trouble with the mini profiles for my NPCs. The theme I use has a very modified mini profile and it seems to have broken the code for the NPC mini profiles. I don't need them to be as fancy as the in character mini profiles but I'm not sure how to go about fixing them? The avatars appear in the top left of the page instead of in the mini profile which is my main concern. If I can get that placement fixed and change the text color I'd be fine with how it is appearing. I can provide coding if that is helpful, I just don't know what part of the code you would need to see. Thank you so much for any advice! In person mini profiles: xxxxxxNPC mini profiles: xxxxxx
|
|
#eb7100
33409
0
1
Nov 13, 2024 16:56:46 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 7, 2024 21:44:20 GMT -8
Hi Brian. I am not very code savvy and I apologize if this was already discussed. I am having a bit of trouble with the mini profiles for my NPCs. The theme I use has a very modified mini profile and it seems to have broken the code for the NPC mini profiles. I don't need them to be as fancy as the in character mini profiles but I'm not sure how to go about fixing them? The avatars appear in the top left of the page instead of in the mini profile which is my main concern. If I can get that placement fixed and change the text color I'd be fine with how it is appearing. I can provide coding if that is helpful, I just don't know what part of the code you would need to see. Thank you so much for any advice! In person mini profiles: xxxxxxNPC mini profiles: xxxxxxSince this is a heavily modified theme the solution would be to modify the HTML the NPC Profiles plugin uses by going into the Profile HTML tab of the plugin's settings. However, the actual HTML changes required are going to be completely dependent on how that particular theme works. For example, given that the avatar isn't showing in the NPC mini-profile it can be assumed that there's CSS rules in the theme that are either hiding the default avatar class outright or at least change its display properties in such a manner that it's no longer visible outside of the theme's specific use case. This will ultimately require at least a little bit of coding ability to fix. For the most part a lot of what you need can be obtained directly from the theme itself in Themes > Layout Templates, but the plugin isn't a theme so it's unfortunately not a simple copy and paste as a good amount of the code in there is theme-specific and won't work inside the plugin. But it should be completely possible for someone with experience to be able to take both the User Profile and Mini-Profile layout templates from that theme and rip out just the necessary HTML to get everything to display.
|
|